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 #8

Open
hansmen1 opened this issue May 2, 2016 · 1 comment
Open

Java Exception at resume game @ task.on_complete_changed #8

hansmen1 opened this issue May 2, 2016 · 1 comment

Comments

@hansmen1
Copy link

hansmen1 commented May 2, 2016

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:

  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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants