-
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
App crashed when move from a Window to Menu #161
Comments
Example Code:
When I am at "aboutWindow" and make a click, where the correct response will be jump to "aboutMenu", but the app crashed and give me the following error message:
|
Thanks for posting a minimal example! In your testing, does this issue occur on Aplite and Basalt? It's possible the image is on the larger side, but I will verify on my end. |
I have tried and this issue happens on both Aplite and Basalt. |
I have same issue. Return from card to menu. PHONE] pebble-app.js:?: (-) [card 4] : [menu 3] All platforms (emulators and watches). Compiled in CloudPebble. |
This is not an issue for me any more. After some updates to CloudPebble it just started to work again. I'm using a Pebble Time (compiling for basalt + chalk). I have no idea what fixed the issue tho' - but try to compile one more time and see if works for you as well :) |
Still issue for me. I will try add minimal example that do not work for me. |
This is example that don't work for me (return from card to menu crashes the app)
Error from console:
|
I'm also encoutering this problem. matopeto, did you fix it? |
@pieteroskam no I dont fix it, only workaround that works for me was trimming text length on card to cca 100 characters. (I think only windows with more content cause this issue) |
Same stuff happens for me at least on Aplite - but not always, seems to be related to size of the body text or maybe some non-standard symbols in it. |
Selecting a pokemon now brings you to a navigation screen with a route to the Pokemon using Google Maps Directions API. Just follow the line. The black dot in the middle is your location, the circle around you is the 50m radius in which Pokemon are visible. Using the up and down keys when tracking will zoom the map in and out. WARNING: It appears that the app is suffering from this issue: pebble/pebblejs#161 So the app will eventually crash after returning from the Maps window to the Pokemon menu.
Replaced crappy tracking screen with crappy Google Maps Directions screen. Black dot in the center is your location, circle arround you is your 50m radius. Follow the lines to get to the Pokemon. Use up and down buttons to zoom in and out. App crashes eventually, this is a known Pebble issue: pebble/pebblejs#161
Yeah, for my app, it is dependent on the amount of text in the card. 436 characters result in a crash on returning to the menu, but 418 characters are OK. It's the same limit on all three platforms. |
Is there any fix for this issue yet? I use a menu window to start a game window and after some interaction within the second window it crashed when called hide() instead of returning to the initial menu window. I think it's a memory issue, since it only comes up when some threshold is crossed in the second window... |
[PHONE] pebble-app.js:?: (-) [menu 2] : [card 3] Removed everything from the card. Still problems. |
@unk1nd Any code same for the "banner" you mentioned? Thanks. |
resultsMenu.on('select', function(e) {
// Get server info
var serverinfo = data.servers[e.itemIndex];
// Assemble body string
//
var content = "\nLast Seen:\n"+ serverinfo.last_update + "\n" +"\nIP: "+ serverinfo.ip + "\nHostname: "+ serverinfo.hostname + "\nAdmin: "+ serverinfo.admin + "\nLoad: "+ serverinfo.load;
console.log('Showing info about ' + serverinfo.box);
var BoxName = serverinfo.box;
var icon_status = data.servers[e.itemIndex].status;
var banner = "";
if(icon_status == "Up"){
banner = server_icon_up;
}
if(icon_status != "Up"){
banner = server_icon_down;
}
// Create the Card for detailed view
var detailCard = new UI.Card({
status: false,
title: ' ' + BoxName,
titleColor: '#899986',
icon: title_icon,
banner: banner,
style: 'mono',
body: content,
bodyColor: '#ffffff',
backgroundColor: '#336699',
scrollable: true,
action: {
up: 'images/action_icon_up.png',
down: 'images/action_icon_down.png',
backgroundColor: '#e5e845',
}
});
detailCard.show();
}); This is the card code i use in my pebble.js app. Let me know if you need more info. Don't want to share all of the code. |
Upping this bug, still happends with new package system. Simplest code is:
result:
All platforms, current SDK. This is logs from gdb:
please @Meiguro look at it |
any news regarding this issue? |
The app will be crashed while going from a Window to a Menu or return (click the back button) from a Window to a Menu.
The text was updated successfully, but these errors were encountered: