FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

can't debug and run tutorial06 on device BAD_ERR_ACCESS

5 posters

Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  skeggialungo Fri Mar 13, 2009 12:24 pm

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

skeggialungo

Posts : 9
Join date : 2009-03-13

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  meteors Fri Mar 13, 2009 12:58 pm

Are you sure your camera is being initialized?


-j
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  autology Sun Mar 15, 2009 7:36 pm

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

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  skeggialungo Thu Mar 19, 2009 4:19 am

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

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  skeggialungo Thu Mar 19, 2009 4:27 am

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

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  skeggialungo Thu Mar 19, 2009 5:19 am

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

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  sio2interactive Thu Mar 19, 2009 7:45 am

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
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  Jawdy Thu Mar 19, 2009 10:08 am

I'll take a look as soon as I get home - I run an iPhone 3G with FW 2.2.1, just an FYI.
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  Jawdy Fri Mar 20, 2009 3:33 am

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.
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  sio2interactive Fri Mar 20, 2009 8:06 am

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
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  Jawdy Fri Mar 20, 2009 9:04 am

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
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.

Both 6_1 and 6_2 run, just at the frame rates I mentioned.
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  skeggialungo Fri Mar 20, 2009 10:14 am

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.

skeggialungo

Posts : 9
Join date : 2009-03-13

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  sio2interactive Fri Mar 20, 2009 5:31 pm

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


Last edited by sio2interactive on Fri Mar 20, 2009 5:53 pm; edited 1 time in total
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  sio2interactive Fri Mar 20, 2009 5:36 pm

skeggialungo: It probably crash because the _SIO2camera pointer is 0x0... make sure the that .sio2 file is linked properly.
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  Jawdy Sat Mar 21, 2009 8:17 am

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?
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  autology Sat Mar 21, 2009 2:25 pm

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.

autology

Posts : 22
Join date : 2008-12-29

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  sio2interactive Sat Mar 21, 2009 4:34 pm

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.
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  autology Sat Mar 21, 2009 6:34 pm

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'

autology

Posts : 22
Join date : 2008-12-29

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  Jawdy Mon Mar 23, 2009 3:30 am

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 :-)
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

can't debug and run tutorial06 on device BAD_ERR_ACCESS Empty Re: can't debug and run tutorial06 on device BAD_ERR_ACCESS

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum