Closed Bug 1542393 Opened 5 years ago Closed 5 years ago

Debugger fails to connect to GeckoView with an uncaught exception

Categories

(GeckoView :: General, defect, P1)

Unspecified
Android
defect

Tracking

(firefox66 unaffected, firefox67 unaffected, firefox68 affected)

RESOLVED INVALID
Tracking Status
firefox66 --- unaffected
firefox67 --- unaffected
firefox68 --- affected

People

(Reporter: rbarker, Unassigned)

References

(Regression)

Details

(Keywords: regression)

When trying to connect a debugger to FxR, the following error occurs:

2019-04-05 13:45:34.838 7841-7841/org.mozilla.vrbrowser D/GeckoProfile: Found profile dir.
2019-04-05 13:45:34.838 7841-7841/org.mozilla.vrbrowser I/VRB: Creating file: /data/user/0/org.mozilla.vrbrowser/files/mozilla/cccbdyky.default/user.js
2019-04-05 13:45:34.865 7841-7841/? W/art: Unresolved exception class when finding catch block: org.yaml.snakeyaml.error.YAMLException
2019-04-05 13:45:34.866 7841-7841/? D/AndroidRuntime: Shutting down VM
2019-04-05 13:45:34.866 7841-7841/? E/GeckoCrashHandler: >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
2019-04-05 13:45:34.869 7841-7841/? I/Process: Sending signal. PID: 7841 SIG: 9

Commenting out this try block allows the debugger to attach.

Flags: needinfo?(nalexander)
Regressed by: 1533385
Keywords: regression
OS: All → Android
Priority: -- → P1

rbarker tracked this down. What is happening is that in FxR local builds, they depend on a local AAR file, which has no dependency information. Therefore there's no dependency JAR at build time, hence ClassNotFoundException. This is not specific to snakeyaml at all; any GV dependency that isn't already in FxR and is actually used would exhibit the issue.

The fix will be to improve the FxR local dependency substitution.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(nalexander)
Resolution: --- → INVALID
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.