From on May 31, 2015 11:29
What device(s) are you experiencing the problem on?
HTC Desire Z
What firmware version are you running on the device?
Android 2.2.1
2.6.32.21 kernel
1.82.405.1 software number
What steps will reproduce the problem?
1. Open SL4A
2. Menu -> View -> Triggers
3. Menu -> Add
4. Select a script
5. Select "phone" as the trigger kind
What is the expected output? What do you see instead?
The app is frozen. It should not freeze and create the trigger.
What version of the product are you using? On what operating system?
SL4A R4 on Android 2.2.1.
Also tried with source build, and got the same defect.
Please provide any additional information below.
It looks like a deadlock, as the MainThread.run() method is executed in the
main thread associated with the supplied context, so the supplied task cannot
be run until the MainThread.run() finishes, and MainThread.run() does not
finish if the task is not ran.
I solved the problem with the attached patch.
Original issue reported on code.google.com by alessand....com on 4 May 2011 at 8:31
Attachments: - log_trigger_deadlock.diff - all.diff
Copied from original issue: damonkohler/android-scripting#544
该提问来源于开源项目:damonkohler/sl4a