Alkl58 / NotEnoughAV1Encodes

GUI for AV1 (aomenc, rav1e & svt-av1)
MIT License
543 stars 24 forks source link

[BUG] .NET runtime error and an exception was thrown on the constructor call, resulting in a faulty KERNELBASE.dll that will not start. #154

Closed ONMYBEAT closed 7 months ago

ONMYBEAT commented 10 months ago

Describe the bug Batch processing was stopped in the middle of a process, and after restarting the program, it no longer started.

To Reproduce I can't activate it even if I wanted to reproduce it.

Expected behavior I need a fix or workaround.

Screenshots It will not start and I cannot take a screenshot.

Log File Submit two error logs in the Event Viewer. One is a .net runtime error, the other is an Application error.

Desktop (please complete the following information):

ONMYBEAT commented 10 months ago

PS NEAV1E version 2 will happen in all cases. However, with version 1.9, it is possible to start the program without any problem.

ONMYBEAT commented 10 months ago

I didn't get a reply, but the accident was resolved. I deleted the data in %%AppData%\Roaming\NEAV1E and it started. I would like to have this data deleted when uninstalling. I didn't notice it at all.

Alkl58 commented 9 months ago

I was able to reproduce a similar crash by manually corrupting a queue item (json file).

The fix I pushed is only there to catch the crash and not the reason why the queue item corrupted in the first place.

Thanks to your event logs, the issue was clearly:

Newtonsoft.Json.JsonReaderException: Unterminated string. Expected delimiter: ". Path 'ChunkProgress[196]', line 1008, position 7.

I can only guess that maybe restarting the program while it was writing to the file may have corrupted it. Not sure.

If anyone encounters this issue, I would greatly appreciate getting my hands on the corrupted json file located under %appdata%\NEAV1E\Queue.

I will also look into how I can make the uninstaller clean up the leftovers.

ONMYBEAT commented 9 months ago

Thanks for responding. I am glad that by sharing my experience, I can help someone else going through the same experience. Furthermore, I hope that NEAV1E will be a good program. Great program, and thank you for your response.