Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Exception at resume game @ task.on_complete_changed #20

Open
Lineflyer opened this issue Jan 14, 2020 · 0 comments
Open

Java Exception at resume game @ task.on_complete_changed #20

Lineflyer opened this issue Jan 14, 2020 · 0 comments
Labels
Bug Something isn't working

Comments

@Lineflyer
Copy link
Member

Copied from biylda/WhereYouGo#8

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.:

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

testtask.zip

@Lineflyer Lineflyer added the Bug Something isn't working label Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant