1

I'm working on an OpenGL ES 2 app for iOS. This morning (without changing any code) I started getting EXC_BAD_ACCESS thrown from sgxTextureGetImageRowBytes.

#0      0x32979c20 in sgxTextureGetImageRowBytes(GLDTextureRec*, 
#           unsigned int, unsigned int) ()
#1      0x32979bd2 in CalculateChunkPlaneSizes(GLDTextureRec*, 
#           int, unsigned int*, unsigned int*, unsigned int*, unsigned int*) ()
#2      0x3297c336 in sgxConfigureTexturePrivate(GLDTextureRec*) ()
#3      0x3297af88 in glrUpdateTexture ()
#4      0x341a56c0 in gldLoadFramebuffer ()
#5      0x38387bd4 in gleUpdateDrawFramebufferState ()
#6      0x382ffa60 in glClear_Exec ()
#7      0x001221ea in clear ()

Has anyone seen this error before?


Edit: Looks like others have seen similar issue ( iOS 6 Maps occasional Crash ), but the accepted solution did not work for me (nor did it sound promising).

I've submitted a request to Apple Developer Technical Support (DTS).

Community
  • 1
  • 1
Mr. Smith
  • 4,288
  • 7
  • 40
  • 82
  • I am having the same issue...any new solution? – Tim Walsh Mar 26 '13 at 20:54
  • @TimWalsh DTS recommended I just reboot everything (the iPad, the Macbook Pro that I'm coding on) when that happens. It seems to be a bug with either iOS or XCode causing this. – Mr. Smith Mar 27 '13 at 09:06

2 Answers2

0

I actually found the issue with the iOS version. The user was running on iPad 4, iOS 6.1.2, as soon as I upgraded to 6.1.3 the problem went away. Hope this helps someone.

Thanks, Tim

Tim Walsh
  • 1,089
  • 11
  • 27
  • To upgrade would have likely required a restart. – Mr. Smith Mar 30 '13 at 12:45
  • Not sure how relevant this is after 6-7 months, but this crash is happening on 6.1.3 too. Upgrading to it is not enough, and it seems from a different StackOverflow entry that this might be related to a memory leak somehow. – jpm Oct 16 '13 at 13:56
0

You need to make a __block for your MKMapView:

__block MKMapView *map = _mapView;
[map addAnnotations:nearbyPlaces];
ASGM
  • 11,051
  • 1
  • 32
  • 53
Jeroen
  • 1
  • My code doesn't make use of the maps API. Forcibly restarting the iPad (as recommended by DTS) resolved it. – Mr. Smith May 17 '13 at 20:07