segmentation fault python3 sp.py
Opened this issue · 0 comments
lingjie2098 commented
出错信息
1、后台日志:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/c***t/Downloads/AAmoney/tools/pyvideotrans/videotrans/styles/no-remove.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf60.13.100
Duration: 00:00:02.00, start: 0.000000, bitrate: 341 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 512x288 [SAR 1:1 DAR 16:9], 192 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc60.27.100 libx264
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 134 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_videotoolbox))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, mp4, to '/Users/c***t/Downloads/AAmoney/tools/pyvideotrans/tmp/test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf61.7.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 512x288 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 30k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc61.19.100 h264_videotoolbox
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
encoder : Lavc61.19.100 aac
[h264_videotoolbox @ 0x13c60d390] Color range not set for yuv420p. Using MPEG range.
[out#0/mp4 @ 0x60000052c000] video:152KiB audio:33KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 1.643348%
frame= 60 fps=0.0 q=-0.0 Lsize= 189KiB time=00:00:01.96 bitrate= 784.7kbits/s speed=5.73x
[aac @ 0x13c655420] Qavg: 3295.304
zsh: segmentation fault python3 sp.py
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Python [70453]
Path: /opt/homebrew/*/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.10.15 (3.10.15)
Code Type: ARM-64 (Native)
Parent Process: zsh [70352]
Responsible: Terminal [8500]
User ID: 501
Date/Time: 2024-11-24 19:55:38.4649 +0800
OS Version: macOS 15.0 (24A335)
Report Version: 12
Anonymous UUID: BA964FBE-4332-B927-EEB7-AAC0AC77AA73
Sleep/Wake UUID: 3E144A04-57D6-42C7-A81E-2E9D07DA488D
Time Awake Since Boot: 1600000 seconds
Time Since Wake: 21441 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000eae9250e88a8 -> 0x00006ae9250e88a8 (possible pointer authentication failure)
Exception Codes: 0x0000000000000001, 0x0000eae9250e88a8
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [70453]
VM Region Info: 0x6ae9250e88a8 is not in any region. Bytes after previous region: 11995928496297
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 600000000000-600020000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 QtWidgets.abi3.so 0x1033e1d44 removeLayoutOwnership(QLayout*, QLayoutItem*) + 44
1 QtWidgets.abi3.so 0x1033dfbf8 Sbk_QLayoutFunc_removeItem(_object*, _object*) + 152
2 Python 0x10137dabc cfunction_vectorcall_O + 100
3 Python 0x10140e59c call_function + 128
4 Python 0x10140a918 _PyEval_EvalFrameDefault + 30584
5 Python 0x1014022d8 _PyEval_Vector + 396
6 Python 0x10140e59c call_function + 128
7 Python 0x10140a8a4 _PyEval_EvalFrameDefault + 30468
8 Python 0x1014022d8 _PyEval_Vector + 396
9 Python 0x101338c58 method_vectorcall + 292
10 libpyside6.abi3.6.8.dylib 0x101c36a88 callPythonMetaMethodHelper(QList<QByteArray> const&, char const*, void**, _object*) + 336
11 libpyside6.abi3.6.8.dylib 0x101c30e00 PySide::SignalManager::callPythonMetaMethod(QList<QByteArray> const&, char const*, void**, _object*) + 64
12 libpyside6.abi3.6.8.dylib 0x101c312b4 PySide::MethodDynamicSlot::call(QList<QByteArray> const&, char const*, void**) + 100
13 libpyside6.abi3.6.8.dylib 0x101c396f8 PySide::PySideQSlotObject::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 176
14 QtCore 0x10472d700 QObject::event(QEvent*) + 644
15 QtWidgets 0x1028e0760 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 336
16 QtWidgets 0x1028e171c QApplication::notify(QObject*, QEvent*) + 504
17 QtCore 0x1046e5584 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
18 QtCore 0x1046e6f3c QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 2316
19 libqcocoa.dylib 0x102ee6254 0x102ecc000 + 107092
20 libqcocoa.dylib 0x102ee73a4 0x102ecc000 + 111524
21 CoreFoundation 0x197b26414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
22 CoreFoundation 0x197b263a8 __CFRunLoopDoSource0 + 176
23 CoreFoundation 0x197b2610c __CFRunLoopDoSources0 + 244
24 CoreFoundation 0x197b24cf8 __CFRunLoopRun + 840
25 CoreFoundation 0x197b24334 CFRunLoopRunSpecific + 572
26 HIToolbox 0x1a2f5c0cc RunCurrentEventLoopInMode + 292
27 HIToolbox 0x1a2f61ebc ReceiveNextEventCommon + 636
28 HIToolbox 0x1a2f62020 _BlockUntilNextEventMatchingListInModeWithFilter + 76
29 AppKit 0x19b667a70 _DPSNextEvent + 660
30 AppKit 0x19bf8d7b8 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
31 AppKit 0x19b65ab7c -[NSApplication run] + 480
32 libqcocoa.dylib 0x102ee4d8c 0x102ecc000 + 101772
33 QtCore 0x1046f06c8 0x104654000 + 640712
34 QtCore 0x1046e5da8 0x104654000 + 597416
35 QtWidgets.abi3.so 0x103638de0 0x10309c000 + 5885408
36 Python 0x10137dbf8 0x1012e4000 + 629752
37 Python 0x10140e59c 0x1012e4000 + 1222044
38 Python 0x10140a918 0x1012e4000 + 1206552
39 Python 0x1014022d8 0x1012e4000 + 1172184
40 Python 0x101402138 0x1012e4000 + 1171768
41 Python 0x1014500c8 0x1012e4000 + 1491144
42 Python 0x10145002c 0x1012e4000 + 1490988
43 Python 0x10144fe50 0x1012e4000 + 1490512
44 Python 0x10144f8a0 0x1012e4000 + 1489056
45 Python 0x10144f250 0x1012e4000 + 1487440
46 Python 0x10146a084 0x1012e4000 + 1597572
47 Python 0x101469a74 0x1012e4000 + 1596020
48 Python 0x101469448 0x1012e4000 + 1594440
49 Python 0x10146a3bc 0x1012e4000 + 1598396
50 dyld 0x1976bc274 start + 2840
...(不贴了,都是子线程的)
每次操作都会如此。最后能生成结果,但是每次python最后都崩溃。
复现步骤
- 中文视频想要翻译成英文。手动上传中文字幕,然后界面配置如下:
-
点击开始,等待输入最后结果。
-
弹框提示Python退出,错误信息如上。
操作系统
MacOS 15.0 m1芯片,内存16G
软件左上角版本号数字
目前版本3.18,但是之前版本也会如此。