SIGBUS + mono AOT library out of sync

After making various changes to our game in the Windows version of Unity, I finally opened the project again in the iPhone version on a Mac.

Now I’m getting the following error from XCode (also see attachment):

GDB: Program received signal: "SIGBUS"

When I open the editor console log, I notice the following error:

Mono Ahead of Time compiler - compiling assembly /Users/Gamedevelopment/Desktop/BoulderBridge/BoulderBridgeGame/Temp/BuildingPlayer/Data/mscorlib.dll
cant resolve internal call to "System.__ComObject::CoCreateInstance(System.Guid,intptr,uint,System.Guid,intptr)" (tested without signature also)
Your mono runtime and class libraries are out of sync.
The out of sync library is: /Users/Gamedevelopment/Desktop/BoulderBridge/BoulderBridgeGame/Temp/BuildingPlayer/Data/mscorlib.dll

When you update one from svn you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.

I’m not sure if I had this error before, but a few revisions earlier, the game just worked.

I don’t really have a clue on how to resolve this issue. I am indeed using svn, but the Temp library is not even included in svn.

I reverted to the revision that previously worked, and I get exactly the same errors.

I also restarted Unity, XCode and the iPod used for development, but none of these helped.

Note that I extended the free license as I had only three days left.
I’m currently downloading Unity iPhone again, so the next thing I will try is to reinstall Unity.

If anyone has a clue, any help would be greatly appreciated!

I noticed that the game does run when launched from the iPhone (without being attached to the debugger), but the entire UI and some objects are missing, as if no code at all is executed, and the scene is just displayed.

hm. this is very untypical. Could you please submit a bugreport with this and provide us with repro steps?

Ok. When I continue on this unity project I will submit a bug report, or post the solution here if I found it myself.

Hi wozik,

i´m having a similar problem, posted here:
http://forum.unity3d.com/viewtopic.php?t=43977&highlight=cocreateinstance

actually, my game runs fine, but do you have an idea where the errors like:

ono Ahead of Time compiler - compiling assembly /Users/thomas/My New Project/test/Temp/BuildingPlayer/Data/mscorlib.dll
cant resolve internal call to "System.__ComObject::CoCreateInstance(System.Guid,intptr,uint,System.Guid,intptr)" (tested without signature also)
Your mono runtime and class libraries are out of sync.
The out of sync library is: /Users/thomas/My New Project/test/Temp/BuildingPlayer/Data/mscorlib.dll

come from - and how to get rid of them?
i also reinstalled unityiphone…
tried with an completely empty project - when building, the editor.log always prints these messages.

i could provide you with a build!

plz help, thanks!!!

thanks,
thomas!

hm. Strange again.

Now did you try col-restarting your iphone and building to a new folder?

Also, please keep in mind that Unity cannot be installed to case sensitive file system or network share. And your project also cannot be saved to case sensitive file system or network share.

The last guess is corrupted trampoline. Reinstalling latest SDK may help here.

Hi Wozik,

many thanks for your reply!

Actually, yes.
but just to point out: this happens when “building”.
so, i dont even install the app on the iphone.
when installing the game runs fine, its just that warning that give me a rather uncomfortable feeling ;-(

i think they would not appear if everythings fine…

everything is on my mac´s harddrive…
no network shares here…
i also deleted the temp-folder, and my buildfolder is within the projects´s folder, but not in assets, or editor or…whatever.

i´ll try that now and post results.

again: thanks for your help!
greets
thomas

In the meantime I found out what was the issue for me. It was something in my code; I was trying to write to an invalid directory. In the editor, everything worked fine, but not on the iPhone.

I also found that there’s a debugger console that can be displayed in XCode. There I could see a call stack showing the line where it went wrong.

Yeah, the whole process is described in manual under troubleshooting section. You may want to look through it.

hi,

since i updated to 1.6, i do not get the error

Your mono runtime and class libraries are out of sync
The out of sync library is: /Users/Galen/Game Projects/iPhone/FowlInvaders/FowlInvaders Version 1.1/FowlInvaders/Temp/BuildingPlayer/Data/mscorlib.dll

anymore!

greets, thomas

greeting then :wink: glad you’re a bit happier now

actually, not just a bit :wink:

btw:
http://intra.unity3d.com/fogbugz/default.asp?332751_8vkp0shr

this can be considered to be resolved :wink:
(i cant close the bug, maybe you can?)

greets!
thomas

thanks, done