biylda / WhereYouGo

android app for Wherigo
26 stars 12 forks source link

Java Exception at resume game @ task.on_complete_changed #8

Open hansmen1 opened 8 years ago

hansmen1 commented 8 years ago

Hi!

Hopefully this is the correct place to report potential bug as the exception references openwig.googlecode.com which seem to have move.

Suprisingly a could't find this problem mentioned below, but probably I searched at the wrong places.

In the middle of the development of my cartridge - which work well in the urwigo-simulator also with no problems with save/and resume - I testet it on the smartphone: Lot's of java exceptions when I resumed a saved game: especially index of non-table and calling nil! I updated to the current version same result. So i started to analyse the problems. I am using tasks (also partly LUA-function in there). The problem at the resume-time seem to be, that the taskcompletion is called (which migth be ok and is ok to me), but there aren't any "objects" already "initiated"! So a call of e.g.:

fail, as all "the reference" is nil and I think this is bug.

Of course I can implement a workaround, but I have to put it in many task ... So probably there is a simpler workaround (some settings) or I did something wrong, ...

I implemented an easy cartrige, to eliminate potential problem caused by me. I attach this simple/short cartrige with no lua and just in urwigo (urwigo und compiled code attached) for reproduction of this problem:

  1. Start cartrige
  2. Schweizermesser.CloseTask
  3. Exit with save
  4. Start with resume -> java exception (just for a short time)
  5. Exit no save -> java exception (til press away)

I'am currently working with urwigo and on an Samsung GT-S5690 Android: 2.36 /Gingerbread ( Kernel2.6.35.7).

If additional Information is need just let me know.

Thanx in advance for help or fixing the bug hansmen

testtask.zip

Lineflyer commented 4 years ago

Repository was relived here. A corresponding issue (see mention link above) has been created in that repository.