zissakos / RBRCIT

RBR Car Installation Tool
http://www.ly-racing.de/viewtopic.php?t=8516
52 stars 6 forks source link

Null reference exception while downloading "Physics" for "Group 4 - Opel - Ascona 400 Grp4" #2

Open sersoler opened 5 years ago

sersoler commented 5 years ago

Windows 7 x64, SP1. System language Russian. Admin rights.

Exception thrown immediately after start downloading "Physics" for "Group 4 - Opel - Ascona 400 Grp4". Raises popup window with buttons "Continue", "Exit". If select "Continue" then main program working normally. "Update Model" for this car work without errors.

************** Exception text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   в RBRCIT.FormDownload.Client_DownloadDataCompleted(Object sender, DownloadDataCompletedEventArgs e)
   в System.Net.WebClient.OnDownloadDataCompleted(DownloadDataCompletedEventArgs e)
   в System.Net.WebClient.DownloadDataOperationCompleted(Object arg)

************** Загруженные сборки **************
mscorlib
    Версия сборки: 4.0.0.0
    Версия Win32: 4.7.2116.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
RBRCIT
    Версия сборки: 1.0.0.0
    Версия Win32: 1.0.4.0
    CodeBase: file:///D:/games/Richard%20Burns%20Rally/RBRCIT.exe
----------------------------------------
System.Windows.Forms
    Версия сборки: 4.0.0.0
    Версия Win32: 4.7.2116.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Версия сборки: 4.0.0.0
    Версия Win32: 4.7.2116.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Версия сборки: 4.0.0.0
    Версия Win32: 4.7.2116.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Версия сборки: 4.0.0.0
    Версия Win32: 4.7.2053.0 built by: NET47REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Версия сборки: 4.0.0.0
    Версия Win32: 4.7.2116.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Версия сборки: 4.0.0.0
    Версия Win32: 4.7.2116.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectListView
    Версия сборки: 2.9.1.34563
    Версия Win32: 1.0.4.0
    CodeBase: file:///D:/games/Richard%20Burns%20Rally/RBRCIT.exe
----------------------------------------
System.Windows.Forms.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.6.1055.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Deployment
    Версия сборки: 4.0.0.0
    Версия Win32: 4.7.2116.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Deployment.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.6.1055.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment.resources/v4.0_4.0.0.0_ru_b03f5f7f11d50a3a/System.Deployment.resources.dll
----------------------------------------
System.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.6.1055.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.resources.dll
----------------------------------------
mscorlib.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.6.1055.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
zissakos commented 5 years ago

Hi @sersoler I just tried it and it works. From the error message it must have been some problem with the download. Were you able to download it later?

sersoler commented 5 years ago

This is the minimal "test suite" with RBRCIT 1.0.4 to reproduce error.

Error thrown on 2 different computers with Windows7 Pro x64 SP1 RU, system language Russian.

To reproduce error execute next steps:

  1. Unpack RBR.zip
  2. Enter to rbr/ folder
  3. Start RBRCIT.exe
  4. Backup? - No
  5. Extract audio.dat? - No
  6. "Group 4 - Opel - Ascona 400 Grp4" - Update Physics

RBR.zip - archive with test.

RBR.zip

2019-02-14_112043 screenshot with error

sersoler commented 5 years ago

Error exists, but i found that to fix it you need to update "carList.ini" from menu of RBRCIT. This error occurs because of an incorrect link to the file for downloading from the dropbox from the file "carList.ini" that comes with the program release 3 Jun 2017. To get actual links to downloadable files you should always update "carList.ini" before any models or physics downloads.

The fixing of this error is at your discretion. This issue may be closed.

Thanks for your work.

sergejostir commented 5 years ago

Maybe the program could update carList.ini automatically on the first run.

zissakos commented 5 years ago

that's a good idea. I will integrate this in the next version 1.5 coming soon.

zissakos commented 5 years ago

Hi guys, just uploaded release v1.0.5 I found out that actually on startup the tool always would download carList.ini if it did not exist. So shipping it without a carList.ini would actually force a file download on startup. But after some thinking I decided against that because in case the download link is not available (for whatever reason) I wouldn't want the user to not be able to use the tool after a fresh install, even with an older version of carList.ini. However the carList shipped with RBRCIT has now been updated to the latest version (5.37).