poveden / EliteChroma

A tool to make Razer Chroma devices react to Elite:Dangerous in-game events
MIT License
43 stars 15 forks source link

EliteChroma crashing since Ascendancy update #169

Open r4z0rw1r3 opened 3 weeks ago

r4z0rw1r3 commented 3 weeks ago

Summary

App works ok until I join the server, as soon as I'm at cockpit view, EliteChroma app crashes and won't restart until I quit game to desktop. Was all working fine the day before the Ascendancy update on 31st October 2024.

Steps to Reproduce

  1. Start Game (usual EliteChroma 'yellow' glow starts as expected)
  2. At game menu, select 'continue'
  3. I select 'Private Group Session' at this point.
  4. Game loads to cockpit view
  5. EliteChroma app crashes at this point.
  6. Alt-tab to desktop and try and reload EliteChroma app, won't restart (until I fully exit game to desktop)

Expected Behaviour

At cockpit I am usually docked / landing gear down, so expected most lighting to go 'deep blue' - instead, app crashes and lighting reverts back to my default razer desktop profile

Environment

image

image

image

2 related crash events in Windows event viewer:

image

Application: EliteChroma.exe CoreCLR Version: 6.0.3524.45918 .NET Version: 6.0.35 Description: The process was terminated due to an unhandled exception. Exception Info: System.Text.Json.JsonException: The JSON value could not be converted to EliteFiles.Status.LegalState. Path: $.LegalState | LineNumber: 0 | BytePositionInLine: 230. at System.Text.Json.ThrowHelper.ThrowJsonException(String message) at System.Text.Json.Serialization.Converters.EnumConverter1.ReadAsPropertyNameCore(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.Serialization.Converters.EnumConverter1.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.Converters.JsonMetadataServicesConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonReaderState& readerState, Boolean isFinalBlock, ReadOnlySpan1 buffer, JsonSerializerOptions options, ReadStack& state, JsonConverter converterBase) at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonConverter converter, JsonSerializerOptions options) at System.Text.Json.JsonSerializer.ReadAll[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo) at System.Text.Json.JsonSerializer.Deserialize[TValue](Stream utf8Json, JsonTypeInfo1 jsonTypeInfo) at EliteFiles.Status.StatusEntry.FromFile(String path) in C:\Dev\GitHub\poveden\EliteChroma\src\EliteFiles\Status\StatusEntry.cs:line 183 at EliteFiles.Status.StatusWatcher.<Reload>b__13_0() in C:\Dev\GitHub\poveden\EliteChroma\src\EliteFiles\Status\StatusWatcher.cs:line 88 at EliteFiles.Internal.FileOperations.RetryIfFailed[T](Func1 action, Func2 test, Int32 retries) in C:\Dev\GitHub\poveden\EliteChroma\src\EliteFiles\Internal\FileOperations.cs:line 13 at EliteFiles.Internal.FileOperations.RetryIfNull[T](Func1 action, Int32 retries) in C:\Dev\GitHub\poveden\EliteChroma\src\EliteFiles\Internal\FileOperations.cs:line 8 at EliteFiles.Status.StatusWatcher.Reload() in C:\Dev\GitHub\poveden\EliteChroma\src\EliteFiles\Status\StatusWatcher.cs:line 87 at EliteFiles.Status.StatusWatcher.StatusWatcher_Changed(Object sender, FileSystemEventArgs e) in C:\Dev\GitHub\poveden\EliteChroma\src\EliteFiles\Status\StatusWatcher.cs:line 82 at EliteFiles.Internal.EliteFileSystemWatcher.OnChanged(FileSystemEventArgs e) in C:\Dev\GitHub\poveden\EliteChroma\src\EliteFiles\Internal\EliteFileSystemWatcher.cs:line 123 at EliteFiles.Internal.EliteFileSystemWatcher.Watcher_Changed(Object sender, FileSystemEventArgs e) in C:\Dev\GitHub\poveden\EliteChroma\src\EliteFiles\Internal\EliteFileSystemWatcher.cs:line 105 at System.IO.FileSystemWatcher.InvokeOn(FileSystemEventArgs e, FileSystemEventHandler handler) at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan1 name) at System.IO.FileSystemWatcher.ParseEventBufferAndNotifyForEach(ReadOnlySpan1 buffer) at System.IO.FileSystemWatcher.ReadDirectoryChangesCallback(UInt32 errorCode, UInt32 numBytes, AsyncReadState state) at System.IO.FileSystemWatcher.<>c.b__83_0(UInt32 errorCode, UInt32 numBytes, NativeOverlapped overlappedPointer) at System.Threading.ThreadPoolBoundHandleOverlapped.CompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped nativeOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pNativeOverlapped)

image

Faulting application name: EliteChroma.exe, version: 1.18.2.0, time stamp: 0x656f0000 Faulting module name: KERNELBASE.dll, version: 10.0.22621.4391, time stamp: 0x7433a115 Exception code: 0xe0434352 Fault offset: 0x000000000005fa4c Faulting process id: 0x0x49F0 Faulting application start time: 0x0x1DB2C6BC5C67A89 Faulting application path: C:\Program Files\EliteChroma\EliteChroma.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report Id: 8efc8978-41a8-44d6-9542-06b5ec83950a Faulting package full name: Faulting package-relative application ID:

GrasshopperMan17 commented 3 weeks ago

im getting the same exact thing, with the same info

r4z0rw1r3 commented 2 weeks ago

Update - Seems to be something to do with being docked / landing gear down, when the lighting goes 'deep blue'.

I logged out of game mid-space today (in analysis mode), when I logged back in, EliteChroma didn't crash and just gave the usual 'light blue' lighting from being in-flight / analysis mode. The lighting also reacted 'orange' correctly from a switch to combat mode.

All continued to work fine until I next landed at a station, then as soon as the docking procedure started (when you get 'deep blue' lighting), app crashed again as described above.

GrasshopperMan17 commented 2 weeks ago

its not though. i logged out near a res site with my landing gear up and in combat mode, and as soon as i loaded into my cockpit the next time i logged in, EC crashed

poveden commented 2 weeks ago

Hi @r4z0rw1r3! Thank you for reporting this. I'm out of town right now, so please allow a few days for me to come back. I believe that your stack trace has enough information for me to pinpoint the issue. I'll keep you posted.

DonChooluvit commented 1 week ago

Confirmed on my end too. However, it was crashing while I was flying a Mandalay. Today I swapped to an Anaconda and the app worked as expected

r4z0rw1r3 commented 1 week ago

Confirmed on my end too. However, it was crashing while I was flying a Mandalay. Today I swapped to an Anaconda and the app worked as expected

Hadn't considered that, I've been using the Mandalay since the Ascendancy release, so I will try changing ship too.

GrasshopperMan17 commented 6 days ago

nah, it crashes for me in any ship im in, as soon as i load into the cockpit