Unhandled Exception with Mono 1.9.1_3

Topics: Retired
Oct 14, 2008 at 11:48 AM
Upgrading from Rawr b16 to Rawr v2.0.0, I'm now encountering this error when executing "mono Rawr.exe":

** (Rawr.exe:4324): WARNING **: The following assembly referenced from /Users/carpone/Desktop/Rawr v2.0.0/Rawr.exe could not be loaded:
     Assembly:   Rawr.Base    (assemblyref_index=4)
     Version:    2.0.0.0
     Public Key: (none)
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/Users/carpone/Desktop/Rawr v2.0.0/).


** (Rawr.exe:4324): WARNING **: Could not load file or assembly 'Rawr.Base, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
[whitestar:~/Desktop/Rawr v2.0.0] carpone% mono Rawr.exe

** (Rawr.exe:4601): WARNING **: The following assembly referenced from /Users/carpone/Desktop/Rawr v2.0.0/Rawr.exe could not be loaded:
     Assembly:   Rawr.Base    (assemblyref_index=4)
     Version:    2.0.0.0
     Public Key: (none)
System error: Unknown error: 0

** (Rawr.exe:4601): WARNING **: Could not load file or assembly 'Rawr.Base, Version=2.0.0.0, Culture=neutral' or one of its dependencies.

Unhandled Exception: System.TypeLoadException: A type load exception has occurred.

---

I'm running Mono Framework 1.9.1_3 on OS X 10.5.3.
Coordinator
Oct 14, 2008 at 3:03 PM
Looks like Mono isn't supporting looking in the Data folder for the DLLs... Try moving everything from the Data folder into the root Rawr folder, let me know if that fixes it.
Oct 14, 2008 at 3:22 PM
Edited Oct 14, 2008 at 3:59 PM
Moving the files causes Mono to exit quietly without running Rawr:

% cd Rawr v2.0.0/Data
% mv * ..
% cd ..
% mono Rawr.exe
% echo $?
0

Is there a Mono logfile that would have additional info?

Coordinator
Oct 14, 2008 at 3:55 PM
Try deleting the Rawr.exe.config file, as well as moving those files? Sorry this isn't working. :(
Oct 14, 2008 at 4:06 PM
Removing Rawr.exe.config results in the splash screen appearing, and this dialog box:

[when cat druid is FITE do not ask for HEEL and NINIRVATE!] "Unable to find any model plug in dlls.  Please check that the files exist and are in the correct location."

Removing the Data directory resulted in quiet exit from Mono (as above).

Duplicating (not moving) the contents of the Data directory to the root directory allows it to run.
Oct 14, 2008 at 4:31 PM
Edited Oct 14, 2008 at 4:32 PM
It might be a symptom of the above workaround, but Tools -> Edit Item results in a crash:

** (Rawr.exe:5324): WARNING **: Missing method System.Windows.Forms.Binding::WriteValue() in assembly /Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll, referenced in assembly /Users/carpone/Desktop/Rawr v2.0.0/Rawr.exe
Tue Oct 14 12:26:10 whitestar.local mono[5324] <Error>: CGContextDrawImage: invalid context
Tue Oct 14 12:26:10 whitestar.local mono[5324] <Error>: CGContextSynchronize: invalid context
Tue Oct 14 12:26:10 whitestar.local mono[5324] <Error>: CGContextSynchronize: invalid context

Coordinator
Oct 14, 2008 at 5:57 PM
Actually, that one is just a mono bug. We're working on a workaround for it.
Coordinator
Oct 14, 2008 at 7:07 PM
The only thing that you need to have duplicated is Rawr.Base.dll I think.
Oct 14, 2008 at 7:18 PM
Only moving ./Rawr v2.0.0/Data/Rawr.Base.dll to ./Rawr v2.0.0/Rawr.Base.dll works.