-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application crash on pebble #173
Comments
Please share your code, maybe you run/copy it from old sample. |
var UI = require('ui'); Settings.option('jeedomBaseUrl', 'https://dom.kleinhans.info/jeedom/'); Settings.data('menu', var cardError = new UI.Card({ var cardResult = new UI.Card({}); var cardWait = new UI.Card({ // Create Menu Card var sousMenu = new UI.Menu({ function httpCall(url, params, method, sync, returnDatas) { function loadMenuSettings() { function constructMenu() {
} cardWait.show(); Settings.config( if(!Settings.data('menu') || Settings.option("reset")){ constructMenu(); menu.on('select', function (event) { sousMenu.on('select', function (event) { |
I run your code in cloud pebble (emulators) and on the watch too (Pebble steel), but it is working. When you get the error? What is your watch. It may be not work with Pebble 2. I sent Pull request for Pebble 2 support: #170 Feel free to try with my pull request. |
My watch is a pebble (first gen). Everytime I launch this app, it crash. |
Same here. My App works in Simulators for aplite and basalt. Test on a Pebble Time Steel: works. Test on a Pebble Classic: crashes with the exact error message from above! I made a new project, this is the full code of app.js:
Crashes on Pebble classic with:
|
More info here: https://forums.pebble.com/t/pebble-js-crash/24705/8 It looks like Pebble.getActiveWatchInfo return null like here: https://forums.pebble.com/t/getactivewatchinfo-returning-null-on-ios/23800 |
What about waiting for the ready event? Like suggested here: https://developer.pebble.com/blog/2013/12/20/Pebble-Javascript-Tips-and-Tricks/ |
For the record, I'm getting this on a Pebble Time Steel but works fine in emulator: |
I also get the error above. Did anybody find the fix? |
The issue is that some pebble watch has color "unknown".
PM me for more details in case you don't know how to do this. |
Hello,
When I try to run pebblejs sample on my watch, it always failed with error like this :
Do you have any idea ?
[INFO] ocess_manager.c:417: Heap Usage for App : Total Size <5592B> Used <4036B> Still allocated <644B>
[PHONE] pebble-app.js:?: JS: stopping app: 4368FFA4-F0FB-4823-90BE-F754B076BDAA TimeStyle
[PHONE] pebble-app.js:?: JS: starting app: 4CE95E77-F075-47AE-BE7D-D2E7C7C6DF87 Test_js
[PHONE] pebble-app.js:?: JS: Test_js: JavaScript Error:
TypeError: undefined is not an object (evaluating 'v.x')
at copy (lib/vector2.js:38:15)
at size (ui/window.js:260:29)
at Window (ui/window.js:75:12)
at Card (ui/card.js:47:14)
at app.js:10:23
at require (loader.js:44:16)
at require (loader.js:41:55)
at main.js:41:10
The text was updated successfully, but these errors were encountered: