Closed Bug 1968018 Opened 3 months ago Closed 3 months ago

startup Crash in [@ java.lang.NoClassDefFoundError: at com.sun.jna.Structure.validateFields(Structure.java)]

Categories

(Focus :: General, defect)

Unspecified
Android
defect

Tracking

(firefox138 unaffected, firefox139+ fixed, firefox140+ fixed)

RESOLVED FIXED
140 Branch
Tracking Status
firefox138 --- unaffected
firefox139 + fixed
firefox140 + fixed

People

(Reporter: aryx, Assigned: RyanVM)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

186 crashes from 126 installs of Focus 139.0 on Android 5 and 6 (API versions 21-23).

Crash report: https://crash-stats.mozilla.org/report/index/5104190d-ee64-4457-8d7e-6bd270250522

Top 10 frames:

0  com.sun.jna.Structure  validateFields  Structure.java:48
1  com.sun.jna.Structure  <init>  Structure.java:15
2  com.sun.jna.Structure  <init>  Structure.java:6
3  com.sun.jna.Structure  <init>  Structure.java:3
4  com.sun.jna.Structure  <init>  Structure.java:1
5  mozilla.appservices.rust_log_forwarder.UniffiRustCallStatus  <init>  rust_log_forwarder.kt:1
6  mozilla.appservices.rust_log_forwarder.Rust_log_forwarderKt  setLogger  rust_log_forwarder.kt:5
7  org.mozilla.focus.FocusApplication  onCreate  FocusApplication.kt:54
8  android.app.Instrumentation  callApplicationOnCreate  Instrumentation.java:1014
9  android.app.ActivityThread  handleBindApplication  ActivityThread.java:4762

Hi Ben, any thoughts on this?

Flags: needinfo?(bdeankawamura)

I think it might be this one

Flags: needinfo?(bdeankawamura)

A comment in that issue says "Android has natively supported Java 8 Lambda since Nougat (API 24, Android 7.0).", which seems to line up with this.

Ugh, I don't think we can address this in time for 139.0 at this point. AFAICT, our only option is going to be to revert the JNA bump from Glean/AppServices and create dot releases that we can then backport to v139. And we'll be stuck on JNA 5.14.0 until we eventually bump our minimum Android version to 7 or higher.

What I don't understand is why only Focus is hitting this crash.

The bug is marked as tracked for firefox139 (beta) and tracked for firefox140 (nightly). However, the bug still isn't assigned.

:bclark, could you please find an assignee for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(brclark)
Depends on: 1968193
Depends on: 1968270

Focus 139.0rc3 (build ID #20250523173407) has been rolling out to the Open Testing track since yesterday and so far there have been no reports from builds newer than 20250519150218. It's looking very promising that the JNA revert resolved this but we can wait another day or two for wider rollout before closing the bug out.

Flags: needinfo?(brclark)
See Also: → 1968016

Fixed by the blocking bugs.

Assignee: nobody → ryanvm
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: