讨论广场 问答详情
【求助】OH4.0release 制作OTA差分包失败
想的脑壳疼 2025-06-16 20:48:24
33 评论 分享

本地按照博客指导 制作全量包成功 但是差分包制作失败  报错如下:

INFO : Apply COPY type!
2025-06-16 20:42:29 INFO : Reversing backward edges...
2025-06-16 20:42:29 INFO : Reversing backward edges completed!
2025-06-16 20:42:29 INFO : Patch Process!
2025-06-16 20:42:29 INFO : ActionType.NEW __COPY <blocks_manager.BlocksManager object at 0x7feef6c6cfd0>
2025-06-16 20:44:37 ERROR : Uncaught exception
Traceback (most recent call last):
  File "build_update.py", line 855, in <module>
    main()
  File "build_update.py", line 828, in main
    if incremental_processing(no_zip, partition_file, source_package, verse_script) is False:
  File "build_update.py", line 730, in incremental_processing
    if increment_image_processing(
  File "build_update.py", line 658, in increment_image_processing
    patch_process.patch_process()
  File "/skdata/wanghuan/share/master/update_packaging_tools/patch_package_process.py", line 88, in patch_process
    self.apply_diff_style(
  File "/skdata/wanghuan/share/master/update_packaging_tools/patch_package_process.py", line 164, in apply_diff_style
    do_pkg_diff, patch_value = self.compute_diff_patch(
  File "/skdata/wanghuan/share/master/update_packaging_tools/patch_package_process.py", line 268, in compute_diff_patch
    patch_value, do_pkg_diff = self.apply_compute_patch(
  File "/skdata/wanghuan/share/master/update_packaging_tools/patch_package_process.py", line 495, in apply_compute_patch
    sub_p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1605, in _execute_child
    errpipe_read, errpipe_write = os.pipe()
OSError: [Errno 24] Too many open files
2025-06-16 20:44:37 INFO : Exception occurred, Resource cleaning completed!

请大佬看看是什么问题
 

33 评论 分享
写回答
全部评论(2)
1 楼

[Errno 24] Too many open files  ,临时提高系统文件描述符限制试试:  ulimit -n 65536

2025-06-17 10:03:09
2025-06-17 10:09:07
我更新制作差分包的工具后,可以成功制作出差分包了 谢谢
2025-06-17 10:09:07