objective c - EXC_BAD_ACCESS in c++.string file after starting navigation with Skobbler -


after updated project , introduced pods, i'm having strange bug happens when want start navigation on route, after calculating it.

this error , have no idea how did come that, didnt made significant changes in code, other having skmaps in project via cocoapods , not dragging manually

// char_traits<char>  template <> struct _libcpp_type_vis_only char_traits<char> { typedef char      char_type; typedef int       int_type; typedef streamoff off_type; typedef streampos pos_type; typedef mbstate_t state_type;  _libcpp_inline_visibility static void assign(char_type& __c1, const char_type& __c2) _noexcept     {__c1 = __c2;} _libcpp_inline_visibility static _libcpp_constexpr bool eq(char_type __c1, char_type __c2) _noexcept         {return __c1 == __c2;} _libcpp_inline_visibility static _libcpp_constexpr bool lt(char_type __c1, char_type __c2) _noexcept     {return (unsigned char)__c1 < (unsigned char)__c2;}  _libcpp_inline_visibility static int compare(const char_type* __s1, const char_type* __s2, size_t __n)       **{return memcmp(__s1, __s2, __n);}** **<------ error happens**    _libcpp_inline_visibility static size_t length(const char_type* __s) {return strlen(__s);} _libcpp_inline_visibility static const char_type* find(const char_type* __s, size_t __n, const char_type& __a)     {return (const char_type*)memchr(__s, to_int_type(__a), __n);} _libcpp_inline_visibility static char_type* move(char_type* __s1, const char_type* __s2, size_t __n)     {return (char_type*)memmove(__s1, __s2, __n);} _libcpp_inline_visibility static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n)     {         _libcpp_assert(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");         return (char_type*)memcpy(__s1, __s2, __n);     } _libcpp_inline_visibility static char_type* assign(char_type* __s, size_t __n, char_type __a)     {return (char_type*)memset(__s, to_int_type(__a), __n);}  _libcpp_inline_visibility static _libcpp_constexpr int_type  not_eof(int_type __c) _noexcept     {return eq_int_type(__c, eof()) ? ~eof() : __c;} _libcpp_inline_visibility static _libcpp_constexpr char_type to_char_type(int_type __c) _noexcept     {return char_type(__c);} _libcpp_inline_visibility static _libcpp_constexpr int_type to_int_type(char_type __c) _noexcept     {return int_type((unsigned char)__c);} _libcpp_inline_visibility static _libcpp_constexpr bool eq_int_type(int_type __c1, int_type __c2) _noexcept     {return __c1 == __c2;} _libcpp_inline_visibility static _libcpp_constexpr int_type  eof() _noexcept     {return int_type(eof);} }; 

honestly, don't know file , have no idea why error started happen.

this code use generate skmap, create route, show (up part, works fine), when want start navigation on calculated route, error

-(void)initmap { skmapview *mapview = [[skmapview alloc] initwithframe:cgrectmake( 0.0f, 0.0f,  cgrectgetwidth(self.view.frame), cgrectgetheight(self.view.frame) )];   [self.view addsubview:mapview];  [skroutingservice sharedinstance].routingdelegate = self; [skroutingservice sharedinstance].navigationdelegate = self; [skroutingservice sharedinstance].mapview = mapview;  skroutesettings* route = [[skroutesettings alloc]init]; route.startcoordinate=![cllocationcoordinate2dmake][1](39.263671, -103.642420); route.destinationcoordinate=cllocationcoordinate2dmake(39.782730, -104.908250); route.shouldberendered = yes; // if no, route not rendered. route.numberofroutes = 1; [[skroutingservice sharedinstance] calculateroute:route]; } - (void)routingservice:(skroutingservice *)routingservice didfinishroutecalculationwithinfo:(skrouteinformation*)routeinformation{ nslog(@"route calculated."); [routingservice zoomtoroutewithinsets:uiedgeinsetszero]; // zoom current route  sknavigationsettings* navsettings = [sknavigationsettings navigationsettings]; navsettings.navigationtype=sknavigationtypesimulation; navsettings.distanceformat=skdistanceformatmilesfeet; navsettings.zoomlevelconfigurations = nil;  [skroutingservice sharedinstance].mapview.settings.displaymode = skmapdisplaymode3d; [[skroutingservice sharedinstance]startnavigationwithsettings:navsettings]; //this line triggers error } - (void)routingservicedidfailroutecalculation:(skroutingservice *)routingservice{ nslog(@"route calculation failed."); } 

edit: main problem cannot stack trace. there is, , have breakpoints set show exceptions. screenshot of xcode screen when error, , that's there is:

enter image description here


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -