If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

crash in java.lang.UnsatisfiedLinkError: Native method not found: org.mozilla.gecko.util.NativeJSObject.optString:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; at org.mozilla.gecko.util.NativeJSObject.optString(Native Method)

RESOLVED WORKSFORME

Status

()

Firefox for Android
General
--
critical
RESOLVED WORKSFORME
3 years ago
3 years ago

People

(Reporter: aaronmt, Assigned: jchen)

Tracking

({crash})

35 Branch
All
Android
crash
Points:
---

Firefox Tracking Flags

(fennec35+)

Details

(crash signature)

(Reporter)

Description

3 years ago
This bug was filed from the Socorro interface and is 
report bp-bbe139a8-74d4-45f2-8485-40c982140925.
=============================================================

java.lang.UnsatisfiedLinkError: Native method not found: org.mozilla.gecko.util.NativeJSObject.optString:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	at org.mozilla.gecko.util.NativeJSObject.optString(Native Method)
	at org.mozilla.gecko.EventDispatcher.dispatchEvent(EventDispatcher.java:145)
	at org.mozilla.gecko.GeckoAppShell.handleGeckoMessage(GeckoAppShell.java:2327)
	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
	at org.mozilla.gecko.GeckoAppShell.runGecko(GeckoAppShell.java:365)
	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:186)
Weird. I see the right native method in mozglue:

typedef jstring (*Java_org_mozilla_gecko_util_NativeJSObject_optString_t)(JNIEnv *, jobject, jstring, jstring);
static Java_org_mozilla_gecko_util_NativeJSObject_optString_t f_Java_org_mozilla_gecko_util_NativeJSObject_optString;
extern "C" NS_EXPORT jstring JNICALL
Java_org_mozilla_gecko_util_NativeJSObject_optString(JNIEnv * arg0, jobject arg1, jstring arg2, jstring arg3) {
    if (!f_Java_org_mozilla_gecko_util_NativeJSObject_optString) {
        arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
                       "JNI Function called before it was loaded");
        return nullptr;
    }
    return f_Java_org_mozilla_gecko_util_NativeJSObject_optString(arg0, arg1, arg2, arg3);
}
#endif

#ifdef JNI_BINDINGS
  xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_optString", &f_Java_org_mozilla_gecko_util_NativeJSObject_optString);
#endif


nchen, could you take a look or reassign?
Assignee: nobody → nchen
Status: NEW → ASSIGNED
tracking-fennec: --- → 35+
(Assignee)

Comment 2

3 years ago
Besides this one report, there hasn't been any other reports in the last few weeks.
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.