Closed Bug 1518056 Opened 1 year ago Closed 1 year ago

Can't load any pages on Android Q pre-release builds

Categories

(Firefox for Android :: General, defect, P1)

Firefox 64
All
Android
defect

Tracking

()

RESOLVED DUPLICATE of bug 1543555
Tracking Status
geckoview64 --- wontfix
geckoview65 --- wontfix
firefox64 --- wontfix
firefox65 --- wontfix
firefox66 --- wontfix
firefox67 --- fix-optional
firefox68 --- affected

People

(Reporter: lorenzo, Unassigned)

References

Details

(Whiteboard: [geckoview:fenix:p2])

Attachments

(1 file)

Firefox 64.0.1 can't load any pages on Android Q pre-release builds. Entering an HTTP URL results in the spinner and then no content, and entering an HTTPS URL results in an "Unexpected response from server: Firefox doen't know how to communicate with the server" error page.

Steps to reproduce:

1. Build and install Android from the open-source repository source.android.com.
2. Install Firefox using "adb install".
3. Attempt to load pages.

I can see this on at least a Pixel 3 XL running AOSP code. I haven't tried the emulator, but that might be easier to get working, at least initially.

Let me know if I can provide any further information to help address this. I've tried the following without success.

1. Install Firefox beta, install Firefox nightly: app crashes on startup.
2. Set up HTTP logging: I followed the instructions at https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/HTTP_logging , but there's no "start logging" button and no text field for the log file location.
FWIW, Firefox Focus 8.0.5 does appear to work, though after playing with it for a while I think I was able to get it into a similar state where HTTP silently failed and HTTPS reported the error.

I downloaded the gecko example app from:

https://queue.taskcluster.net/v1/task/aIRRFKeNRuC6jRmEOh108w/runs/0/artifacts/public/build/geckoview_example.apk

and it has the same problem.

For HTTP, the page just remains blank and logcat says:

01-10 00:24:14.332 10070 18166 18207 D GeckoViewModule: dispatch GeckoView:LoadUri, data={"uri":"www.google.com","flags":0}
01-10 00:24:14.334 10070 18166 18207 D GeckoViewNavigation: onEvent: event=GeckoView:LoadUri, data={"uri":"www.google.com","flags":0}
01-10 00:24:14.337 10070 18166 18166 W IInputConnectionWrapper: endBatchEdit on inactive InputConnection
01-10 00:24:14.338 10070 18166 18207 D GeckoViewXUL: updateRemoteType: uri=www.google.com currentType=web remoteType=web
01-10 00:24:14.339 10070 18166 18207 D GeckoViewModule: dispatch GeckoView:SetFocused, data={"focused":true}
01-10 00:24:14.340 10070 18166 18207 D GeckoViewContent: onEvent: event=GeckoView:SetFocused, data={"focused":true}
01-10 00:24:14.341 10070 18166 18166 W IInputConnectionWrapper: getSelectedText on inactive InputConnection
01-10 00:24:14.341 10070 18166 18166 W IInputConnectionWrapper: requestCursorAnchorInfo on inactive InputConnection
01-10 00:24:14.342 10070 18166 18166 W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
01-10 00:24:14.342 10070 18166 18166 W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
01-10 00:24:14.343 10070 18166 18166 W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
01-10 00:24:14.346 10070 18216 18216 D GeckoNetworkManager: Incoming event enableNotifications for state OffNoListeners -> OffWithListeners
01-10 00:24:14.348 10070 18216 18216 D GeckoNetworkManager: New network state: UP, WIFI, WIFI
01-10 00:24:14.358 10070 18216 18268 D GeckoViewNavigation[C]: loadURI: uri=http://www.google.com/ where=1 flags=0 tp=moz-nullprincipal:{2dc9a6e0-182b-40a5-920d-3d0bc065733b}
01-10 00:24:14.359 10070 18166 18166 D GeckoViewActivity: onLoadRequest=http://www.google.com/ triggerUri=null where=1 isRedirect=false
01-10 00:24:14.364 10070 18216 18268 D GeckoViewNavigation[C]: shouldLoadURI http://www.google.com/
01-10 00:24:14.373 10070 18216 18268 D GeckoViewProgress[C]: onStateChange: isTopLevel=true, flags=0xf0001, status=NS_OK
01-10 00:24:14.375 10070 18216 18268 D GeckoViewProgress[C]: onStateChange: uri=http://www.google.com/
01-10 00:24:14.376 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker start http://www.google.com/
01-10 00:24:14.377 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress
01-10 00:24:14.379 10070 18216 18268 W GeckoLinker: /data/app/org.mozilla.geckoview_example-pUAlw6G4hWF9m_TMvLy2iw==/lib/arm/libsoftokn3.so: Relocation to NULL @0x00027610 for symbol "__cxa_type_match"
01-10 00:24:14.383 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress data={"prev":0,"uri":"http://www.google.com/","locationChange":false,"pageStart":true,"pageStop":false,"firstPaint":false,"pageShow":false,"parsed":false,"totalReceived":1,"totalExpected":1} progress=10.000057220458984
01-10 00:24:14.384 10070 18166 18166 I GeckoViewActivity: onProgressChange 10
01-10 00:24:14.386 10070 18166 18207 D GeckoViewProgress: onStateChange: isTopLevel=true, flags=0xf0001, status=NS_OK loadType=1
01-10 00:24:14.386 10070 18166 18207 D GeckoViewProgress: onStateChange: uri=http://www.google.com/ isSuccess=true isStart=true isStop=false
01-10 00:24:14.386 10070 18166 18166 I GeckoViewActivity: Starting to load page at http://www.google.com/
01-10 00:24:14.386 10070 18166 18166 I GeckoViewActivity: zerdatime 782533 - page load start
01-10 00:24:14.394 10070 18216 18268 D GeckoViewProgress[C]: onStateChange: isTopLevel=true, flags=0xc0010, status=NS_ERROR_OUT_OF_MEMORY
01-10 00:24:14.394 10070 18216 18268 D GeckoViewProgress[C]: onStateChange: uri=http://www.google.com/
01-10 00:24:14.395 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker stop
01-10 00:24:14.397 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress
01-10 00:24:14.400 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress data={"prev":10.000057220458984,"uri":"http://www.google.com/","locationChange":false,"pageStart":true,"pageStop":true,"firstPaint":false,"pageShow":false,"parsed":false,"totalReceived":1,"totalExpected":1} progress=100
01-10 00:24:14.401 10070 18166 18166 I GeckoViewActivity: onProgressChange 100
01-10 00:24:14.402 10070 18166 18207 D GeckoViewProgress: onStateChange: isTopLevel=true, flags=0xc0010, status=NS_ERROR_OUT_OF_MEMORY loadType=1
01-10 00:24:14.403 10070 18166 18207 D GeckoViewProgress: onStateChange: uri=http://www.google.com/ isSuccess=false isStart=false isStop=true
01-10 00:24:14.422 10070 18166 18166 I GeckoViewActivity: Stopping page load unsuccessfully
01-10 00:24:14.422 10070 18166 18166 I GeckoViewActivity: zerdatime 782569 - page load stop
01-10 00:24:14.422 10070 18166 18166 D GeckoViewActivity: Trackers blocked: 0 ads, 0 analytics, 0 social, 0 content, 0 test

For HTTPS, the page turns into a red background that says "Boom! Something bad happened... ERROR_CATEGORY_NETWORK : ERROR_UNKNOWN_SOCKET_TYPE". Logcat says:

01-10 00:25:00.792 10070 18166 18207 D GeckoViewModule: dispatch GeckoView:LoadUri, data={"uri":"https://www.google.com/","flags":0}
01-10 00:25:00.793 10070 18166 18207 D GeckoViewNavigation: onEvent: event=GeckoView:LoadUri, data={"uri":"https://www.google.com/","flags":0}
01-10 00:25:00.794 10070 18166 18207 D GeckoViewXUL: updateRemoteType: uri=https://www.google.com/ currentType=web remoteType=web
01-10 00:25:00.799 10070 18166 18166 W IInputConnectionWrapper: endBatchEdit on inactive InputConnection
01-10 00:25:00.799 10070 18166 18207 D GeckoViewModule: dispatch GeckoView:SetFocused, data={"focused":true}
01-10 00:25:00.799 10070 18166 18207 D GeckoViewContent: onEvent: event=GeckoView:SetFocused, data={"focused":true}
01-10 00:25:00.801 10070 18216 18268 D GeckoViewNavigation[C]: loadURI: uri=https://www.google.com/ where=1 flags=0 tp=moz-nullprincipal:{84d81022-4af6-4433-bdb4-2dec3abf7bcd}
01-10 00:25:00.803 10070 18166 18166 D GeckoViewActivity: onLoadRequest=https://www.google.com/ triggerUri=null where=1 isRedirect=false
01-10 00:25:00.806 10070 18216 18268 D GeckoViewNavigation[C]: shouldLoadURI https://www.google.com/
01-10 00:25:00.810 10070 18166 18166 W IInputConnectionWrapper: getSelectedText on inactive InputConnection
01-10 00:25:00.810 10070 18166 18166 W IInputConnectionWrapper: requestCursorAnchorInfo on inactive InputConnection
01-10 00:25:00.810 10070 18216 18268 D GeckoViewProgress[C]: onStateChange: isTopLevel=true, flags=0xf0001, status=NS_OK
01-10 00:25:00.811 10070 18166 18166 W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
01-10 00:25:00.811 10070 18166 18166 W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
01-10 00:25:00.811 10070 18216 18268 D GeckoViewProgress[C]: onStateChange: uri=https://www.google.com/
01-10 00:25:00.811 10070 18166 18166 W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
01-10 00:25:00.812 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker start https://www.google.com/
01-10 00:25:00.812 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress
01-10 00:25:00.814 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress data={"prev":0,"uri":"https://www.google.com/","locationChange":false,"pageStart":true,"pageStop":false,"firstPaint":false,"pageShow":false,"parsed":false,"totalReceived":1,"totalExpected":1} progress=10.000057220458984
01-10 00:25:00.816 10070 18166 18166 I GeckoViewActivity: onProgressChange 10
01-10 00:25:00.818 10070 18166 18207 D GeckoViewProgress: onStateChange: isTopLevel=true, flags=0xf0001, status=NS_OK loadType=1
01-10 00:25:00.819 10070 18166 18207 D GeckoViewProgress: onStateChange: uri=https://www.google.com/ isSuccess=true isStart=true isStop=false
01-10 00:25:00.830 10070 18166 18166 I GeckoViewActivity: Starting to load page at https://www.google.com/
01-10 00:25:00.830 10070 18166 18166 I GeckoViewActivity: zerdatime 828977 - page load start
01-10 00:25:00.840 10070 18216 18268 D GeckoViewNavigation[C]: handleLoadError: uri=https://www.google.com/ uri2=https://www.google.com/ error=2152398899
01-10 00:25:00.842 10070 18166 18166 D GeckoViewActivity: onLoadError=https://www.google.com/ error category=3 error=83
01-10 00:25:00.846 10070 18216 18268 D GeckoViewNavigation[C]: shouldLoadURI data:text/html,<!DOCTYPE html><html><head> <title>Boom!</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> <style> body { background-color: red; color: white; font-family: sans; } div.container { width: 75%; margin: auto; text-align: center; } </style></head><body> <div class="container"> <h1>Boom!</h1> <p>Something bad happened...</p> <p>ERROR_CATEGORY_NETWORK : ERROR_UNKNOWN_SOCKET_TYPE</p> </div></body></html>
01-10 00:25:00.848 10070 18216 18268 D GeckoViewProgress[C]: onStateChange: isTopLevel=true, flags=0xc0010, status=NS_ERROR_UNKNOWN_SOCKET_TYPE
01-10 00:25:00.849 10070 18216 18268 D GeckoViewProgress[C]: onStateChange: uri=https://www.google.com/
01-10 00:25:00.849 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker stop
01-10 00:25:00.849 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress
01-10 00:25:00.850 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress data={"prev":10.000057220458984,"uri":"https://www.google.com/","locationChange":false,"pageStart":true,"pageStop":true,"firstPaint":false,"pageShow":false,"parsed":false,"totalReceived":1,"totalExpected":1} progress=100
01-10 00:25:00.851 10070 18166 18166 I GeckoViewActivity: onProgressChange 100
01-10 00:25:00.852 10070 18166 18207 D GeckoViewProgress: onStateChange: isTopLevel=true, flags=0xc0010, status=NS_ERROR_UNKNOWN_SOCKET_TYPE loadType=65537
01-10 00:25:00.852 10070 18166 18207 D GeckoViewProgress: onStateChange: uri=https://www.google.com/ isSuccess=false isStart=false isStop=true
01-10 00:25:00.852 10070 18216 18268 D GeckoViewSelectionAction[C]: handleEvent: visibilitychange
01-10 00:25:00.853 10070 18216 18268 D GeckoViewContent[C]: handleEvent: pagehide
01-10 00:25:00.854 10070 18216 18268 D GeckoViewAutoFill: Clearing auto-fill
01-10 00:25:00.861 10070 18166 18166 I GeckoViewActivity: Stopping page load unsuccessfully
01-10 00:25:00.862 10070 18166 18166 I GeckoViewActivity: zerdatime 829008 - page load stop
01-10 00:25:00.862 10070 18166 18166 D GeckoViewActivity: Trackers blocked: 0 ads, 0 analytics, 0 social, 0 content, 0 test
01-10 00:25:00.862 10070 18216 18268 D GeckoViewProgress[C]: onLocationChange: location=https://www.google.com/, flags=0x2
01-10 00:25:00.862 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker stop
01-10 00:25:00.862 10070 18216 18268 D GeckoViewProgress[C]: ProgressTracker updateProgress
01-10 00:25:00.865 10070 18166 18207 D GeckoViewNavigation: onLocationChange
01-10 00:25:00.866 10070 18166 18207 D GeckoViewProgress: onLocationChange: location=https://www.google.com/, flags=0x2
01-10 00:25:00.867 10070 18166 18207 D GeckoViewProgress: onSecurityChange
01-10 00:25:00.867 10070 18166 18207 D GeckoViewTrackingProtection: onSecurityChange
01-10 00:25:00.874 10070 18216 18268 D GeckoViewContent[C]: handleEvent: DOMTitleChanged
01-10 00:25:00.878 10070 18166 18166 I GeckoViewActivity: Security status changed to 0
01-10 00:25:00.878 10070 18166 18166 I GeckoViewActivity: Content title changed to Boom!

An strace of the process did not show it ever opening an AF_INET or AF_INET6 - the only sockets were AF_UNIX and connected to dnsproxyd (which is for DNS lookups).

Attached file startup.txt

Attaching logcat of GeckoView Example startup in case there's anything interesting. Nothing jumps out at me though.

Given Android's release history, Android Q will probably be released in August or October 2019:

https://en.wikipedia.org/wiki/Android_version_history

[geckoview:fenix:p2] because we should fix this bug in Fenix 1.0 or at least very soon after.

Priority: -- → P2
Hardware: ARM64 → All
Whiteboard: [geckoview:p1] → [geckoview:fenix:p2]

Public releases yes, but there may be betas as well. Last year an Android developer preview was released in March, and a public beta was released in May. If the same happens this year and this issue is not addressed, then users of those builds will not be able to use Firefox.

This bug is critical, but not actionable until we get Android Q builds.

Priority: P2 → P1
Whiteboard: [geckoview:fenix:p2] → [geckoview:fenix:p1]

We can defer this bug until after Fenix MVP because Fenix MVP will be released before Android Q.

Priority: P1 → P2
Whiteboard: [geckoview:fenix:p1] → [geckoview:fenix:p3]

Public beta builds are out! I can't reproduce this because I get a startup crash Bug 1535139.

Depends on: 1535139

[geckoview:fenix:m4] now that pre-release emulator images of Android Q are available for Android Studio. We should fix this before Fenix 1.0, but (I assume!) it's not an urgent blocker because GV developers can use older Android emulator images.

Priority: P2 → P1
Whiteboard: [geckoview:fenix:p3] → [geckoview:fenix:m4]

Though it might still not be a bad idea to let this slide too much in case it turns out to be an Android bug, even if issuetracker.google.com is somewhat of a black hole for that kind of things.

Firefox Beta and Release both crash for me, but Nightly is ok (including GV-based apps).

Deferring to Fenix M5. This is not an urgent priority because Fenix MVP will be released before Android Q.

Whiteboard: [geckoview:fenix:m4] → [geckoview:fenix:m5]

Demoting to priority [geckoview:fenix:p2] because Android Q support is not a Fenix MVP release blocker.

Whiteboard: [geckoview:fenix:m5] → [geckoview:fenix:p2]

Does this work with a current Firefox Beta 67.0b11 or Nightly 68.0a1?

Flags: needinfo?(lorenzo)

67.0b11 now works on my device, thanks!

Flags: needinfo?(lorenzo)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1543555
No longer blocks: android-q
You need to log in before you can comment on or make changes to this bug.