Closed Bug 2079932 Opened 1 month ago Closed 1 month ago

[Crash] Sign PDF java.lang.IllegalStateException: result is already complete

Categories

(GeckoView :: PDF Viewer, defect)

All
Android
defect
Points:
5

Tracking

(firefox161 fixed)

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: olivia, Assigned: olivia)

References

(Depends on 1 open bug)

Details

(Whiteboard: [fxdroid][group6])

Attachments

(1 external file)

09-24 08:40:17.644 29109 29109 E AndroidRuntime: FATAL EXCEPTION: main
09-24 08:40:17.644 29109 29109 E AndroidRuntime: Process: org.mozilla.fenix.debug, PID: 29109
09-24 08:40:17.644 29109 29109 E AndroidRuntime: java.lang.IllegalStateException: result is already complete
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at org.mozilla.geckoview.GeckoResult.complete(GeckoResult.java:895)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at org.mozilla.gecko.EventDispatcher$CallbackResult.sendSuccess(EventDispatcher.java:229)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at org.mozilla.gecko.EventDispatcher$JavaCallbackDelegate$1.run(EventDispatcher.java:571)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:958)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:205)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:294)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8177)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
09-24 08:40:17.644 29109 29109 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: Uncaught exception handled: 
09-24 08:40:17.644 29109 29109 E ExceptionHandler: java.lang.IllegalStateException: result is already complete
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at org.mozilla.geckoview.GeckoResult.complete(GeckoResult.java:895)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at org.mozilla.gecko.EventDispatcher$CallbackResult.sendSuccess(EventDispatcher.java:229)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at org.mozilla.gecko.EventDispatcher$JavaCallbackDelegate$1.run(EventDispatcher.java:571)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at android.os.Handler.handleCallback(Handler.java:958)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at android.os.Handler.dispatchMessage(Handler.java:99)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at android.os.Looper.loopOnce(Looper.java:205)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at android.os.Looper.loop(Looper.java:294)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at android.app.ActivityThread.main(ActivityThread.java:8177)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at java.lang.reflect.Method.invoke(Native Method)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
09-24 08:40:17.644 29109 29109 E ExceptionHandler: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

I can't reproduce this by trying to get a double tap in bug 2070190. I think it must be something else. It may be caused from didDestroy returns early when #findHandler is null, but we need more investigation to determine.

I haven't seen it in a while, but it is also hard to test end-to-end at the movement. I've seen it randomly when trying to sign in the past.

Points: --- → 5

I got some interesting logs that it seems like we have multiple handlers answering based on how some registration happens.

Assignee: nobody → ohall

Adds a guard to make sure the right actor responds.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: