| Summary: | Crash resuming from screen off | ||
|---|---|---|---|
| Product: | SDL | Reporter: | John McFarlane <john> |
| Component: | *don't know* | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | ||
| Version: | don't know | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
| Attachments: | Wait on the wrapper thread instead of the native thread | ||
|
Description
John McFarlane
2014-08-10 18:15:14 UTC
Created attachment 1868 [details]
Wait on the wrapper thread instead of the native thread
Let me know if the attached patch solves the problem.
Patch causes compiler errors:
-compile:
[javac] Compiling 1 source file to /home/john/crag/android/bin/classes
[javac] /home/john/crag/android/src/org/libsdl/app/SDLActivity.java:746: error: local variable sdlThread is accessed from within inner class; needs to be declared final
[javac] sdlThread.join();
[javac] ^
[javac] /home/john/crag/android/src/org/libsdl/app/SDLActivity.java:756: error: incompatible types
[javac] }).start();
[javac] ^
[javac] required: Thread
[javac] found: void
[javac] Note: /home/john/crag/android/src/org/libsdl/app/SDLActivity.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 2 errors
Tried these counter-patches:
- SDLActivity.mSDLThread = new Thread(new SDLMain(), "SDLThread");
+ final Thread sdlThread = new Thread(new SDLMain(), "SDLThread");
and
- }).start();
+ });
+ SDLActivity.mSDLThread.start();
Which appears to work! This also seems to address 2703. Many thanks.
|