machinewrapped / gpt-subtrans

Open Source project using LLMs to translate SRT subtitles
Other
311 stars 36 forks source link

Crash/Force Exit after a few minutes #80

Closed steveo994 closed 3 months ago

steveo994 commented 8 months ago

Been working great for the past few weeks, a few days ago I started running into random freezes and crashes. After starting a translation sometimes it will hang and freeze after a minute or two and need to be force closed. Other times it will close on its own after a few minutes, sometimes with error and sometimes without. This happens now on both the mac and windows GUI.

This is the crash error on mac
------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: gui-subtrans [24434] Path: /Users/USER/Downloads/*/gui-subtrans Identifier: gui-subtrans Version: ??? Code Type: ARM-64 (Native) Parent Process: zsh [24429] Responsible: Terminal [24423] User ID: 501 Date/Time: 2023-11-07 12:25:31.5281 -0800 OS Version: macOS 13.0 (22A380) Report Version: 12 Anonymous UUID: 67412973-89F1-9C6B-EDC3-AE0A9AEA1BD6 Sleep/Wake UUID: D665B913-F0F2-4981-B242-8CC3055F91B7 Time Awake Since Boot: 100000 seconds Time Since Wake: 172 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 0x00000581da8f73c4 Exception Codes: 0x0000000000000001, 0x00000581da8f73c4 Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [24434] VM Region Info: 0x581da8f73c4 is not in any region. Bytes after previous region: 5574239417285 Bytes before following region: 99497840512060 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL commpage (reserved) 1000000000-7000000000 [384.0G] ---/--- SM=NUL ...(unallocated) ---> GAP OF 0x5f9000000000 BYTES MALLOC_NANO 600000000000-600008000000 [128.0M] rw-/rwx SM=PRV Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 QtGui 0x10655e0a8 0x1063d0000 + 1630376 1 QtGui 0x10655e044 0x1063d0000 + 1630276 2 QtGui 0x10655dea4 0x1063d0000 + 1629860 3 QtGui 0x1066a18a0 0x1063d0000 + 2955424 4 QtGui 0x1066a17b4 0x1063d0000 + 2955188 5 QtGui 0x106699620 QTextEngine::itemize() const + 10040 6 QtGui 0x10669eae0 QTextEngine::lineNumberForTextPosition(int) + 92 7 QtGui 0x1066bc218 QTextLayout::lineForTextPosition(int) const + 24 8 QtGui 0x10665325c QTextCursorPrivate::setX() + 252 9 QtWidgets 0x1071ae348 0x106fa4000 + 2138952 10 QtCore 0x108f71ec8 QObject::event(QEvent*) + 612 11 QtWidgets 0x106fb0fec QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272 12 QtWidgets 0x106fb1e50 QApplication::notify(QObject*, QEvent*) + 512 13 QtCore 0x108f2ff88 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292 14 QtCore 0x108f31238 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 1428 15 libqcocoa.dylib 0x10c497268 0x10c480000 + 94824 16 libqcocoa.dylib 0x10c497d40 0x10c480000 + 97600 17 CoreFoundation 0x190285a34 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 18 CoreFoundation 0x1902859c8 __CFRunLoopDoSource0 + 176 19 CoreFoundation 0x190285738 __CFRunLoopDoSources0 + 244 20 CoreFoundation 0x19028433c __CFRunLoopRun + 836 21 CoreFoundation 0x1902838a4 CFRunLoopRunSpecific + 612 22 HIToolbox 0x1998f73bc RunCurrentEventLoopInMode + 292 23 HIToolbox 0x1998f7200 ReceiveNextEventCommon + 672 24 HIToolbox 0x1998f6f48 _BlockUntilNextEventMatchingListInModeWithFilter + 72 25 AppKit 0x1934dc630 _DPSNextEvent + 632 26 AppKit 0x1934db7c0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728 27 AppKit 0x1934cfbf0 -[NSApplication run] + 464 28 libqcocoa.dylib 0x10c496644 0x10c480000 + 91716 29 QtCore 0x108f398fc QEventLoop::exec(QFlags) + 532 30 QtCore 0x108f30614 QCoreApplication::exec() + 112 31 QtWidgets.abi3.so 0x107e3f1a4 Sbk_QApplicationFunc_exec(_object*) + 52 32 Python 0x105b1dee4 cfunction_vectorcall_NOARGS + 88 33 Python 0x105bdc984 _PyEval_EvalFrameDefault + 54032 34 Python 0x105bce3e8 PyEval_EvalCode + 276 35 gui-subtrans 0x10477d324 0x104778000 + 21284 36 gui-subtrans 0x10477d6b0 0x104778000 + 22192 37 dyld 0x18fe7be50 start + 2544 Thread 1: 0 libsystem_pthread.dylib 0x1901a0e18 start_wqthread + 0 Thread 2:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x190166df0 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1901788d8 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x19016f638 mach_msg_overwrite + 540 3 libsystem_kernel.dylib 0x19016716c mach_msg + 24 4 CoreFoundation 0x190285bdc __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x1902844c8 __CFRunLoopRun + 1232 6 CoreFoundation 0x1902838a4 CFRunLoopRunSpecific + 612 7 AppKit 0x193606248 _NSEventThread + 172 8 libsystem_pthread.dylib 0x1901a606c _pthread_start + 148 9 libsystem_pthread.dylib 0x1901a0e2c thread_start + 8 Thread 3: 0 libsystem_pthread.dylib 0x1901a0e18 start_wqthread + 0 Thread 4:: Thread (pooled) 0 QtGui 0x10685a4f8 0x1063d0000 + 4760824 1 QtGui 0x10685a4d4 0x1063d0000 + 4760788 2 QtGui 0x1068c1754 0x1063d0000 + 5183316 3 QtGui 0x106867608 0x1063d0000 + 4814344 4 QtGui 0x106866b00 0x1063d0000 + 4811520 5 QtGui 0x106696034 QTextEngine::shapeTextWithHarfbuzzNG(QScriptItem const&, unsigned short const*, int, QFontEngine*, QList const&, bool, bool) const + 604 6 QtGui 0x106694e48 QTextEngine::shapeText(int) const + 2104 7 QtGui 0x1066c0214 QTextLine::layout_helper(int) + 724 8 QtGui 0x10668b9d4 0x1063d0000 + 2865620 9 QtGui 0x106684b28 0x1063d0000 + 2837288 10 QtGui 0x10668aefc 0x1063d0000 + 2862844 11 QtGui 0x10668a484 0x1063d0000 + 2860164 12 QtGui 0x10668d5a8 QTextDocumentLayout::doLayout(int, int, int) + 128 13 QtGui 0x10668d134 QTextDocumentLayout::documentChanged(int, int, int) + 468 14 QtGui 0x10666c7b8 QTextDocumentPrivate::finishEdit() + 152 15 QtGui 0x106657054 QTextCursor::insertText(QString const&, QTextCharFormat const&) + 1320 16 QtGui.abi3.so 0x108467f70 Sbk_QTextCursorFunc_insertText(_object*, _object*) + 464 17 Python 0x105b1d3d8 cfunction_call + 96 18 Python 0x105ab90ec _PyObject_MakeTpCall + 128 19 Python 0x105bdcd3c _PyEval_EvalFrameDefault + 54984 20 Python 0x105be23cc _PyEval_Vector + 156 21 Python 0x105abd3c4 method_vectorcall + 164 22 Python 0x105bdf56c _PyEval_EvalFrameDefault + 65272 23 Python 0x105be23cc _PyEval_Vector + 156 24 Python 0x105abd3c4 method_vectorcall + 164 25 Python 0x105bdf56c _PyEval_EvalFrameDefault + 65272 26 Python 0x105be23cc _PyEval_Vector + 156 27 Python 0x105abd4a4 method_vectorcall + 388 28 QtCore.abi3.so 0x10bdd1c50 QRunnableWrapper::run() + 164 29 QtCore 0x1090a39d4 0x108ec4000 + 1964500 30 QtCore 0x10909f8dc 0x108ec4000 + 1947868 31 libsystem_pthread.dylib 0x1901a606c _pthread_start + 148 32 libsystem_pthread.dylib 0x1901a0e2c thread_start + 8 Thread 5: 0 libsystem_pthread.dylib 0x1901a0e18 start_wqthread + 0 Thread 0 crashed with ARM Thread State (64-bit): x0: 0x00005a7e30b98dd8 x1: 0x000060000b490140 x2: 0x0000000000000040 x3: 0x0000000000000003 x4: 0x0000000000000002 x5: 0x0000000000000140 x6: 0x000060000b490140 x7: 0x00000000ffffffff x8: 0x000060000b490140 x9: 0x00000581da8f73c0 x10: 0xfffffa7e25708c88 x11: 0x00000581da8f73d0 x12: 0x0000000000000040 x13: 0x00000000001ff800 x14: 0x00000000000007fb x15: 0x000000008ec0c806 x16: 0x000000008ee0c08e x17: 0x000000008ec0c806 x18: 0x0000000000000000 x19: 0x000000016b67fb68 x20: 0x0000600041b673c0 x21: 0x0000000000000001 x22: 0x0000000000000000 x23: 0x0000000000ff0f00 x24: 0x0000000000000000 x25: 0x00000000000021b5 x26: 0x000000000000fffc x27: 0x000000000000014d x28: 0x0000000131726e20 fp: 0x000000016b67fb50 lr: 0x000000010655e044 sp: 0x000000016b67fb20 pc: 0x000000010655e0a8 cpsr: 0x80001000 far: 0x00000581da8f73c4 esr: 0x92000005 (Data Abort) byte read Translation fault Binary Images: 0x1063d0000 - 0x1069fffff QtGui (*) <3a2e92dd-0766-3cab-a7c0-8be58840302a> /Users/USER/Downloads/*/QtGui 0x106fa4000 - 0x1073fbfff QtWidgets (*) /Users/USER/Downloads/*/QtWidgets 0x108ec4000 - 0x109343fff QtCore (*) <96ff8988-bf0b-3668-99dc-2c3d6b9325f9> /Users/USER/Downloads/*/QtCore 0x10c480000 - 0x10c51bfff libqcocoa.dylib (*) <80ad9b6b-92a6-3258-9a84-312e2bc4d47d> /Users/USER/Downloads/*/libqcocoa.dylib 0x190204000 - 0x1906dbfff com.apple.CoreFoundation (6.9) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x1998c5000 - 0x199bf8fff com.apple.HIToolbox (2.1.1) <02b9797f-c47d-30b7-b7b0-802d0d26f31c> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x1934a3000 - 0x1943aafff com.apple.AppKit (6.9) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x1078bc000 - 0x107ffbfff QtWidgets.abi3.so (*) <2862630a-4ac1-3d88-a769-af168d0d376d> /Users/USER/Downloads/*/QtWidgets.abi3.so 0x105a28000 - 0x105debfff Python (*) <88bffd37-99d8-36ab-9b95-9f54b30bd667> /Users/USER/Downloads/*/Python 0x104778000 - 0x104783fff gui-subtrans (*) /Users/USER/Downloads/*/gui-subtrans 0x18fe76000 - 0x18ff004af dyld (*) <1f56ab4e-f398-3a9c-bfba-fbbd17808963> /usr/lib/dyld 0x19019f000 - 0x1901abffb libsystem_pthread.dylib (*) <886caca0-5762-3640-8db2-3fa3b911c062> /usr/lib/system/libsystem_pthread.dylib 0x190166000 - 0x19019effb libsystem_kernel.dylib (*) <6d6644d3-3db3-34c4-b1e3-c675ec5360f0> /usr/lib/system/libsystem_kernel.dylib 0x1083a0000 - 0x108767fff QtGui.abi3.so (*) <89ef8950-fb1a-38cf-af57-c636aacc2e51> /Users/USER/Downloads/*/QtGui.abi3.so 0x10bcd8000 - 0x10c0a3fff QtCore.abi3.so (*) <45d57068-1312-3424-99ee-31c639cfa696> /Users/USER/Downloads/*/QtCore.abi3.so 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 0 thread_create: 0 thread_set_state: 0 ----------- Full Report ----------- {"app_name":"gui-subtrans","timestamp":"2023-11-07 12:25:31.00 -0800","app_version":"","slice_uuid":"e5f232ed-cf02-3cf6-8e8e-5dac81584f78","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.0 (22A380)","roots_installed":0,"incident_id":"94D91DEC-DB13-4259-9106-922885BA7A0B","name":"gui-subtrans"} { "uptime" : 100000, "procRole" : "Foreground", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "MacBookPro17,1", "coalitionID" : 11183, "osVersion" : { "train" : "macOS 13.0", "build" : "22A380", "releaseType" : "User" }, "captureTime" : "2023-11-07 12:25:31.5281 -0800", "incident" : "94D91DEC-DB13-4259-9106-922885BA7A0B", "pid" : 24434, "translated" : false, "cpuType" : "ARM-64", "roots_installed" : 0, "bug_type" : "309", "procLaunch" : "2023-11-07 12:23:55.3360 -0800", "procStartAbsTime" : 2614457324074, "procExitAbsTime" : 2616765405658, "procName" : "gui-subtrans", "procPath" : "\/Users\/USER\/Downloads\/*\/gui-subtrans", "parentProc" : "zsh", "parentPid" : 24429, "coalitionName" : "com.apple.Terminal", "crashReporterKey" : "67412973-89F1-9C6B-EDC3-AE0A9AEA1BD6", "responsiblePid" : 24423, "responsibleProc" : "Terminal", "wakeTime" : 172, "sleepWakeUUID" : "D665B913-F0F2-4981-B242-8CC3055F91B7", "sip" : "enabled", "vmRegionInfo" : "0x581da8f73c4 is not in any region. Bytes after previous region: 5574239417285 Bytes before following region: 99497840512060\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n commpage (reserved) 1000000000-7000000000 [384.0G] ---\/--- SM=NUL ...(unallocated)\n---> GAP OF 0x5f9000000000 BYTES\n MALLOC_NANO 600000000000-600008000000 [128.0M] rw-\/rwx SM=PRV ", "exception" : {"codes":"0x0000000000000001, 0x00000581da8f73c4","rawCodes":[1,6055275754436],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x00000581da8f73c4"}, "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":24434}, "vmregioninfo" : "0x581da8f73c4 is not in any region. Bytes after previous region: 5574239417285 Bytes before following region: 99497840512060\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n commpage (reserved) 1000000000-7000000000 [384.0G] ---\/--- SM=NUL ...(unallocated)\n---> GAP OF 0x5f9000000000 BYTES\n MALLOC_NANO 600000000000-600008000000 [128.0M] rw-\/rwx SM=PRV ", "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 0, "threads" : [{"triggered":true,"id":12659886,"threadState":{"x":[{"value":99498029845976},{"value":105553305600320},{"value":64},{"value":3},{"value":2},{"value":320},{"value":105553305600320},{"value":4294967295},{"value":105553305600320},{"value":6055275754432},{"value":18446738018433797256},{"value":6055275754448},{"value":64},{"value":2095104},{"value":2043},{"value":2394998790},{"value":2397094030},{"value":2394998790},{"value":0},{"value":6096943976},{"value":105554218742720},{"value":1},{"value":0},{"value":16715520},{"value":0},{"value":8629},{"value":65532},{"value":333},{"value":5124550176}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4401258564},"cpsr":{"value":2147487744},"fp":{"value":6096943952},"sp":{"value":6096943904},"esr":{"value":2449473541,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":4401258664,"matchesCrashFrame":1},"far":{"value":6055275754436}},"queue":"com.apple.main-thread","frames":[{"imageOffset":1630376,"imageIndex":0},{"imageOffset":1630276,"imageIndex":0},{"imageOffset":1629860,"imageIndex":0},{"imageOffset":2955424,"imageIndex":0},{"imageOffset":2955188,"imageIndex":0},{"imageOffset":2922016,"symbol":"QTextEngine::itemize() const","symbolLocation":10040,"imageIndex":0},{"imageOffset":2943712,"symbol":"QTextEngine::lineNumberForTextPosition(int)","symbolLocation":92,"imageIndex":0},{"imageOffset":3064344,"symbol":"QTextLayout::lineForTextPosition(int) const","symbolLocation":24,"imageIndex":0},{"imageOffset":2634332,"symbol":"QTextCursorPrivate::setX()","symbolLocation":252,"imageIndex":0},{"imageOffset":2138952,"imageIndex":1},{"imageOffset":712392,"symbol":"QObject::event(QEvent*)","symbolLocation":612,"imageIndex":2},{"imageOffset":53228,"symbol":"QApplicationPrivate::notify_helper(QObject*, QEvent*)","symbolLocation":272,"imageIndex":1},{"imageOffset":56912,"symbol":"QApplication::notify(QObject*, QEvent*)","symbolLocation":512,"imageIndex":1},{"imageOffset":442248,"symbol":"QCoreApplication::notifyInternal2(QObject*, QEvent*)","symbolLocation":292,"imageIndex":2},{"imageOffset":447032,"symbol":"QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)","symbolLocation":1428,"imageIndex":2},{"imageOffset":94824,"imageIndex":3},{"imageOffset":97600,"imageIndex":3},{"imageOffset":530996,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":28,"imageIndex":4},{"imageOffset":530888,"symbol":"__CFRunLoopDoSource0","symbolLocation":176,"imageIndex":4},{"imageOffset":530232,"symbol":"__CFRunLoopDoSources0","symbolLocation":244,"imageIndex":4},{"imageOffset":525116,"symbol":"__CFRunLoopRun","symbolLocation":836,"imageIndex":4},{"imageOffset":522404,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":4},{"imageOffset":205756,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":5},{"imageOffset":205312,"symbol":"ReceiveNextEventCommon","symbolLocation":672,"imageIndex":5},{"imageOffset":204616,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":72,"imageIndex":5},{"imageOffset":235056,"symbol":"_DPSNextEvent","symbolLocation":632,"imageIndex":6},{"imageOffset":231360,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":728,"imageIndex":6},{"imageOffset":183280,"symbol":"-[NSApplication run]","symbolLocation":464,"imageIndex":6},{"imageOffset":91716,"imageIndex":3},{"imageOffset":481532,"symbol":"QEventLoop::exec(QFlags)","symbolLocation":532,"imageIndex":2},{"imageOffset":443924,"symbol":"QCoreApplication::exec()","symbolLocation":112,"imageIndex":2},{"imageOffset":5779876,"symbol":"Sbk_QApplicationFunc_exec(_object*)","symbolLocation":52,"imageIndex":7},{"imageOffset":1007332,"symbol":"cfunction_vectorcall_NOARGS","symbolLocation":88,"imageIndex":8},{"imageOffset":1788292,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":54032,"imageIndex":8},{"imageOffset":1729512,"symbol":"PyEval_EvalCode","symbolLocation":276,"imageIndex":8},{"imageOffset":21284,"imageIndex":9},{"imageOffset":22192,"imageIndex":9},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":10}]},{"id":12659905,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":12659928,"name":"com.apple.NSEventThread","frames":[{"imageOffset":3568,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":12},{"imageOffset":75992,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":12},{"imageOffset":38456,"symbol":"mach_msg_overwrite","symbolLocation":540,"imageIndex":12},{"imageOffset":4460,"symbol":"mach_msg","symbolLocation":24,"imageIndex":12},{"imageOffset":531420,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":4},{"imageOffset":525512,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":4},{"imageOffset":522404,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":4},{"imageOffset":1454664,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":6},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":12660019,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":12660211,"name":"Thread (pooled)","frames":[{"imageOffset":4760824,"imageIndex":0},{"imageOffset":4760788,"imageIndex":0},{"imageOffset":5183316,"imageIndex":0},{"imageOffset":4814344,"imageIndex":0},{"imageOffset":4811520,"imageIndex":0},{"imageOffset":2908212,"symbol":"QTextEngine::shapeTextWithHarfbuzzNG(QScriptItem const&, unsigned short const*, int, QFontEngine*, QList const&, bool, bool) const","symbolLocation":604,"imageIndex":0},{"imageOffset":2903624,"symbol":"QTextEngine::shapeText(int) const","symbolLocation":2104,"imageIndex":0},{"imageOffset":3080724,"symbol":"QTextLine::layout_helper(int)","symbolLocation":724,"imageIndex":0},{"imageOffset":2865620,"imageIndex":0},{"imageOffset":2837288,"imageIndex":0},{"imageOffset":2862844,"imageIndex":0},{"imageOffset":2860164,"imageIndex":0},{"imageOffset":2872744,"symbol":"QTextDocumentLayout::doLayout(int, int, int)","symbolLocation":128,"imageIndex":0},{"imageOffset":2871604,"symbol":"QTextDocumentLayout::documentChanged(int, int, int)","symbolLocation":468,"imageIndex":0},{"imageOffset":2738104,"symbol":"QTextDocumentPrivate::finishEdit()","symbolLocation":152,"imageIndex":0},{"imageOffset":2650196,"symbol":"QTextCursor::insertText(QString const&, QTextCharFormat const&)","symbolLocation":1320,"imageIndex":0},{"imageOffset":819056,"symbol":"Sbk_QTextCursorFunc_insertText(_object*, _object*)","symbolLocation":464,"imageIndex":13},{"imageOffset":1004504,"symbol":"cfunction_call","symbolLocation":96,"imageIndex":8},{"imageOffset":594156,"symbol":"_PyObject_MakeTpCall","symbolLocation":128,"imageIndex":8},{"imageOffset":1789244,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":54984,"imageIndex":8},{"imageOffset":1811404,"symbol":"_PyEval_Vector","symbolLocation":156,"imageIndex":8},{"imageOffset":611268,"symbol":"method_vectorcall","symbolLocation":164,"imageIndex":8},{"imageOffset":1799532,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":65272,"imageIndex":8},{"imageOffset":1811404,"symbol":"_PyEval_Vector","symbolLocation":156,"imageIndex":8},{"imageOffset":611268,"symbol":"method_vectorcall","symbolLocation":164,"imageIndex":8},{"imageOffset":1799532,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":65272,"imageIndex":8},{"imageOffset":1811404,"symbol":"_PyEval_Vector","symbolLocation":156,"imageIndex":8},{"imageOffset":611492,"symbol":"method_vectorcall","symbolLocation":388,"imageIndex":8},{"imageOffset":1023056,"symbol":"QRunnableWrapper::run()","symbolLocation":164,"imageIndex":14},{"imageOffset":1964500,"imageIndex":2},{"imageOffset":1947868,"imageIndex":2},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":12660212,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 4399628288, "size" : 6488064, "uuid" : "3a2e92dd-0766-3cab-a7c0-8be58840302a", "path" : "\/Users\/USER\/Downloads\/*\/QtGui", "name" : "QtGui" }, { "source" : "P", "arch" : "arm64", "base" : 4412030976, "size" : 4554752, "uuid" : "ea552103-8b95-3886-985d-09191cda8c15", "path" : "\/Users\/USER\/Downloads\/*\/QtWidgets", "name" : "QtWidgets" }, { "source" : "P", "arch" : "arm64", "base" : 4444667904, "size" : 4718592, "uuid" : "96ff8988-bf0b-3668-99dc-2c3d6b9325f9", "path" : "\/Users\/USER\/Downloads\/*\/QtCore", "name" : "QtCore" }, { "source" : "P", "arch" : "arm64", "base" : 4501012480, "size" : 638976, "uuid" : "80ad9b6b-92a6-3258-9a84-312e2bc4d47d", "path" : "\/Users\/USER\/Downloads\/*\/libqcocoa.dylib", "name" : "libqcocoa.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6712999936, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.CoreFoundation", "size" : 5079040, "uuid" : "f4ff83fc-e62c-30b4-b3a9-876c8a1fd595", "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation", "name" : "CoreFoundation", "CFBundleVersion" : "1953.1" }, { "source" : "P", "arch" : "arm64e", "base" : 6871076864, "CFBundleShortVersionString" : "2.1.1", "CFBundleIdentifier" : "com.apple.HIToolbox", "size" : 3358720, "uuid" : "02b9797f-c47d-30b7-b7b0-802d0d26f31c", "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox", "name" : "HIToolbox" }, { "source" : "P", "arch" : "arm64e", "base" : 6766080000, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.AppKit", "size" : 15761408, "uuid" : "af9f6891-70ad-3c26-af08-b747344892d2", "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit", "name" : "AppKit", "CFBundleVersion" : "2299" }, { "source" : "P", "arch" : "arm64", "base" : 4421566464, "size" : 7602176, "uuid" : "2862630a-4ac1-3d88-a769-af168d0d376d", "path" : "\/Users\/USER\/Downloads\/*\/QtWidgets.abi3.so", "name" : "QtWidgets.abi3.so" }, { "source" : "P", "arch" : "arm64", "base" : 4389502976, "size" : 3948544, "uuid" : "88bffd37-99d8-36ab-9b95-9f54b30bd667", "path" : "\/Users\/USER\/Downloads\/*\/Python", "name" : "Python" }, { "source" : "P", "arch" : "arm64", "base" : 4369907712, "size" : 49152, "uuid" : "e5f232ed-cf02-3cf6-8e8e-5dac81584f78", "path" : "\/Users\/USER\/Downloads\/*\/gui-subtrans", "name" : "gui-subtrans" }, { "source" : "P", "arch" : "arm64e", "base" : 6709272576, "size" : 566448, "uuid" : "1f56ab4e-f398-3a9c-bfba-fbbd17808963", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "arm64e", "base" : 6712586240, "size" : 53244, "uuid" : "886caca0-5762-3640-8db2-3fa3b911c062", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6712352768, "size" : 233468, "uuid" : "6d6644d3-3db3-34c4-b1e3-c675ec5360f0", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 4432986112, "size" : 3964928, "uuid" : "89ef8950-fb1a-38cf-af57-c636aacc2e51", "path" : "\/Users\/USER\/Downloads\/*\/QtGui.abi3.so", "name" : "QtGui.abi3.so" }, { "source" : "P", "arch" : "arm64", "base" : 4492984320, "size" : 3981312, "uuid" : "45d57068-1312-3424-99ee-31c639cfa696", "path" : "\/Users\/USER\/Downloads\/*\/QtCore.abi3.so", "name" : "QtCore.abi3.so" }, { "size" : 0, "source" : "A", "base" : 0, "uuid" : "00000000-0000-0000-0000-000000000000" } ], "sharedCache" : { "base" : 6708625408, "size" : 3403612160, "uuid" : "5667eb2d-1398-3b38-afff-a929572d4b88" }, "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "62fe74515312cd4599bd3c80", "factorPackIds" : { "MYRIAD_BOOSTS" : "62fe74805312cd4599bd3c81" }, "deploymentId" : 240000006 }, { "rolloutId" : "61675b89201f677a9a4cbd65", "factorPackIds" : { "HEALTH_FEATURE_AVAILABILITY" : "64d14f3e1008ca2fac17a163" }, "deploymentId" : 240000064 } ], "experiments" : [ { "treatmentId" : "a092db1b-c401-44fa-9c54-518b7d69ca61", "experimentId" : "64a844035c85000c0f42398a", "deploymentId" : 400000019 } ] } } Model: MacBookPro17,1, BootROM 8419.41.10, proc 8:4:4 processors, 8 GB, SMC Graphics: Apple M1, Apple M1, Built-In Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online Memory Module: LPDDR4, Micron AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4378), wl0: Sep 3 2022 03:37:22 version 18.20.379.4.7.8.143 FWID 01-e3c71b50 Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB31Bus USB Device: USB31Bus USB Device: PSSD T7 Thunderbolt Bus: MacBook Pro, Apple Inc. Thunderbolt Bus: MacBook Pro, Apple Inc.

Problems only started appearing a few days ago, unfortunately unable to get through a full translation now. I'll attach the srt that i'm trying to translate here. Test.srt.zip

machinewrapped commented 8 months ago

Thanks for the report, I'll take a look - the error report should help.

machinewrapped commented 7 months ago

Apologies for the delay with this, I haven't been able to reproduce the error and can translate those subtitles without issue on both Mac and PC. There are some very long lines, which might be causing layout issues that are hardware specific, but I can't see any obvious problem there.

The callstack in the crash dump is entirely Qt/PySide6 framework code, so there isn't anywhere I can add something to catch the error and log it without crashing.

I'm hoping that it might disappear if I upgrade the PySide6 libraries in the next release, but it's proving difficult to get a working release with the latest libraries using PyInstaller.

machinewrapped commented 7 months ago

Can you try the latest version (0.4.7) to see if it helps? I have updated to the latest PySide6 library so there is a possibility they've fixed the problem.

steveo994 commented 7 months ago

Thanks for that. It's been working well again for the past few weeks, but just recently started crashing/force closing again with no error message. I don't have a log to provide this time but thought I'd pass on my experience anyways.

machinewrapped commented 6 months ago

I just fixed a bug that may have been causing this, particularly if you have moved the project file since it was created. If you get a chance, please give v0.5.2 a go and let me know if it is more stable. https://github.com/machinewrapped/gpt-subtrans/releases/tag/v0.5.2

steveo994 commented 6 months ago

Thanks, been trying it for a while and it seems to be stable, able to get through whole hour long files without issue now! :)

Something interesting I observed, I noticed that it still tends to crash after a little while if I pin the GUI to the taskbar and launch it from there, but if I launch it directly from the folder it doesn't seem to have the issue.

machinewrapped commented 6 months ago

Thanks for the update - I will investigate why pinning it to the taskbar might make a difference when I get chance, but I'm glad you found a workaround.

machinewrapped commented 3 months ago

The latest release seems more stable, though I don't doubt there are still bugs to squash. I'll close this as complete for now though.