ios - EXC_BAD_ACCESS Using gmaps sdk 1.9.0, Xcode 6.4, running on 8.3 device -


i have 2 projects working google maps sdk, in appstore.

things have in mind:

  • gmaps sdk version 1.9.0 installed via cocoapods
  • xcode version 6.4
  • deployment target 7.1
  • device: iphone 4s 8.3.0

today i've opened xcode usual first project, tried compile , debug on iphone , exc_bad_access (code=1...) crash on app , sometime exc_bad_access (code=exc_arm_da_aling...), no stack trace in here, on main.m:

return uiapplicationmain(argc, argv, nil, nsstringfromclass([tgpappdelegate class])); 

seeing first thread i've discovered error related google maps:

thread 1

tried following:

  • updating pod (didn't work)
  • replaced code sample code on gmaps sdk page (didn't work)*
  • i have read auto layout, disabled (didn't work)

the weird part also:

  • tried in iphone 6 8.4 (did work)
  • tried in iphone 6 8.3 (did work)

both project in beta state, don't if real user have problem i'm worried users wont able use apps because of this.

i couldn't find information on internet , don't know look, there reported known error regarding this?, else same issue?

here sample code i'm using:

-(void)viewdidload {   [super viewdidload];    gmscameraposition *camera = [gmscameraposition camerawithlatitude:37.80948                                                           longitude:5.965699                                                                zoom:2];    gmsmapview *mapview = [gmsmapview mapwithframe:cgrectzero camera:camera];    self.view = mapview; } 

edit 1:

doing more tests, found out problem appears when debugging (attaching debugger when running app), if run app iphone , after attach debugger process, runs ok, mean, if map tries render when debugger attached exc_bad_access, it's debugger error then?, i'm confused

edit 2:

this in answered in here , dave

the answer not mine, in answered in here , dave, i' m quoting him can see answer.

i've found root of problem , have workaround:

the problem seems triggered opengl es frame capture in xcode; i'm guessing problem started when apple added metal mix of xcode 6.4/ios 8.3, perhaps somehow adversely affecting entire frame capture debugging system.

the workaround: edit: i've found root of problem , have workaround:

the problem seems triggered opengl es frame capture in xcode; i'm guessing problem started when apple added metal mix of xcode 6.4/ios 8.3, perhaps somehow adversely affecting entire frame capture debugging system.

the workaround:

  1. in xcode, go product > scheme > edit scheme...
  2. select "run" tab on left.
  3. select "options" sub-tab on top.
  4. change "gpu frame capture" "automatically enabled" or "opengl es" either "metal" or "disabled".

this disables opengl es frame capture, isn't great, allows continue debugging builds.

not sure if issue apple's or google's i'll posting bug reports both. happy coding!


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -