Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 82

SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
01/10/14 03:41 PM (11 years ago)

Page Menu Plugin Error

error in logcat libc++abi.dylib: terminating with uncaught exception of type NSException Anyone know how to fix? (FYI) Addi libc++abi.dylib still nothing ???? Emailed Chris1 but no word all day hoping someone else could shed some light Thanks
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
01/10/14 05:50 PM (11 years ago)
@Sheri: by "logcat" I assume I mean NS Log for iOS. What iOS version are you compiling for? Can you reply with the entire contents of the log? Jake
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
01/10/14 06:01 PM (11 years ago)
@Jake Thanks for the help! Xcode 5.0.2 http://f.cl.ly/items/0g0O162E0C3a030I0U1B/error.pdf (thanks for the reminder of being more specific)
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/10/14 06:17 PM (11 years ago)
Look in the area of "loading 1 screens and 3 menuItems" Try to find that in his plugin. Search for "screens" or "menuItems" as part of a BT_debugger statement. He is trying to access something beyond four items (0, 1, 2, 3) Perhaps his indexing begins at 1 when it should start at zero. Sorry, I only have iPhone and have not yet bought that plugin. -- Niraj
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
01/10/14 07:09 PM (11 years ago)
@Niraj thanks
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/10/14 09:04 PM (11 years ago)
Investigation #1: Looking at error report and into the code Possibly one of the items does not have an "imageLocation". I tracked down the error to this problem from the error report: substringToIndex:]: Index 4 out of bounds There is only one place where "substringToIndex" is being used, in the getImage method. It will fail if there is no imageLocation specified. A dummy URL should be placed as the default value for imageLocation. BEFORE: NSString *imageLocation =[BT_strings getJsonPropertyValue:menuItem.jsonVars nameOfProperty:@"imageLocation" defaultValue:@""]; AFTER: NSString *imageLocation =[BT_strings getJsonPropertyValue:menuItem.jsonVars nameOfProperty:@"imageLocation" defaultValue:@"DEFAULT_IMAGE_LOCATION"]; ------------------ Investigation #2: Looking at the documentation for the Plugin The JSON for the Plugin (at the bottom of it's page) shows that every item must have an "imageLocation". Please check to see if the configuration of the plugin is complete and correct. https://www.buzztouch.com/plugins/plugin.php?pid=69CC28826E3E87EB9E00EA6 ---------------- That is my 2-cents! :-) -- Niraj
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.