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.:
lua-function (call nil)
setting an attribute of item, character,.. (index of non-table)
move item to player
...
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:
Start cartrige
Schweizermesser.CloseTask
Exit with save
Start with resume -> java exception (just for a short time)
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
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:
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