openhab / openhab-pebble

Pebble client for openHAB
Apache License 2.0
11 stars 20 forks source link

crash when switching sitemaps #25

Open llamahunter opened 8 years ago

llamahunter commented 8 years ago

Something seems to have changed somewhere that causes trying to change sitemaps to crash the app. It appears to crash somewhere deep in the C code of pebble.js

From tracing below, you can see it bring up the splash screen, pop all the other windows off the stack, then get the new sitemap result, push the sitemap menu, pop off the splash screen, and then get a C app fault.

[PHONE] pebble-app.js:?: JS: openHAB for Pebble: (+) [window 1] : [menu 2],[menu 3],[window 1] [PHONE] pebble-app.js:?: JS: openHAB for Pebble: (-) [menu 2] : [menu 3],[window 1] [PHONE] pebble-app.js:?: JS: openHAB for Pebble: (-) [menu 3] : [window 1] [PHONE] pebble-app.js:?: JS: openHAB for Pebble: June 26, 2016 at 11:18:47 AM PDT: Successfully fetched sitemaps: {"sitemap":[{"name":"homekit","label":"HomeKit","link":"http://openhab:8080/rest/sitemaps/homekit","homepage":{"link":"http://openhab:8080/rest/sitemaps/homekit/homekit","leaf":"false"}},{"name":"pebble","label":"Pebble","link":"http://openhab:8080/rest/sitemaps/pebble","homepage":{"link":"http://openhab:8080/rest/sitemaps/pebble/pebble","leaf":"false"}},{"name":"default","label":"Whole Home","link":"http://openhab:8080/rest/sitemaps/default","homepage":{"link":"http://openhab:8080/rest/sitemaps/default/home","leaf":"false"}},{"name":"av","label":"AV System","link":"http://openhab:8080/rest/sitemaps/av","homepage":{"link":"http://openhab:8080/rest/sitemaps/av/avsystem","leaf":"false"}}]} [PHONE] pebble-app.js:?: JS: openHAB for Pebble: (+) [menu 4] : [window 1],[menu 4] [PHONE] pebble-app.js:?: JS: openHAB for Pebble: (-) [window 1] : [menu 4] [ERROR] ault_handling.c:93: App fault! {73ad05b2-2f62-4f57-934a-0f820530f401} PC: 0xc72ca13e LR: 0x80a003f Looking up debug information... [PHONE] pebble-app.js:?: JS: stopping app: 73AD05B2-2F62-4F57-934A-0F820530F401 openHAB