OpenBVE icon indicating copy to clipboard operation
OpenBVE copied to clipboard

What should I do when the openbve.exe file is missing?

Open kmsimproject opened this issue 4 years ago • 38 comments

Description

Please describe the issue you are experiencing.

Reproduction

If the issue occurs in multiple routes/ trains, please provide one or two samples. In order to reproduce the issue and debug it, it's helpful to have the following:

Route

Please provide a link to where the route may be downloaded.

Train

Please provide a link to the train may be downloaded.

Logs

Logs may be accessed through the 'Report Problem' button on the bottom left of the screen. Please provide a log, and a crash-log if the game actually crashes.

Related information

  • Operating system
  • Method of control (Keyboard, joystick, RailDriver)

This is what it looks like when you build it. Severity Code Description Project File Line Non-Display Status Warning Unable to find referenced component 'System.Drawing'. Route.CsvRw Error CS0246 'CSScriptLibrary' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi E:\OpenBVE-master\OpenBVE-master\source\OpenBveApi\ObjectTypes\AnimatedObject.cs 3 Active Error CS0246 'SharpCompress' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi E:\OpenBVE-master\OpenBVE-master\source\OpenBveApi\Packages\Packages.cs 9 Active Error CS0246 'SharpCompress' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi E:\OpenBVE-master\OpenBVE-master\source\OpenBveApi\Packages\Packages.cs 10 Active Error CS0246 'SharpCompress' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi E:\OpenBVE-master\OpenBVE-master\source\OpenBveApi\Packages\Packages.cs 11 Active Error CS0246 'SharpCompress' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi E:\OpenBVE-master\OpenBVE-master\source\OpenBveApi\Packages\Packages.cs 12 Active Error CS0246 'ValueTuple<,>' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi E:\OpenBVE-master\OpenBVE-master\source\OpenBveApi\System\Hosts.cs 465 Active Error CS0246 'Ude' format or namespace name not found. Check if there is a using directive or assembly reference. OpenBveApi E:\OpenBVE-master\OpenBVE-master\source\OpenBveApi\System\TextEncoding.cs 2 Active Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. AssimpParser Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. LibRender2 Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. SoundManager Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Animated Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.CsvB3d Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.DirectX Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.LokSim Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Msts Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Wavefront Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly.

kmsimproject avatar Sep 06 '20 06:09 kmsimproject

You first need to run a nuget restore to pull in the external dependencies: https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore

leezer3 avatar Sep 06 '20 07:09 leezer3

@leezer3 Thanks for making such an awesome simulator, I restored it using the nuget command with cmd, but an error appears. error content Severity Code Description Project File Line Non-Display Status Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. LibRender2 Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. AssimpParser Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. SoundManager Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Animated Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.CsvB3d Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.DirectX Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.LokSim Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Msts Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Object.Wavefront Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. RouteManager2 Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Sound.Flac Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Sound.MP3 Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name. 2.) Ensure that the task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3) * in the project file or in the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Commonity\MSBuild\15.0\Bin".Use <UsingTask> in the tasks file to verify that the job is declared correctly. Sound.RiffWave Error "GetReferenceNearestTargetFrameworkTask" operation not found. Check out the following: 1) Verify that the job name in the project file is the same as the job class name.

kmsimproject avatar Sep 06 '20 07:09 kmsimproject

Your problem seems to be similar to this one. https://developercommunity.visualstudio.com/content/problem/160494/msbuild-broken-getreferencenearesttargetframeworkt.html

This is also the same. https://forum.unity.com/threads/visual-studio-problem.507850/

s520 avatar Sep 06 '20 07:09 s520

@s520 @leezer3 thank you. Thanks. Solved. But I have another problem. When I started, it said Unhandled Windows Forms Exception and A fatal exception occurred inside the UIThreadException handler in the program. I hope you can tell me how to fix it.

kmsimproject avatar Sep 06 '20 09:09 kmsimproject

The log says. 'OpenBve.exe' (CLR v4.0.30319: DefaultDomain: 'C:\Windows\Microsoft.Net\assemble\GAC_32\mscorib\v4.0.0_4.0.0.0__b77a5c1934e089\mscorib.dls (hereinafter referred to as "Bna") PD. OpenBve.exe (CLR v4.0.30319: DefaultDomain: 'E:\OpenBVE-master\OpenBREASE\openbe.exe.' 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\v4.0_4.0.0.0____b77a5c51934e089\System.dll'LOSSystem' (System).dll'lo'lo'lo'ling (hereinafter 'ro' PDB can do something. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows form\v4.0_4.0.0.0___b77a5c1934e089\System Window Form.Yes, the PDB can be repaired. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'E:\OpenBVE-master\OpenBVE-master\bin_release\OpenBveApi.d will be Loro. Yeah. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Drawing.dlling(rold) by drawing\v4.0__b03f7f11a3a\system.You can find PDB.dayling. 'OpenBve.exe'(CLR v4.0.30319: OpenBve.exe: 'E:\OpenBVE-master\OpenBVE-master\bin_release\PIEHID32Net.dll'sling(으)로. ᄋᄋᄋᄋ. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'E:\OpenBVE-master\OpenBVE-master\bin_release\LibRender2.dle. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'E:\OpenBVE-master\OpenBVE-master\bin_release\OpenTK.To dll'loe(local). Instruments. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'E:\OpenBVE-master\OpenBVE-master\bin_release\SoundManager.dll lotto equipment 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'E:\OpenBVE-master\OpenBVE-master\bin_release\RouteManager2.dll.' 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.ValueTuple\v4.0_4.0.0.0_cc7b13fcd2d5\system.ValueTuple.llllo. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorib.resources\v4.0_4.0.0_ko_b77a5c089\mscoribresources'. Exception Occurred: 'System.DllNotFoundException (OpenTK).dll) 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system\system\v4.0_4.0.0___b77a5c561934e09\System.dll to ᄋ. PDB may be ᄋᄋ. OpenBve.exe (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0____b77a5c1934e089\System.Xml.Linq'dll (PDB) may be Sunday. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assemble\GAC_MSIL\system.Xml\v4.0_4.0.0.0___b77a5c1934e089\SystemXml'DLL' by the fourth producer. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'E:\OpenBVE-master\OpenBVE-master\bin_release\Data\InputDevicePlugins\DefaultDisplayPlugin.dllo'd'd' 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'E:\OpenBVE-master\OpenBVE-master\bin_release\Data\Input.dll'slo.ld. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Configure\v4.0_4.0.0.0___b03f5f7f11d50a\Configuration.dll'lo'lo'lo' 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f7f11d50a\access.dll. PDB will repair it. 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows Forms.resources\v4.0_4.0.0.0_ko_b77a5c0894e089\system, resource, dll. ᄋᄋᄋᄋᄋᄋᄋᄋᄋᄋ Exception Occurred: 'System.ArgumentNullException.Windows Settings Form.dll) Exception Occurred: 'System.NullReferenceException (OpenBve.exe) Exception Occurred: 'System.IO.IOException(mscorlib.dll) 'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC\MSIL\system.resources\v4.0_4.0.0_ko_b77a5c089\System.resourcedll also' Exception Occurred: 'System.Invalid Operational Exception (System.dll) Exception Occurred: 'System.NullReferenceException (OpenBve.exe) Exception Occurred: 'System.Invalid Operational Exception (System.dll) Exception Occurred: 'System.IO.IOException(mscorlib.dll) Exception Occurred: 'System.IO.IOException(mscorlib.dll)

kmsimproject avatar Sep 06 '20 09:09 kmsimproject

That looks a little confused :/

I think it's trying and failing to load something. First, let's go back to basics- Does the most recent nightly build load? https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2020-09-04.zip

This should tell us whether it's something in the way it's being built, or something wider with Windows / .Net

leezer3 avatar Sep 06 '20 09:09 leezer3

@leezer3 Well, then can I just download it and see if the download program runs?

kmsimproject avatar Sep 06 '20 09:09 kmsimproject

Correct. Those are automatically built from the latest source.

leezer3 avatar Sep 06 '20 09:09 leezer3

@leezer3 Can't run.

kmsimproject avatar Sep 06 '20 09:09 kmsimproject

@leezer3 Other than openbve.exe, it seems to be working fine.

kmsimproject avatar Sep 06 '20 09:09 kmsimproject

Does that mean that ObjectViewer etc is working? Also, please tell us about your PC environment (OS, .NET Framework version, etc.).

s520 avatar Sep 06 '20 09:09 s520

@s520 yes. os seems to use Windows 10 and net framework 4.5.x.

kmsimproject avatar Sep 06 '20 10:09 kmsimproject

The current OpenBVE main program requires .NET Framework 4.6.1 or higher. TrainEditor2 requires 4.7.2 or higher.

s520 avatar Sep 06 '20 10:09 s520

@s520 4.6.1 or higher seems to be already installed.

kmsimproject avatar Sep 06 '20 10:09 kmsimproject

I think Windows 10 should have 4.6.1 at stock.

Can you provide the full folder name you've extracted the archive into & your Windows username? I'm wondering if it's something to do with Hangul characters somewhere in the path.

Can't test until tonight (at work) though....

leezer3 avatar Sep 06 '20 10:09 leezer3

@leezer3 May I just say that the user name of Windows is written in Korean? And I don't know the full folder name in detail, but I don't think I've ever changed the folder name to Korean after downloading the zip file.

kmsimproject avatar Sep 06 '20 10:09 kmsimproject

That's fine for the minute.

I'd definitely try with a Latin username to start. I'll try some testing when I get in from work & see if I can reproduce anything. Presumably Windows is in Korean too?

leezer3 avatar Sep 06 '20 10:09 leezer3

@leezer3 yes

kmsimproject avatar Sep 06 '20 10:09 kmsimproject

@leezer3 Even if I change my computer name to English, I get an error.

kmsimproject avatar Sep 06 '20 10:09 kmsimproject

I've just tried setting my machine to Korean & trying a random korean string as the username, and this works as expected.

Looking some more at the log you posted above, most of it doesn't make much sense in English (Have you translated it from Korean via Google translate?) I don't like this very much, as it suggests it can't load OpenTK:

Exception Occurred: 'System.DllNotFoundException (OpenTK).dll)

The best current idea I've got is to try installing Visual Studio 2019 and building with that, as that would install the .Net 4.8 developer tools too. These are available separately here (If doing that, I'd install both the English and the Korean): https://dotnet.microsoft.com/download/dotnet-framework/net48


I'd also be interested to know what happens if you try to launch OpenBVE with the Run command in Visual Studio. Presumably this will also crash, but it might break at a source location, which could tell us a little more about what's wrong.

leezer3 avatar Sep 06 '20 18:09 leezer3

@leezer3 Sorry for the late reply, but I don't think I can.

kmsimproject avatar Sep 12 '20 04:09 kmsimproject

@leezer3 The log about that OpenTK doesn't seem to matter. It appears when I try to debug in a release build. (例外がスローされました: 'System.DllNotFoundException' (OpenTK.dll の中))

Full log
'OpenBve.exe' (CLR v4.0.30319: DefaultDomain): 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' が読み込まれました。シンボルの読み込みをスキップしました。モジュールは最適化されていて、デバッグ オプションの [マイ コードのみ] 設定が有効になっています。
'OpenBve.exe' (CLR v4.0.30319: DefaultDomain): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\OpenBve.exe' が読み込まれました。シンボルの読み込みをスキップしました。モジュールは最適化されていて、デバッグ オプションの [マイ コードのみ] 設定が有効になっています。
モジュール 'OpenBve.exe' のシンボルが読み込まれませんでした。

1。デバッグ ビルド構成を使用するか、[マイ コードのみを有効にする] デバッグ オプションを無効にします。
2。デバッグ オプションの下の [シンボル] 設定を確認します。'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll' が読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll' が読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll' が読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\OpenBveApi.dll' が読み込まれました。モジュールがシンボルなしでビルドされました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\PIEHid32Net.dll' が読み込まれました。モジュールがシンボルなしでビルドされました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\LibRender2.dll' が読み込まれました。シンボルが読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\OpenTK.dll' が読み込まれました。シンボルが読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\SoundManager.dll' が読み込まれました。シンボルが読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\RouteManager2.dll' が読み込まれました。シンボルが読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ValueTuple\v4.0_4.0.0.0__cc7b13ffcd2ddd51\System.ValueTuple.dll' が読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ja_b77a5c561934e089\mscorlib.resources.dll' が読み込まれました。モジュールがシンボルなしでビルドされました。
例外がスローされました: 'System.DllNotFoundException' (OpenTK.dll の中)
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll' が読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll' が読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll' が読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\Data\InputDevicePlugins\DefaultDisplayPlugin.dll' が読み込まれました。シンボルが読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Users\User\Desktop\Local_Dev\OpenBVE\bin_release\Data\InputDevicePlugins\SanYingInput.dll' が読み込まれました。シンボルが読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll' が読み込まれました。
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_ja_b77a5c561934e089\System.Windows.Forms.resources.dll' が読み込まれました。モジュールがシンボルなしでビルドされました。

@kmsimproject You have Visual Studio 2017, right? If so, change the solution configuration to "Debug" and start debugging. That way, the debugger will usually show you the code that caused the exception.

Also, check if the crash log is generated. This is usually generated in the following folder when a crash occurs: C:\Users\<Your user name>\AppData\Roaming\openBVE\Settings

s520 avatar Sep 12 '20 08:09 s520

Now that's interesting- Mine doesn't do that, although I think you're probably right that it's irrelevant.

Full log
'OpenBve.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'B:\SourceCode\bin_release\OpenBve.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Symbols for the module 'OpenBve.exe' were not loaded.

1. Use a debug build configuration or disable the debug option 'Enable Just My Code'. 
2. Check the 'Symbols' settings under debugging options.'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\OpenBveApi.dll'. Module was built without symbols.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\PIEHid32Net.dll'. Module was built without symbols.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\LibRender2.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\OpenTK.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\SoundManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\RouteManager2.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ValueTuple\v4.0_4.0.0.0__cc7b13ffcd2ddd51\System.ValueTuple.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\Data\InputDevicePlugins\DefaultDisplayPlugin.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\Data\InputDevicePlugins\SanYingInput.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Comparing the three logs, I note that kmsimproject is loading the Korean localised version of the System.Windows.Forms DLL:

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows Forms.resources\v4.0_4.0.0.0_ko_b77a5c0894e089\system, resource, dll. ᄋᄋᄋᄋᄋᄋᄋᄋᄋᄋ

@kmsimproject What happens if you atttempt to open the Options window in Object Viewer with F8 Does this crash? (This attempts to popup a form)


Some other thoughts: As the viewers work, this is probably an issue with the main menu form, and presumably something to do with Korean, although we have other users who are in Korea, presumably with no issues (e.g. https://bveworldwide.forumotion.com/t1682-seoul-metro-commuter-train-series#19978 ) We could possibly try a blind fix of setting the main thread & UI culture to en-US: https://stackoverflow.com/questions/51602944/how-set-a-culture-for-entire-winform-application Not sure how that would impact Mono though, and I don't much like shooting blind.

You also might be able to try a command-line launch of OpenBVE to confirm these suspicions, like this:

B:\sourcecode\bin_debug\openbve.exe /route="D:\program files\bve\railway\route\ATC (default).csv"

Obviously, replace the final argument with your routefile (the default train must be available for this to work)

leezer3 avatar Sep 12 '20 10:09 leezer3

Try Code Analyzer built into Visual Studio - https://docs.microsoft.com/en-us/visualstudio/code-quality/analyzers-faq

It supports. Net and C#. I had a problem in some code I released that only manifested in DACH countries. The commercial code analysis tools didnt find the bug - MS own tool did.

As a Brit one uses 1.234 say, EU folks use 1,234 Code analyzer pointed out locale issues - fixed using their recommendations and users never hit issue again.

So my guess is something environmental perhaps a specific path is causing some overflow.

On Sat, 12 Sep 2020, 11:19 Christopher Lees, [email protected] wrote:

Now that's interesting- Mine doesn't do that, although I think you're probably right that it's irrelevant. Full log

'OpenBve.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'B:\SourceCode\bin_release\OpenBve.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Symbols for the module 'OpenBve.exe' were not loaded.

  1. Use a debug build configuration or disable the debug option 'Enable Just My Code'.

  2. Check the 'Symbols' settings under debugging options.'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\OpenBveApi.dll'. Module was built without symbols.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\PIEHid32Net.dll'. Module was built without symbols.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\LibRender2.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\OpenTK.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\SoundManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\RouteManager2.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ValueTuple\v4.0_4.0.0.0__cc7b13ffcd2ddd51\System.ValueTuple.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\Data\InputDevicePlugins\DefaultDisplayPlugin.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'B:\SourceCode\bin_release\Data\InputDevicePlugins\SanYingInput.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Comparing the three logs, I note that kmsimproject is loading the Korean localised version of the System.Windows.Forms DLL:

'OpenBve.exe' (CLR v4.0.30319: OpenBve.exe: 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows Forms.resources\v4.0_4.0.0.0_ko_b77a5c0894e089\system, resource, dll. ᄋᄋᄋᄋᄋᄋᄋᄋᄋᄋ

@kmsimproject https://github.com/kmsimproject What happens if you atttempt to open the Options window in Object Viewer with F8 Does this crash?

Some other thoughts: As the viewers work, this is probably an issue with the main menu form, and presumably something to do with Korean, although we have other users who are in Korea, presumably with no issues (e.g. https://bveworldwide.forumotion.com/t1682-seoul-metro-commuter-train-series#19978 ) We could possibly try a blind fix of setting the main thread & UI culture to en-US:

https://stackoverflow.com/questions/51602944/how-set-a-culture-for-entire-winform-application Not sure how that would impact Mono though, and I don't much like shooting blind.

You also might be able to try a command-line launch of OpenBVE to confirm these suspicions, like this:

B:\sourcecode\bin_debug\openbve.exe /route="D:\program files\bve\railway\route\ATC (default).csv"

Obviously, replace the final argument with your routefile (the default train must be available for this to work)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leezer3/OpenBVE/issues/524#issuecomment-691463298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFO7EV5YY7OUN57DIOJSTXDSFNDJ3ANCNFSM4Q372GMQ .

shooking avatar Sep 12 '20 19:09 shooking

@leezer3 Sorry for the late reply, and the pop-up window pops up well even if you press F8.

kmsimproject avatar Nov 06 '20 12:11 kmsimproject

I've never been able to reproduce this & I believe you're the only person to have encountered it. (Or at least the only one to report it)

Have you tried the command-line launch I suggested above?

leezer3 avatar Jan 01 '21 23:01 leezer3

@leezer3 I'm sorry, but I couldn't understand it. Could you explain it more easily?

kmsimproject avatar Jan 01 '21 23:01 kmsimproject

The main game can be launched from a command prompt, without the use of the menu.

In order to do this, you open a command prompt, and type in the full path to the OpenBve.exe file, then a space, then the /route= switch, followed by the full path to your desired route file.

Any paths with spaces in need to be enclosed in quotes.

https://www.bleepingcomputer.com/tutorials/windows-command-prompt-introduction/ (Basic intro. Once upon a time this was all we had......)

leezer3 avatar Jan 02 '21 00:01 leezer3

@leezer3 Okay

kmsimproject avatar Jan 02 '21 00:01 kmsimproject

I see. Do I have to type CD in front? Do I have to start?

kmsimproject avatar Jan 02 '21 00:01 kmsimproject