can't debug and run tutorial06 on device BAD_ERR_ACCESS
5 posters
can't debug and run tutorial06 on device BAD_ERR_ACCESS
hi i am trying to develop a little game strating tutorial06 of version 1.3.3 i have received an error in sio2camera.cc file, the same error i received for the original tutorial:
void sio2CameraSetPerspective( SIO2camera *_SIO2camera,
SIO2window *_SIO2window )
{
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
_SIO2camera->cend ;
sio2Perspective( _SIO2camera->fov,
_SIO2window->scl->x / _SIO2window->scl->y,
_SIO2camera->cstart,
_SIO2camera->cend );
the debug indicate error on _SIO2camera->cend ); line as BAD_ERR_ACCESS and my iphone screen remain locked on LOading image. it simply says bad access and i do not understand where is the error. i have tried to install and debug tutorial 02 and all is ok, it work but turorial 06 is correct on simulator but not correct for my device, can anyone help me? i have a iphone on 2.2.1 os version and i using 1.3.3 version of sdk. thanks to all Daniele
void sio2CameraSetPerspective( SIO2camera *_SIO2camera,
SIO2window *_SIO2window )
{
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
_SIO2camera->cend ;
sio2Perspective( _SIO2camera->fov,
_SIO2window->scl->x / _SIO2window->scl->y,
_SIO2camera->cstart,
_SIO2camera->cend );
the debug indicate error on _SIO2camera->cend ); line as BAD_ERR_ACCESS and my iphone screen remain locked on LOading image. it simply says bad access and i do not understand where is the error. i have tried to install and debug tutorial 02 and all is ok, it work but turorial 06 is correct on simulator but not correct for my device, can anyone help me? i have a iphone on 2.2.1 os version and i using 1.3.3 version of sdk. thanks to all Daniele
skeggialungo- Posts : 9
Join date : 2009-03-13
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
Are you sure your camera is being initialized?
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
meteors wrote:Are you sure your camera is being initialized?
That sounds like the problem - check the actual object name of the camera. If you've duplicated it in blender you'll end up .001 appended to the end.
autology- Posts : 22
Join date : 2008-12-29
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
i have simply opened tutoria06_1 and buid it on device, not on simulator, i do not have opened blender or something else. and i have received the error. now i try again and i'll go to see for camera initialization and camera name and try other tutorial on device. i will write back soon. thanks daniele
skeggialungo- Posts : 9
Join date : 2009-03-13
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
errata corrige, i have connected my phone for n times and after i have decided to take it off and restart it and after this tutorial06_1 is run with a completly blank page but tutorial06_2 is completly ok. thanks for all
skeggialungo- Posts : 9
Join date : 2009-03-13
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
i write you again because as i write bebore i have saw the tutorial06_2 running (very slowly) on device. now for the same tutorial now i see a completly blank page! i have tried to shut down the device and also xcode, deleting application on device but now the result is the same nothing appear on the device. the other tutorial seems to work perfectly so i think tha there is some in the tutorial06
skeggialungo- Posts : 9
Join date : 2009-03-13
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
Can someone confirm the problem cuz me everything is working fine on my iPod touch 2g with 2.2.1
Both in release with or without thumb
Both in release with or without thumb
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
I'll take a look as soon as I get home - I run an iPhone 3G with FW 2.2.1, just an FYI.
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
sio2interactive wrote:Can someone confirm the problem cuz me everything is working fine on my iPod touch 2g with 2.2.1
Both in release with or without thumb
Ive just tested both versions, and they build and run just fine. I've not gotten up to Tutorial 6 in the videos, so I don't know entirely whats going on in the background, but 06_1 runs at an average of ~15fps, whilst 06_2 runs at Render FPS ~45fps and Physics FPS ~10 (this was around 2 FPS when first loading and interacting with objects, collisions, gravity etc).
Hope that helps - let me know if you need me to try anything else out.
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
Yeah tks a bunch just curious what type of device you are using cuz the performance is really low compare to my iPod touch 2g
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
I use an iPhone 3G 8GB (A1241), running F/W 2.2.1, on O2 in the UK - not sure if the carrier would make a difference, but thought it would be worth mentioning.sio2interactive wrote:Yeah tks a bunch just curious what type of device you are using cuz the performance is really low compare to my iPod touch 2g
Both 6_1 and 6_2 run, just at the frame rates I mentioned.
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
i have tryed importing all files in new application but the error is the same Exc_bad_access on
sio2Perspective( _SIO2camera->fov,
_SIO2window->scl->x / _SIO2window->scl->y,
_SIO2camera->cstart,
--------> _SIO2camera->cend );
the projet on simulator works perfectly not so on device.
sio2Perspective( _SIO2camera->fov,
_SIO2window->scl->x / _SIO2window->scl->y,
_SIO2camera->cstart,
--------> _SIO2camera->cend );
the projet on simulator works perfectly not so on device.
skeggialungo- Posts : 9
Join date : 2009-03-13
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
Here's the performance that I got on using v1.3.4 on my iPod Touch (8G) 2nd Generation:
Tutorial06_1:
Renderer-> Min Fps: 30, Max Fps: 61
Tutorial06_2:
Renderer-> Min Fps: 36, Max Fps: 61
Physic-> Min Fps: 29, Max Fps: 60
Tutorial06_1:
Renderer-> Min Fps: 30, Max Fps: 61
Tutorial06_2:
Renderer-> Min Fps: 36, Max Fps: 61
Physic-> Min Fps: 29, Max Fps: 60
Last edited by sio2interactive on Fri Mar 20, 2009 5:53 pm; edited 1 time in total
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
skeggialungo: It probably crash because the _SIO2camera pointer is 0x0... make sure the that .sio2 file is linked properly.
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
sio2interactive wrote:Here's the performance that I got on using v1.3.4 on my iPod Touch (8G) 2nd Generation:
Tutorial06_1:
Renderer-> Min Fps: 30, Max Fps: 61
Tutorial06_2:
Renderer-> Min Fps: 36, Max Fps: 61
Physic-> Min Fps: 29, Max Fps: 60
Wow!
The devices are mostly identical - with the iPhone having an antenna, but other than that, they're pretty similar.
I'm running SIO2 v1.3.3, Xcode 3.1.2, iPhone SDK for 2.2.1 - is there a large change between SIO2 1.3.3 and 1.3.4 that is gaining the large FPS that you're getting?
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
I'd argue the change is due to clockspeed:
The 1G iphone, 2G iphone, and 1G ipod touch run at 412 mhz (underclocked)
The 2G ipod touch runs ~532 mhz (still underclocked from the cpu's spec)
*Edit: I know it's a common problem, but have you cleaned both projects? - you may be relying on built objects/items, producing the differences between simulator & device.
The 1G iphone, 2G iphone, and 1G ipod touch run at 412 mhz (underclocked)
The 2G ipod touch runs ~532 mhz (still underclocked from the cpu's spec)
*Edit: I know it's a common problem, but have you cleaned both projects? - you may be relying on built objects/items, producing the differences between simulator & device.
autology- Posts : 22
Join date : 2008-12-29
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
true... but alot of optimization have been done on 1.3.4 and some block structure have been modified and reconstructed to be more fast. Also alot of "key" function have been "inlined" and new macro have been defined.
Their should be a significant speed gain even on iPhone 1G and all 1st generation hardware.
Their should be a significant speed gain even on iPhone 1G and all 1st generation hardware.
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
Hmm... might be time to update from 1.3.1 - I'm not looking forward to exporting all of the scenes again but a significant bump in fps would be worth it.
Are you seeing those numbers with the r53 source in the SVN or is the version of 1.3.4 you mention still unreleased?
Thanks in advance'
Are you seeing those numbers with the r53 source in the SVN or is the version of 1.3.4 you mention still unreleased?
Thanks in advance'
autology- Posts : 22
Join date : 2008-12-29
Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS
OK, ignore me - I'm an idiot!
I was (and always have been) running my apps in "Debug" build mode. The moment I changed to "Release" build mode, the frame rates went straight up to almost exactly what SIO2 has reported them being.
Sorry for being a fool with this one! But thanks for all the responses :-)
I was (and always have been) running my apps in "Debug" build mode. The moment I changed to "Release" build mode, the frame rates went straight up to almost exactly what SIO2 has reported them being.
Sorry for being a fool with this one! But thanks for all the responses :-)
Similar topics
» move Z in tutorial06
» Enabling Bullet Debug Draw (Code included)
» Tutorial06 Build question
» Clang static code analyzer (memory debug tool based on llvm)
» Black Screen AFTER Loading on Device
» Enabling Bullet Debug Draw (Code included)
» Tutorial06 Build question
» Clang static code analyzer (memory debug tool based on llvm)
» Black Screen AFTER Loading on Device
Permissions in this forum:
You cannot reply to topics in this forum