Closed
Bug 1214554
Opened 9 years ago
Closed 9 years ago
Crash when using the geolocation api
Categories
(B2GDroid Graveyard :: General, defect)
Tracking
(b2g-v2.5 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
b2g-v2.5 | --- | fixed |
People
(Reporter: qiutian, Assigned: fabrice)
References
Details
Attachments
(3 files)
[1.Description]:
If user tries to turn on GPS access for the application, device will crash in B2G Video app.
Found time: 10:25
See attcchment:AriesKK_v2.5_GPS.3gp & logcat_GPS.txt.
[2.Testing Steps]:
1. Select the settings.
2. Turn Geolocation on, and hit the home button.
3. Launch the web browser or use bookmark to go to http://maps.google.com.
4. Turn on GPS access for the application.
[3.Expected Result]:
In step 4, The page should operate normally and share your position information.
[4.Actual Result]:
In step 4, The browser will crash.
[5.Reproduction build]:
Android version: 4.4.4(Build Number 23.0.A.2.93)
B2GDroid version: 0.11
[6.Reproduction Frequency]:
Always Recurrence,5/5
[7.TCID]:
9564
[8.NOTE]
This function is works normal on latest build of flame v2.5 & aries v2.5
Reporter | ||
Comment 1•9 years ago
|
||
Reporter | ||
Updated•9 years ago
|
Product: Firefox OS → B2GDroid
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to Autumn.Qiu from comment #0)
> [1.Description]:
> If user tries to turn on GPS access for the application, device will crash
> in B2G Video app.
Sorry, modify the description in comment 0 to: If user tries to turn on GPS access for the application, device will crash.
Assignee | ||
Comment 3•9 years ago
|
||
I was able to reproduce, we crash with:
E/GeckoCrashHandler(14794): java.lang.NullPointerException: Attempt to invoke interface method 'void android.location.LocationListener.onLocationChanged(android.location.Location)' on a null object reference
E/GeckoCrashHandler(14794): at org.mozilla.gecko.GeckoAppShell$4.run(GeckoAppShell.java:522)
E/GeckoCrashHandler(14794): at android.os.Handler.handleCallback(Handler.java:739)
E/GeckoCrashHandler(14794): at android.os.Handler.dispatchMessage(Handler.java:95)
E/GeckoCrashHandler(14794): at android.os.Looper.loop(Looper.java:211)
E/GeckoCrashHandler(14794): at android.app.ActivityThread.main(ActivityThread.java:5321)
E/GeckoCrashHandler(14794): at java.lang.reflect.Method.invoke(Native Method)
E/GeckoCrashHandler(14794): at java.lang.reflect.Method.invoke(Method.java:372)
E/GeckoCrashHandler(14794): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
E/GeckoCrashHandler(14794): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Assignee | ||
Updated•9 years ago
|
Summary: [B2GDroid] The browser will crash if user turns on GPS access for the application. → Crash when using the geolocation api
Assignee | ||
Comment 4•9 years ago
|
||
This implements a basic GeckoInterface for Launcher.java in order to provide the LocationListener implementation.
Assignee: nobody → fabrice
Attachment #8682095 -
Flags: review?(reuben.bmo)
Comment 5•9 years ago
|
||
Comment on attachment 8682095 [details] [diff] [review]
geoloc.patch
Review of attachment 8682095 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #8682095 -
Flags: review?(reuben.bmo) → review+
Comment 7•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 8•9 years ago
|
||
bugherder uplift |
status-b2g-v2.5:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•