Closed steveo994 closed 3 months ago
Thanks for the report, I'll take a look - the error report should help.
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.
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.
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.
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
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.
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.
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.
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
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