Discussion Forums  >  Crashes, Memory Warnings

Replies: 5    Views: 122

yp2201
Lost but trying
Profile
Posts: 52
Reg: Sep 22, 2011
Wolverhampton
1,220
11/11/12 09:47 AM (11 years ago)

configuration data crash

I'm trying to run my app on an iPhone 4s, using a v2.0 buzztouch app, used Xcode version 4.5.1 to compile.. however on running the application I got these logs in the debug area: 2012-11-11 16:27:11.987 [1998:907] BT_application: initializing buzztouch application 2012-11-11 16:27:12.003 [1998:907] BT_device: INIT 2012-11-11 16:27:12.010 [1998:907] BT_device: Unique UUID exists. 2012-11-11 16:27:12.043 [1998:907] BT_device: This device is NOT an iPad. 2012-11-11 16:27:12.046 [1998:907] BT_device: This device can make phone calls 2012-11-11 16:27:12.092 [1998:907] BT_device: This device can send emails 2012-11-11 16:27:12.[1998:907] BT_device: This device can send SMS 2012-11-11 16:27:12.[1998:907] BT_device: This device can report it's location 2012-11-11 16:27:12.139 [1998:907] BT_device: This device can take still pictures 2012-11-11 16:27:12.151 [1998:907] BT_device: This device can take videos 2012-11-11 16:27:12.165 [1998:907] BT_user: INIT 2012-11-11 16:27:12.171 [1998:907] BT_networkState: INIT 2012-11-11 16:27:12.194 [1998:907] BT_networkState: Monitoring Connection: WiFi Not Available 2012-11-11 16:27:12.205 [1998:907] BT_networkState: Monitoring Connection: WiFi Available 2012-11-11 16:27:12.220 [1998:907] BT_networkState: Monitoring Connection: WiFi Available 2012-11-11 16:27:12.241 [1998:4127]_appDelegate: initAudioPlayer in background thread 2012-11-11 16:27:12.244 [1998:4127] BT_audioPlayer: INIT (preparing it for possible background audio) 2012-11-11 16:27:12.285[1998:4803] _appDelegate: loadSoundEffects SOUNDS NOT LOADING. SEE appDelegete.m, line 846 2012-11-11 16:27:12.338[1998:907] _appDelegate: refreshAppData 2012-11-11 16:27:12.355 [1998:907] BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt 2012-11-11 16:27:12.359 [1998:907] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2012-11-11 16:27:12.364 [1998:907] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2012-11-11 16:27:12.373 [1998:907] _appDelegate: Parsing configuration data included in the project bundle. 2012-11-11 16:27:12.439 [1998:907] BT_application: validateApplicationData 2012-11-11 16:27:12.493 [1998:907] BT_application: ERROR parsing JSON in validateApplicationData: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=10 "Garbage after JSON" UserInfo=0x1d53aa80 {NSLocalizedDescription=Garbage after JSON}" ) 2012-11-11 16:27:12.495 [1998:907] BT_application: validateApplicationData: ERROR: There was a problem parsing some configuration data. Please make sure that it is well-formed. 2012-11-11 16:27:12.497 [1998:907] _appDelegate: error parsing application data. 2012-11-11 16:27:12.498 [1998:907] _appDelegate: hideProgress 2012-11-11 16:27:12.719 [1998:907] BT_fileManager: deleteFile: cachedAppConfig.txt 2012-11-11 16:27:12.722 [1998:907] _appDelegate: applicationDidBecomeActive 2012-11-11 16:27:12.724 [1998:907] _appDelegate: reportToCloud 2012-11-11 16:27:12.725 [1998:907] _appDelegate: not reporting to cloud, no reportToCloudURL 2012-11-11 16:27:12.736 [1998:907] Application windows are expected to have a root view controller at the end of application launch 2012-11-11 16:27:12.844 [1998:907] BT_networkState: Monitoring Connection: WiFi Not Available 2012-11-11 16:27:15.174 [1998:907] D_appDelegate: alertView clickedButtonAtIndex: 0 can anyone help and guide me to where I'm going wrong?? Thanks, Tish.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
11/11/12 10:10 AM (11 years ago)
make sure that the json file is validated. most likely you have an extra symbol or quote missing.. use this website http://jsonlint.com/ to validate the config file
 
yp2201
Lost but trying
Profile
Posts: 52
Reg: Sep 22, 2011
Wolverhampton
1,220
like
11/11/12 10:27 AM (11 years ago)
thank you mysps!! working now =D
 
Derval
Aspiring developer
Profile
Posts: 364
Reg: Sep 20, 2012
Milan
17,240
like
12/03/12 02:56 PM (11 years ago)
Thanks @mysps… this one helped me too!
 
ZeesApps
Veteran developer
Profile
Posts: 23
Reg: Sep 28, 2012
Tarxien, Malta
4,130
like
01/07/13 02:18 AM (11 years ago)
I can't get this to work... it's driving me nuts...
 
MobiGeni
Aspiring developer
Profile
Posts: 65
Reg: Jan 09, 2013
Akersloot
1,350
like
04/25/13 03:02 AM (11 years ago)
Same here, I've pasted my bt_config in jsonlint, says valid, but keep getting this un well-formed json alert. What else can be wrong?
 

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.