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:
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:
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:
- in xcode, go product > scheme > edit scheme...
- select "run" tab on left.
- select "options" sub-tab on top.
- 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
Post a Comment