Picker crash

Former Member
Former Member
Hi,

I'm working on a widget that I plan to use with tasker (on my android phone).
In the widget, I have 2 pickers to select first, a name and then, a message.
Works fine on the simulator but when I try it on my FR230, it has issues.
1) When I press the select button (== top right button) ...
- on the simulator, it shows the picker with the list of names
- on the FR230, it doesn't. If I press up/down then, I can see the list of names (and it's advanced, so it was there).
- Question: do I need to refresh the Ui? How?
2) Once a name is selected (in onAccept), a push another Picker to show the list of messages
- on the simulator, works fine
- on the FR230, I get a system crash. :(

I'm at the office right now so debugging (with Sys.println()) will have to wait.
Thought I'd post a thread for some help in the meantime.


BTW, IHMO, Garmin should invest more time in including simple examples in the documentation.
It would go along way in helping enthusiastic newbies like me.
I tried to review the Picker sample that's part of the sdk but, it's quite sophisticated; something more basic would've been ideal.

Thanks,
--Antonio
  • Former Member
    Former Member over 8 years ago
    OK, here's the simulator output ...

    Shell Version 0.1.0
    Antonio - onLayout
    Antonio - onSelect
    Antonio - onAcceptN
    Tim
    Antonio - onAcceptR
    No
    Antonio - To: Tim; Msg: No
    Antonio - onSMSReceive

    And here's the log from the watch ..

    Antonio - onLayout
    Antonio - onSelect
    Antonio - onAcceptN
    Tim


    That's it.
    The watch reboots (I think when I push another picker).
    Here's the source code ...

    function onAccept(values) {
    Sys.println("Antonio - onAcceptN");
    for(var i = 0; i < values.size(); i++) { name = values; Sys.println(name); }
    var factory = new WordFactory(["Yes", "No" ], {:font=>Gfx.FONT_LARGE});
    Ui.pushView(new Ui.Picker({:title=>new Ui.Text({:text=>"SMS Picker", :locX =>Ui.LAYOUT_HALIGN_CENTER}),
    :pattern=>[factory],
    :defaults=>[0]}),
    new RespPickerDelegate(),
    Ui.SLIDE_UP);
    return true;

    There's no CIQ_....TXT in the ./logs directory but, this is in ERROR_LOG.TXT

    2157 (Forerunner 230) SW ver: 710
    Build Type: RELEASE
    Commit:1bcef5c212eb9f98292ccd1d9b7ff1dbf9457258
    ESN: 3930047600
    01/24/17 17:43:21
    RTL
    errnum: 0x002
    r0: 0x20007ea8
    r1: 0x000000b9
    r2: 0x001029df
    Stack frame PC, SP: 0x001145b5, 0x20007b68
    Call Stack - SP at 0x20007b68:
    0x000dbdb3
    0x001029df
    0x000ebc5f
    0x001029df
    0x001029df
    0x001031bb
    0x000ec857
    0x0010dc65
    0x0010ced7
    0x000ef07d
    0x0004464b
    0x000eb5d5
    0x000ec9c9
    0x00030003
    0x00030001
    0x00044fad
    0x0004515d
    0x00047451
    0x00044fad
    0x00075681
    0x00140055
    0x00044fad
    0x00044fad
    0x00040bb5
    0x00044fad
    0x001028b1
    0x001019db
    0x00040d85
    0x000f07d3
    0x0006fa9b
    0x000ec857
    0x0004087d
    Uptime: 32920033