Debug via GDB

Hi at all,

I am working for a very complex game, and I meet some problem which I don’t know how solve.

I am using Unity 3 and I am very happy to see news way to debug my code with MonoDevelop (I think mechanism for do this is very heavy for machine but is better rather before).I fix some bug using Unity Remote but when I try the game inside my iPad GDB said me (each time) : EXEC_BAD_ACCESS.

I know some commons command of GDB and when I ask for the backtrace the result is :

start() 0xFce21 (address is meaningless)

How can I investigate better the problem ? :face_with_spiral_eyes:

I would like link the function called inside start() with the code wrote by me!

I know that the question is too much complicated and maybe I didn’t explain very good, but someone know a guy who could help me?

Thanks a lot for your patient!

pedr0

I see this message on xCode console:

Someone can help me!!??

I am writing a save/load mechanism to save my object in a stream of byte, but I met some problems and I changed in XML serialization.

Well, the object are instances of my own class, without reflection problems or field which cannot serialized, this is sure because BEFORE Unity 3 all work fine, slow but fine.

Now when I play my app in my mac with unity remote all work fine, but when I play that in my iPad I see (this is a systematic situation)

I think this is a error like “Segmentation Fault” or “Page fault” which I saw a lot of time inside my C/C++ application. :slight_smile:
But I don’t know how to solve this problems because the Unity-Framework wrap my own code and I don’t understand where and why this error happens.

Do you have any idea about a method to debug this type of problems?

Best regards.

pedr0

exc_bad_access normally means that something in the code tries to read / write to a null reference.

enable debug build in build settings, disable fast and no exception as well as stripping in player settings and using the debug profile in xcode instead of release should definitly help to get an idea what is going nuts

I followed your suggest but the result output didn’t help me too much : (

I am using Unity 3 with Stripping disabled, slow and safe, .Net 2.0 Subset if I try with .NET 2.0 (without subset) the result is the same…

I have to go back in Unity iPhone…?:frowning: :face_with_spiral_eyes: