Crash log when running iRacing and Theme Editor at the same time

Posts: 19
Hi,

I get this error quite often, when I have Theme Editor open and then start spectating a session in iRacing. Normally the error window pops up 5 to 10 times in a row as soon as the track finishes loading, then everything works fine from that point on. It's always the same error log.


Download logfile
Error: 05/03/2019 12:57:58 (UTC)
Unhandled exception
System.NullReferenceException: Referência de objeto não definida para uma instância de um objeto.
  em ATVO.Data.Updater.DataUpdater.Update(Simulation sim, DataSnapshot data) na F:\Appgineer.in\Appgineer.in TV Overlay for iRacing\ATVO.Data\Updater\DataUpdater.cs:linha 153
  em ATVO.Data.Updater.DataUpdater.Update(iRacingSDK sdk, Simulation sim) na F:\Appgineer.in\Appgineer.in TV Overlay for iRacing\ATVO.Data\Updater\DataUpdater.cs:linha 109
  em ATVO.Data.Updater.DataUpdater.UpdateData(iRacingSDK& sdk, Simulation sim) na F:\Appgineer.in\Appgineer.in TV Overlay for iRacing\ATVO.Data\Updater\DataUpdater.cs:linha 83
  em ATVO.Data.Simulation.UpdateData() na F:\Appgineer.in\Appgineer.in TV Overlay for iRacing\ATVO.Data\Simulation.cs:linha 264
Edited (2 times)
Posts: 785
I cannot reproduce this. I could add a null check in the places that the error indicates but I don't know what effect that will have on the rest of that code... So I'm a bit hesitant especially since it seems it continues fine after this. Can you reproduce this in ATVO as well, or only in the Theme Editor?
Posts: 19
As far as I remember it happens on the Theme Editor only. It doesn't happen every time I start iRacing though, I couldn't find a foolproof way to trigger it.
Posts: 100
This happens to me as well, I can confirm it happens only when the editor is open BEFORE I load into iRacing, and then I load iRacing with the editor up.
Posts: 28
Not sure if it is the same error, but, I find the editor crashes if I have it open in one session, then close iRacing and log into another session. When the sim opens up, the editor crashes and throws an error message multiple times. I have just been closing the editor and hoping I have remembered to save the theme :-).

Has been pretty consistent behaviour. I am working on a theme tonight, I will attempt to reproduce it and post the results.
Posts: 28
Confirmed the behaviour. Screenshot of the error and a log file attached for reference.

Again, unsure if it is the same error as is being tracked in this thread.



Download logfile
Error: 3/12/2019 9:32:38 AM (UTC)
Unhandled exception
System.NullReferenceException: Object reference not set to an instance of an object.
at ATVO.Data.Updater.DataUpdater.Update(Simulation sim, DataSnapshot data) in F:\Users\Nick\Documents\Programming\Projects\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.Data\Updater\DataUpdater.cs:line 153
at ATVO.Data.Updater.DataUpdater.Update(iRacingSDK sdk, Simulation sim) in F:\Users\Nick\Documents\Programming\Projects\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.Data\Updater\DataUpdater.cs:line 109
at ATVO.Data.Updater.DataUpdater.UpdateData(iRacingSDK& sdk, Simulation sim) in F:\Users\Nick\Documents\Programming\Projects\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.Data\Updater\DataUpdater.cs:line 83
at ATVO.Data.Simulation.UpdateData() in F:\Users\Nick\Documents\Programming\Projects\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.Data\Simulation.cs:line 264