1

このシンプルな JS コードにより、メニューに戻ってメニューに戻ると、以下のエラーで Pebble アプリがクラッシュするようです。なぜこれが起こるのか誰か教えてもらえますか?ありがとう!

PNG からのビットマップとして使用される画像 - http://imgur.com/iDlZxJY

[エラー] ault_handling.c:93: アプリの障害です! {0a21d6a3-cff2-43f5-bfe8-82b3a381d8fe} PC: 0x5555aaaa LR: 0x809e8c9

var UI = require('ui');
var Vector2 = require('vector2');

var main = new UI.Window({

});
var playerBattleAnimation = new UI.Image({
 // Horizontal, Vertical
  position: new Vector2(35, 100),
  size: new Vector2(35 , 35),
  image: 'images/standingattack1'
});    

main.add(playerBattleAnimation); 

main.show();

main.on('click', 'up', function(e) {
  var menu = new UI.Menu({
    sections: [{
      items: [{
        title: 'Pebble.js',
        icon: 'images/menu_icon.png',
        subtitle: 'Can do Menus'
      }, {
        title: 'Second Item',
        subtitle: 'Subtitle Text'
      }, {
        title: 'Third Item',
      }, {
        title: 'Fourth Item',
      }]
    }]
  });
  menu.on('select', function(e) {
    console.log('Selected item #' + e.itemIndex + ' of section #' + e.sectionIndex);
    console.log('The item is titled "' + e.item.title + '"');
  });
  menu.show();
});
4

0 に答える 0