Discussion Forums  >  Crashes, Memory Warnings

Replies: 5    Views: 623

ajaxon98
Android Fan
Profile
Posts: 36
Reg: Oct 20, 2013
Los Angeles
2,310
11/18/13 01:14 PM (4 years ago)

Something's not right (Android)

I am suddenly getting the following message my Samsung Galaxy 3 tablet....

Something's not right
There was a problem loading the app's configuration data. See the LogCat (console) output in Eclipse. (2)

This just started an hour ago. Since then I have "cleaned" my code, restarted the Eclipse, my tablet, my Windows 7 computer....
There is an error line about JSON but I am not familiar with deciphering the log. I will post it here....and thank you for any assistance.

Anthony

This is the LogCat with the debug filter

<START POST>

11-18 11:58:57.828: D/dalvikvm(3448): Late-enabling CheckJNI
11-18 11:58:57.945: I/dalvikvm(3448): Turning on JNI app bug workarounds for target SDK version 8...
11-18 11:58:58.218: W/ActivityThread(3448): Application com.BNiPublicationsContactApp is waiting for the debugger on port 8100...
11-18 11:58:58.453: I/System.out(3448): Sending WAIT chunk
11-18 11:58:59.101: I/dalvikvm(3448): Debugger is active
11-18 11:58:59.265: I/System.out(3448): Debugger has connected
11-18 11:58:59.265: I/System.out(3448): waiting for debugger to settle...
11-18 11:58:59.468: I/System.out(3448): waiting for debugger to settle...
11-18 11:58:59.671: I/System.out(3448): waiting for debugger to settle...
11-18 11:58:59.867: I/System.out(3448): waiting for debugger to settle...
11-18 11:59:00.070: I/System.out(3448): waiting for debugger to settle...
11-18 11:59:00.273: I/System.out(3448): waiting for debugger to settle...
11-18 11:59:00.476: I/System.out(3448): waiting for debugger to settle...
11-18 11:59:00.679: I/System.out(3448): waiting for debugger to settle...
11-18 11:59:00.890: I/System.out(3448): debugger has settled (1466)
11-18 11:59:01.312: W/ZZ(3448): BNiPublicationsContactApp_appDelegate: onCreate
11-18 11:59:01.312: W/ZZ(3448): BNiPublicationsContactApp_appDelegate:loadAudioPlayer
11-18 11:59:01.335: W/ZZ(3448): BT_application: Creating root-app object.
11-18 11:59:01.343: W/ZZ(3448): BNiPublicationsContactApp_appDelegate:SoundEffectLoader:doInBackground initSoundEffects
11-18 11:59:01.343: W/ZZ(3448): BNiPublicationsContactApp_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED
11-18 11:59:01.343: W/ZZ(3448): BT_device: Creating root-device object.
11-18 11:59:01.375: W/ZZ(3448): BT_device: This device uses an Android display density of: 160dpi (dots per inch)
11-18 11:59:01.375: W/ZZ(3448): BT_device: This device can take pictures.
11-18 11:59:01.375: W/ZZ(3448): BT_device: This device can take videos.
11-18 11:59:01.375: W/ZZ(3448): BT_device: This device can send emails.
11-18 11:59:01.398: W/ZZ(3448): BT_device: This device is GPS capable.
11-18 11:59:01.398: W/ZZ(3448): BT_user: Creating root-user object.
11-18 11:59:01.539: W/ZZ(3448): BT_activity_root:onCreate
11-18 11:59:01.703: W/ZZ(3448): BT_activity_root:loadAppData
11-18 11:59:01.742: W/ZZ(3448): BT_device:updateDeviceConnectionType: ConnectionType: WIFI
11-18 11:59:01.757: W/ZZ(3448): BT_device:updateDeviceSize This device has a screen size of: 600 (width) x 1024 (height).
11-18 11:59:01.757: W/ZZ(3448): BT_device:updateDeviceSize This application considers this to be a "large device"
11-18 11:59:01.757: W/ZZ(3448): BT_device:updateDeviceSize This device is in "portrait" orientation.
11-18 11:59:01.757: W/ZZ(3448): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project...
11-18 11:59:03.937: W/ZZ(3448): BT_fileManager: readTextFileFromAssets: "/BT_config.txt"
11-18 11:59:03.968: W/ZZ(3448): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully...
11-18 11:59:03.968: W/ZZ(3448): BT_application: getDataURLFromAppData
11-18 11:59:04.015: W/ZZ(3448): BT_application:parseJSONData JSONObject ERROR: org.json.JSONException: Unterminated object at character 1776 of {"BT_appConfig": { "BT_items":[ {"itemId":"JA99FC4FEF75733C78EB0FF55", "itemType":"BT_app", "buzztouchAppId":"JA99FC4FEF75733C78EB0FF55", "buzztouchAPIKey":"4A5BAD171FFA62B2ABFE410", "dataURL":"https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA99FC4FEF75733C78EB0FF55&apiKey=4A5BAD171FFA62B2ABFE410&apiSecret=56EC050CF6DB9172D03E071", "reportToCloudURL":"https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA99FC4FEF75733C78EB0FF55&apiKey=4A5BAD171FFA62B2ABFE410&apiSecret=56EC050CF6DB9172D03E071&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "registerForPushURL":"https://www.buzztouch.com/api/app/?command=registerForPush&appGuid=JA99FC4FEF75733C78EB0FF55&apiKey=4A5BAD171FFA62B2ABFE410&apiSecret=56EC050CF6DB9172D03E071&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "lastModified":"Mon, 18 Nov 2013 19:09:13 -0800", "lastPublished":"Mon, 18 Nov 2013 18:40:10 -0800", "name":"BNI Publications", "version":"1.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[{"itemId":"CE92EA7A03624117A0D7315", "itemType":"BT_theme", "backgroundColor":"#FFFFFF"} ], "BT_tabs":[{"itemId":"932A9977BAED4ADE964D60F", "itemType":"BT_tab", "textLabel":"BNi Publications", "iconName":"blank.png", "homeScreenItemId":"330782CE377B87BA1F822A8"} ], "BT_menus":[{"itemId":"1775081E65CB51BC56F0A5D", "itemType":"BT_menu", "itemNickname":"ebooks" ,"childItems":[{"itemId":"1E7A1AC33D1A7F3CC3DCB17", "itemType":"BT_menuItem", "titleText":"Profit, Risk & Leadership""loadScreenWithItemId":"AB93F051943317B73E66460"}]} ], "BT_screens":[{"itemId":"330782CE377B87BA1F822A8", "itemType":"BT_screen_menuListSimple", "itemNickname":"Home Screen Menu", "navBarTitleText":"Home", "listStyle":"round", "preventAllScrolling":"0", "listRowSelectionStyle":"gray", "listRowSeparatorColor":"#99CCCC", "backgroundImageNameSmallDevice":"bnibuilding.jpg", "backgroundImageNameLargeDevice":"bnibuilding.jpg", "backgroundImageScale":"fullScreen","childItems":[{"itemId":"B81BF62DACE8EAC6A236835", "itemType":"BT_menuItem", "loadScreenWithItemId":"B75A0B3B6CAF8429646F789","titleText":"Welcome"},{"itemId":"C2D1F26D1CCF097DC2A4DEA", "itemType":"BT_menuItem", "loadScreenWithItemId":"BC3E7D74852C4AF9C3D8BBF","titleText":"BNi 2013 Catalog" },{"itemId":"3FD9C7681CCA6CB42C24B9C", "itemType":"BT_menuItem", "loadScreenWithItemId":"2B20B4CBDA1E9CFBD0614F0","titleText":"Contact BNi" }]}, {"itemId":"2B20B4CBDA1E9CFBD0614F0", "itemType":"BT_sendEmail", "itemNickname":"Email Us", "emailToAddress":"billmahoney@bnibooks.com", "emailSubject":"Question or Comment From App Customer"}, {"itemId":"5001AC2B746DBBA913CF017", "itemType":"BT_screen_menuListSimple", "itemNickname":"Menu", "navBarTitleText":"Menu", "backgroundImageScale":"fullScreen","childItems":[{"itemId":"B86D23A77D78CA447F69C44", "itemType":"BT_menuItem", "loadScreenWithItemId":"95D8C078F81BCBC6403928D","titleText":"Catalog" }]}, {"itemId":"4A8410514FDDDE372006146", "itemType":"BT_screen_menuListSimple", "itemNickname":"Contact", "navBarTitleText":"Contact", "backgroundImageNameSmallDevice":"bnibuilding.jpg", "backgroundImageNameLargeDevice":"bnibuilding.jpg", "backgroundImageScale":"fullScreen","childItems":[{"itemId":"5359E3C421B3D4A9E625493", "itemType":"BT_menuItem", "loadScreenWithItemId":"2B20B4CBDA1E9CFBD0614F0","titleText":"Email Us"}]}, {"itemId":"F922079CD83C229ABBC1D4C", "itemType":"BT_screen_menuListSimple", "itemNickname":"Catalog", "navBarTitleText":"Catalog", "backgroundImageNameSmallDevice":"bnibuilding.jpg", "backgroundImageNameLargeDevice":"bnibuilding.jpg", "backgroundImageScale":"center","childItems":[{"itemId":"EA399305EEB0584887CFDDE", "itemType":"BT_me
11-18 11:59:04.015: W/ZZ(3448): BT_activity_root:loadAppData BT_config.txt file does not use a dataURL for remote updates...
11-18 11:59:04.023: W/ZZ(3448): BT_fileManager:deleteFile cachedAppConfig.txt
11-18 11:59:04.039: W/ZZ(3448): BT_activity_root:loadAppData continuing to load with BT_config.txt data in Eclipse project...
11-18 11:59:04.039: W/ZZ(3448): BT_application: validateApplicationData
11-18 11:59:04.101: W/ZZ(3448): BT_application:validateApplicationData EXCEPTION trying to parse JSON data? ERROR: org.json.JSONException: Unterminated object at character 1776 of {"BT_appConfig": { "BT_items":[ {"itemId":"JA99FC4FEF75733C78EB0FF55", "itemType":"BT_app", "buzztouchAppId":"JA99FC4FEF75733C78EB0FF55", "buzztouchAPIKey":"4A5BAD171FFA62B2ABFE410", "dataURL":"https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA99FC4FEF75733C78EB0FF55&apiKey=4A5BAD171FFA62B2ABFE410&apiSecret=56EC050CF6DB9172D03E071", "reportToCloudURL":"https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA99FC4FEF75733C78EB0FF55&apiKey=4A5BAD171FFA62B2ABFE410&apiSecret=56EC050CF6DB9172D03E071&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "registerForPushURL":"https://www.buzztouch.com/api/app/?command=registerForPush&appGuid=JA99FC4FEF75733C78EB0FF55&apiKey=4A5BAD171FFA62B2ABFE410&apiSecret=56EC050CF6DB9172D03E071&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "lastModified":"Mon, 18 Nov 2013 19:09:13 -0800", "lastPublished":"Mon, 18 Nov 2013 18:40:10 -0800", "name":"BNI Publications", "version":"1.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[{"itemId":"CE92EA7A03624117A0D7315", "itemType":"BT_theme", "backgroundColor":"#FFFFFF"} ], "BT_tabs":[{"itemId":"932A9977BAED4ADE964D60F", "itemType":"BT_tab", "textLabel":"BNi Publications", "iconName":"blank.png", "homeScreenItemId":"330782CE377B87BA1F822A8"} ], "BT_menus":[{"itemId":"1775081E65CB51BC56F0A5D", "itemType":"BT_menu", "itemNickname":"ebooks" ,"childItems":[{"itemId":"1E7A1AC33D1A7F3CC3DCB17", "itemType":"BT_menuItem", "titleText":"Profit, Risk & Leadership""loadScreenWithItemId":"AB93F051943317B73E66460"}]} ], "BT_screens":[{"itemId":"330782CE377B87BA1F822A8", "itemType":"BT_screen_menuListSimple", "itemNickname":"Home Screen Menu", "navBarTitleText":"Home", "listStyle":"round", "preventAllScrolling":"0", "listRowSelectionStyle":"gray", "listRowSeparatorColor":"#99CCCC", "backgroundImageNameSmallDevice":"bnibuilding.jpg", "backgroundImageNameLargeDevice":"bnibuilding.jpg", "backgroundImageScale":"fullScreen","childItems":[{"itemId":"B81BF62DACE8EAC6A236835", "itemType":"BT_menuItem", "loadScreenWithItemId":"B75A0B3B6CAF8429646F789","titleText":"Welcome"},{"itemId":"C2D1F26D1CCF097DC2A4DEA", "itemType":"BT_menuItem", "loadScreenWithItemId":"BC3E7D74852C4AF9C3D8BBF","titleText":"BNi 2013 Catalog" },{"itemId":"3FD9C7681CCA6CB42C24B9C", "itemType":"BT_menuItem", "loadScreenWithItemId":"2B20B4CBDA1E9CFBD0614F0","titleText":"Contact BNi" }]}, {"itemId":"2B20B4CBDA1E9CFBD0614F0", "itemType":"BT_sendEmail", "itemNickname":"Email Us", "emailToAddress":"billmahoney@bnibooks.com", "emailSubject":"Question or Comment From App Customer"}, {"itemId":"5001AC2B746DBBA913CF017", "itemType":"BT_screen_menuListSimple", "itemNickname":"Menu", "navBarTitleText":"Menu", "backgroundImageScale":"fullScreen","childItems":[{"itemId":"B86D23A77D78CA447F69C44", "itemType":"BT_menuItem", "loadScreenWithItemId":"95D8C078F81BCBC6403928D","titleText":"Catalog" }]}, {"itemId":"4A8410514FDDDE372006146", "itemType":"BT_screen_menuListSimple", "itemNickname":"Contact", "navBarTitleText":"Contact", "backgroundImageNameSmallDevice":"bnibuilding.jpg", "backgroundImageNameLargeDevice":"bnibuilding.jpg", "backgroundImageScale":"fullScreen","childItems":[{"itemId":"5359E3C421B3D4A9E625493", "itemType":"BT_menuItem", "loadScreenWithItemId":"2B20B4CBDA1E9CFBD0614F0","titleText":"Email Us"}]}, {"itemId":"F922079CD83C229ABBC1D4C", "itemType":"BT_screen_menuListSimple", "itemNickname":"Catalog", "navBarTitleText":"Catalog", "backgroundImageNameSmallDevice":"bnibuilding.jpg", "backgroundImageNameLargeDevice":"bnibuilding.jpg", "backgroundImageScale":"center","childItems":[{"itemId":"EA39930
11-18 11:59:04.101: W/ZZ(3448): BT_activity_root: application data is not valid JOSN data? You could try to use an online JSON validator. Several good ones exist online. Exiting App.
11-18 11:59:04.210: D/dalvikvm(3448): GC_CONCURRENT freed 281K, 17% free 7545K/9031K, paused 26ms+20ms, total 127ms

</END POST>
 
mysps
Code is Art
Profile
Posts: 2076
Reg: May 14, 2011
Palma
33,260
like
11/18/13 01:59 PM (4 years ago)
Hi,

Your json config.txt has character/s missing. Use this website: http://www.jsonlint.com/

To find the line where you are probably missing ; or }

It should tell you which line. Then paste it back into the config.txt file inside of Eclipse.
 
ajaxon98
Android Fan
Profile
Posts: 36
Reg: Oct 20, 2013
Los Angeles
2,310
like
11/18/13 02:36 PM (4 years ago)
Thank for the response...
I think I found a more sinister problem which I think is in the following line.

{"itemId":"1E7A1AC33D1A7F3CC3DCB17", "itemType":"BT_menuItem", "titleText":"Profit, Risk & Leadership""loadScreenWithItemId":"AB93F051943317B73E66460"}

One of my co-workers (they will pay) put a concatenation operator in a book title...the dreaded ampersand.

I took it out of the menu and BAM!.....it's working. I know using ampersands are always risky in most scripting languages but this one slipped by me.

Thanks

Anthony
 
mysps
Code is Art
Profile
Posts: 2076
Reg: May 14, 2011
Palma
33,260
like
11/18/13 02:41 PM (4 years ago)
awesome! jsonlint is a life saver :)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6310
Reg: Nov 07, 2012
Tamuning, GU
81,350
like
11/18/13 03:15 PM (4 years ago)
Try putting a reverse slash…

Like "Profit, Risk \& Leadership"

and see if that helps any…

Cheers!

-- Smug
 
Tommy Simmons
Aspiring developer
Profile
Posts: 1
Reg: Jan 14, 2015
Austin
10
like
01/17/15 07:20 PM (3 years ago)
I found this topic using the term "loadScreenWithItemId". I used the BuzzTouch app tool for the first time and successfully imported the project files after viewing Mark Fleming's great tutorial for Android Studio users at https://www.youtube.com/watch?v=LsLTfaajeqg&feature=youtu.be. I got the "Something's not quite right" message when I tried to run the project on the emulator. The console log revealed a problem with the JSON. Using a validator online (http://jsonformatter.curiousconcept.com - really nice, since it highlights the problems found), I was able to isolate the problems at the menu items sector (sample entry: {"itemId":"7C47BF00BD4C3E689F268EC", "itemType":"BT_menuItem", "titleText":"View A Presentation""loadScreenWithItemId":"3AD8F82A9D209734A4E7FA2"},). The validator tool indicated for all eight entries in my home menu the following: "Error:Expecting comma, colon or }, not string." My problem turned out not to be an ampersand or other type of character that needs an escape character before it - rather, the problem was that there was no comma between the quotes in the "titleText" and "loadScreenWithItemId" items. Putting a comma and a space between those items in all eight menu entries rendered the JSON valid. Since I was dealing with unaltered JSON code when Android Studio revealed the problem, it leads me to think that there might have been some problem with how the original JSON was generated. I am sure glad these forums exist - I may not have discerned the problem without the help I've found here.
 

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.