EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!
3 posters
EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!
I'm using the latest version of SIO2 for my iPod Touch 2.2.1. I'm a noob to all of this. After creating my scene within Blender 2.49 and exported through the supplied SIO2 export script, i attempted to load the scene into the simulator.
To make things easier i used Tutorial 2 and Tutorial 4 by replacing their existing Tutorial.SIO2 file with my newly exported file then BUILD-GO. It didnt work. I keep getting back EXC_BAD_ACCESS within "sio2_resource.cc" at line 2174: if(_SIO2material->tname[ j ][ 0 ] && !_SIO2material->_SIO2image[ j ]->tid).
The exported scene does contain two texture PNG images (256x256x24bit).
Any assistance would be appreciated.
To make things easier i used Tutorial 2 and Tutorial 4 by replacing their existing Tutorial.SIO2 file with my newly exported file then BUILD-GO. It didnt work. I keep getting back EXC_BAD_ACCESS within "sio2_resource.cc" at line 2174: if(_SIO2material->tname[ j ][ 0 ] && !_SIO2material->_SIO2image[ j ]->tid).
The exported scene does contain two texture PNG images (256x256x24bit).
Any assistance would be appreciated.
quantass- Posts : 14
Join date : 2009-09-19
Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!
You haven't bind the image... use tutorial03 instead of 02...
Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!
Thanks for the reply.
I'm not sure what you mean by "bind the image" but i did launch Tutorial 3 and replaced its .SIO2 scene file with my own file. I tried running it through the simulator but still received a EXC_BAD_ACCESS like before. Very strange.
I then went ahead and loaded Tutorial3.blend into Blender 2.49, relinked its textures, then exported the scene out. I then went back to Tutorial3 within Xcode and replaced its tutorial03.sio2 with the newly exported .SIO2 of my saved out tutorial3.blend scene. I compiled and launched the app but again the program crashed.
For the record i'm using Blender 2.49 on my Windows Vista PC but am using Xcode development on the Mac OSX.
Thanks for any further assistance.
I'm not sure what you mean by "bind the image" but i did launch Tutorial 3 and replaced its .SIO2 scene file with my own file. I tried running it through the simulator but still received a EXC_BAD_ACCESS like before. Very strange.
I then went ahead and loaded Tutorial3.blend into Blender 2.49, relinked its textures, then exported the scene out. I then went back to Tutorial3 within Xcode and replaced its tutorial03.sio2 with the newly exported .SIO2 of my saved out tutorial3.blend scene. I compiled and launched the app but again the program crashed.
For the record i'm using Blender 2.49 on my Windows Vista PC but am using Xcode development on the Mac OSX.
Thanks for any further assistance.
quantass- Posts : 14
Join date : 2009-09-19
A Solution!?
Ok i think i discovered the source of the problem with SIO2 and loading of my Blender exported scene. It seems the zipped contents is in a directory structure. I normally export to my desktop (C:\Users\Quantass\Desktop). Apparently the created archive contents mimics this directory structure + the required scene folders. SIO2 when reading seems to detest the appended directory structure and prefers the scene folders to be at root.
I'm trying to figure out the exporter Python code to make the changes so that it always stores the scene at root level. I was going to comment out the code in SIO2 to just ignore it but i dont want to create a future problem.
Let me know if this all makes sense. Perhaps there is a better way.
I'm trying to figure out the exporter Python code to make the changes so that it always stores the scene at root level. I was going to comment out the code in SIO2 to just ignore it but i dont want to create a future problem.
Let me know if this all makes sense. Perhaps there is a better way.
quantass- Posts : 14
Join date : 2009-09-19
Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!
![Very Happy](https://2img.net/i/fa/i/smiles/icon_biggrin.png)
Not to be too much of a smart a$$ but just use Blender on your Mac...
![Very Happy](https://2img.net/i/fa/i/smiles/icon_biggrin.png)
cybergreg- Posts : 21
Join date : 2009-07-21
Location : SoCal, USA
Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!
Unfortunately my hackintosh just keeps say not enough VRAM to run Blender directly on the Mac. It isn't too bad to use Blender on the PC and then mouse over to the Mac. To be honest I find OSX a little clumsier than Windows so if i can avoid as much use of it as possible its only good for me. ![Smile](https://2img.net/i/fa/i/smiles/icon_smile.gif)
I did get SIO2 to finally load my Blender export but NOW it doesnt render the textures.
![Smile](https://2img.net/i/fa/i/smiles/icon_smile.gif)
I did get SIO2 to finally load my Blender export but NOW it doesnt render the textures.
quantass- Posts : 14
Join date : 2009-09-19
![-](https://2img.net/i/empty.gif)
» Load a texture directly from a .sio2 file
» How to rotate a object without changing the axis by SIO2?
» Request: glut+SIO2 project template with SIO2 releases.
» Load times
» SIO load checking
» How to rotate a object without changing the axis by SIO2?
» Request: glut+SIO2 project template with SIO2 releases.
» Load times
» SIO load checking
Permissions in this forum:
You cannot reply to topics in this forum
|
|