SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.81k stars 912 forks source link

SubtitleEdit force closes when used simultaneously with MPC-HC/ K-Lite Pack. #8055

Closed NonVolatileHuman closed 7 months ago

NonVolatileHuman commented 7 months ago

For some reason, SE crashes if I play a video while editing the subtitles for another, or any other video for that matter. Which has cost me some time at least twice due to having to redo multiple lines that I have done before. Google was no help and I couldn't find any Autosave functionality in the software, any help is appreciated.

niksedk commented 7 months ago

I need a lot more info... what video player are you using? What video? What OS? Logs? Read more here: https://www.nikse.dk/subtitleedit/help#good-github-issue

Also, SE has an auto-back feature enabled by default. Check File - Restore auto-backup...

NonVolatileHuman commented 7 months ago

Video package: K-Lite Codec Pack (18.2.4) Video player: MPC-HC with MadVR Latest SubtitleEdit Version 4.04 Win11 build 22631.3296

As for the issue itself, let's say I am editing the subs for video A, if I play Video B/W/O/N, etc… SE just closes from the taskbar/task manager, no pop-up, no prompts, nothing. It just disappears.

I don't know how to export logs from SE, unfortunately.

niksedk commented 7 months ago

I mean what video player, you're using inside SE. See Options - Settings - Video player: image

I recommend mpv.

If SE is just closing without an error, it is most likely some codec problem outside of SE, which I can do nothing to fix, sorry.

niksedk commented 7 months ago

Auto-backup is triggered by time (only is changes have been made) image

NonVolatileHuman commented 7 months ago

I tried re-downloading MPV as I thought there might be something wrong with the installation, but that didn't help. The odd thing was that when I switched to MPC-HC in the video player tab, the videos don't play, like at all. DirectShow works, but the subs look terrible, so I can't use that unfortunately, I might contact the MPC-HC dev, but I think I should inform you first.

Addition1: I tried playing videos using the native windows “Movies” program and that didn't crash SE, I am more inclined to think that there's a conflict between SE and MPC-HC/ K-Lite Pack.

Addition2: klcp_codec_log.txt I attached a log file from K-Lite, I hope it helps. The SE log file had no relevant data, the last entry was in January.

niksedk commented 7 months ago

I'm not really sure what the problem is... You can try latest SE beta which downloads a newer mpv version: https://github.com/SubtitleEdit/subtitleedit/releases/download/4.0.4/SubtitleEditBeta.zip

You could also try to update your gfx card drivers + check for Windows updates.

NonVolatileHuman commented 7 months ago

The beta didn't work, still crashed. Windows is up-to-date, as for the GPU, there's a driver release around the corner, will wait for it and report back if the issue persists.

I will rename the issue for future reference.

NonVolatileHuman commented 7 months ago

@niksedk found some info in the Event viewer!

Labeled “application error” :

Faulting application name: SubtitleEdit.exe, version: 4.0.4.0, time stamp: 0x65f71054 Faulting module name: ucrtbase.dll, version: 10.0.22621.2506, time stamp: 0x097c794c Exception code: 0xc0000005 Fault offset: 0x0000000000051bad Faulting process id: 0x0x12D4 Faulting application start time: 0x0x1DA7D11BD6E7AD7 Faulting application path: C:\Program Files\Subtitle Edit\SubtitleEdit.exe Faulting module path: C:\WINDOWS\System32\ucrtbase.dll Report Id: dcf6e01e-1024-48ee-ab30-eedd09dec5f3 Faulting package full name: Faulting package-relative application ID:

Another one labeled “.NET Runtime” :

Application: SubtitleEdit.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: exception code c0000005, exception address 00007FFB48561BAD

I have both Desktop Runtime 6 & 8, don't know if that's relevant.

niksedk commented 7 months ago

You could also try-reinstalling .net framework: https://dotnet.microsoft.com/en-us/download/dotnet-framework/net481

And Windows re-install might also help...

Not really anything I can do in SE I think.

clsid2 commented 7 months ago

You should consider implementing ability to generate minidump on crash. Then you have stacktrace to help determine which code triggered the crash.

This may also be helpful: https://learn.microsoft.com/en-us/dotnet/core/diagnostics/collect-dumps-crash

NonVolatileHuman commented 7 months ago

Isn't .Net 4.8.1 in the “framework” family and not “runtime” ? Or does SE need that version/build specifically?

niksedk commented 7 months ago

@clsid2: Thx, I did not know this. I'm not too interested in the world beyond the managed world, as these crashes happen in Windows code or in external codecs. (and thx for your work :)

@NonVolatileHuman: SE requires the dotnet framework 4.8 runtime. MS also has the donet 6-8, but WinForms applications written in these versions will not run on Linux as far as I know.