Closed
Bug 848901
Opened 12 years ago
Closed 12 years ago
NFC causes crashes in GB phones
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox21 unaffected, firefox22 fixed)
RESOLVED
FIXED
Firefox 22
Tracking | Status | |
---|---|---|
firefox21 | --- | unaffected |
firefox22 | --- | fixed |
People
(Reporter: sriram, Assigned: kats)
References
Details
(Keywords: crash, regression, Whiteboard: [native-crash] [NFC])
Crash Data
Attachments
(1 file)
2.17 KB,
patch
|
sriram
:
review+
|
Details | Diff | Splinter Review |
E/GeckoAppShell( 1586): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
E/GeckoAppShell( 1586): java.lang.NoClassDefFoundError: org.mozilla.gecko.BrowserApp$6
E/GeckoAppShell( 1586): at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java:366)
E/GeckoAppShell( 1586): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/GeckoAppShell( 1586): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
E/GeckoAppShell( 1586): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/GeckoAppShell( 1586): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/GeckoAppShell( 1586): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/GeckoAppShell( 1586): at android.os.Handler.dispatchMessage(Handler.java:99)
E/GeckoAppShell( 1586): at android.os.Looper.loop(Looper.java:130)
E/GeckoAppShell( 1586): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/GeckoAppShell( 1586): at java.lang.reflect.Method.invokeNative(Native Method)
E/GeckoAppShell( 1586): at java.lang.reflect.Method.invoke(Method.java:507)
E/GeckoAppShell( 1586): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/GeckoAppShell( 1586): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/GeckoAppShell( 1586): at dalvik.system.NativeStart.main(Native Method)
And the corresponding piece of code is:
if (Build.VERSION.SDK_INT >= 10) {
NfcAdapter nfc = NfcAdapter.getDefaultAdapter(this);
if (nfc != null) {
#line: 366 nfc.setNdefPushMessageCallback(new NfcAdapter.CreateNdefMessageCallback() {
@Override
public NdefMessage createNdefMessage(NfcEvent event) {
Tab tab = Tabs.getInstance().getSelectedTab();
if (tab == null || tab.isPrivate()) {
return null;
}
return new NdefMessage(NdefRecord.createUri(tab.getURL()));
}
}, this);
}
}
Device running: 2.3.4
Updated•12 years ago
|
Severity: normal → critical
Crash Signature: [@ java.lang.NoClassDefFoundError: org.mozilla.gecko.BrowserApp$6 at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java) ]
Keywords: crash
Whiteboard: [native-crash]
Comment 1•12 years ago
|
||
kats, NfcAdapter was added in API Level 9 (GB), but NfcAdapter.CreateNdefMessageCallback was added in API Level 14 (ICS):
https://developer.android.com/reference/android/nfc/NfcAdapter.CreateNdefMessageCallback.html
Updated•12 years ago
|
Comment 2•12 years ago
|
||
noooooooooo fix it
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → bugmail.mozilla
Updated•12 years ago
|
Version: unspecified → Firefox 22
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #722552 -
Flags: review?(sriram)
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 722552 [details] [diff] [review]
Only send via beam on API 14+
Looks good to me.
Attachment #722552 -
Flags: review?(sriram) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Updated•12 years ago
|
Updated•12 years ago
|
Whiteboard: [native-crash] → [native-crash] [NFC]
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•