언어 설정

Menu
Sites
Language
HTML5 game crashes without callstack or errors

Hi all,

I'm working on a port of an existing HTML5 game to Tizen. I'm having an issue on the test device where after about half a level the game crashes. It's not consistent when it crashes and how it crashes, but the one thing that's consistent is that there's no output in the debugger, and no uncaught exceptions are triggered. I'm wondering if anyone else is having a similar experience.

Some details:

  • On Tizen 2.2 device log, i see  Error's logged like:
    Tizen::Base::Collection::ArrayList::IndexOf(const Tizen::Base::Object&, int, int, int&) const(290) > [E_OBJ_NOT_FOUND] The arraylist is empty.
    Tizen::Base::Collection::ArrayList::Remove(const Tizen::Base::Object&)(393) > [E_OBJ_NOT_FOUND] Propagating.
  • These no longer occur on 2.2.1, instead the game just freezes ( the app totally locks up and does not crash, even after 10 minutes of idling ) at certain points, and the debug bridge seems to stop responding. No errors occur in the Javascript client code at the time of freezing.
  • The Web Simulator doesn't support filesystem properly, so I haven't been able to use that.
  • The emulator runs, but i don't have CPU VT support, so the game actually can't launch ( get's stuck on loading for over 800 seconds ).
  • The project uses cordova, and is based on the Hello Cordova sample.
  • It is using Audio.

If anyone knows of any issues that might be related, or at least any way that I can find out what might be a cause, any help would be greatly appreciated!

Many thanks in Advance,

David Goemans
 

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 댓글
John Ixion

Hi David,

If you use Cordova, I would recommend the Intel XDK http://software.intel.com/en-us/html5/tools

David Goemans

Hi Olivier,

Thanks for the suggestion. Unfortunately, it's not trivial to port our app to the XDK. That said, it might really be promising for future projects.

Thanks,

David

David Goemans

I managed to find the cause, and have a work around for it, but it's still a bug that the OS should probably deal with more graciously.

The issue was that Cordova-Tizen doesn't cleanup it's audio objects once they've finished playing. For a game such as ours, this results in about 80 audio objects ( not necessarily active ), and at around this point, the operating system freezes or crashes the application.

Thanks,

David