Skip to content

[url_launcher] Android resumes with black screen #43373

@ianko

Description

@ianko
with statusBarBrightness without statusBarBrightness
1 2

Steps to Reproduce

DEMO APPLICATION: https://gist.github.com/ianko/e5ab0da1c48736e65538305c8ded1a7d

  1. Import the latest url_launcher version (5.2.3 as of today)
  2. Launch a URL passing a statusBarBrightness
  3. Hit the back button
  4. Notice the screen went all black
  5. If you repeat the steps but without passing a statusBarBrightness, it works fine.

Target Platform: ANDROID
Target OS version/browser: Any
Devices: Any

Logs

W/ActivityThread(27915): handleWindowVisibility: no activity for token android.os.BinderProxy@e077bb7

�[38;5;248m════════ Exception caught by scheduler library ═════════════════════════════════�[39;49m
�[38;5;244mThe following assertion was thrown during a scheduler callback:�[39;49m
Failed assertion: boolean expression must not be null


�[38;5;248mEither the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md
�[39;49m

�[38;5;244mWhen the exception was thrown, this was the stack�[39;49m
�[38;5;244m#0      RenderView.compositeFrame�[39;49m
�[38;5;244m#1      RendererBinding.drawFrame�[39;49m
�[38;5;244m#2      WidgetsBinding.drawFrame�[39;49m
�[38;5;244m#3      RendererBinding._handlePersistentFrameCallback�[39;49m
�[38;5;244m#4      SchedulerBinding._invokeFrameCallback�[39;49m
�[38;5;244m...�[39;49m
�[38;5;248m════════════════════════════════════════════════════════════════════════════════�[39;49m

�[38;5;248m════════ Exception caught by scheduler library ═════════════════════════════════�[39;49m
Failed assertion: boolean expression must not be null
�[38;5;248m════════════════════════════════════════════════════════════════════════════════�[39;49m
D/        (27915): PlayerBase::PlayerBase()
D/        (27915): TrackPlayerBase::TrackPlayerBase()
I/libOpenSLES(27915): Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
I/cr_MediaCodecBridge(27915): create MediaCodec video decoder, mime video/avc
I/OMXClient(27915): IOmx service obtained
I/MediaCodec(27915): MediaCodec will operate in async mode
D/SurfaceUtils(27915): connecting to surface 0x76ac238010, reason connectToSurface
I/MediaCodec(27915): [OMX.qcom.video.decoder.avc] setting surface generation to 28584967
D/SurfaceUtils(27915): disconnecting from surface 0x76ac238010, reason connectToSurface(reconnect)
D/SurfaceUtils(27915): connecting to surface 0x76ac238010, reason connectToSurface(reconnect)
D/SurfaceUtils(27915): set up nativeWindow 0x76ac238010 for 1080x820, color 0x7fa30c06, rotation 0, usage 0x20002900
D/SurfaceUtils(27915): set up nativeWindow 0x76ac238010 for 1088x832, color 0x7fa30c06, rotation 0, usage 0x20002900
I/cr_MediaCodecBridge(27915): create MediaCodec video decoder, mime video/avc
I/OMXClient(27915): IOmx service obtained
I/MediaCodec(27915): MediaCodec will operate in async mode
D/SurfaceUtils(27915): connecting to surface 0x76ac239010, reason connectToSurface
I/MediaCodec(27915): [OMX.qcom.video.decoder.avc] setting surface generation to 28584968
D/SurfaceUtils(27915): disconnecting from surface 0x76ac239010, reason connectToSurface(reconnect)
D/SurfaceUtils(27915): connecting to surface 0x76ac239010, reason connectToSurface(reconnect)
D/SurfaceUtils(27915): set up nativeWindow 0x76ac239010 for 1080x820, color 0x7fa30c06, rotation 0, usage 0x20002900
D/SurfaceUtils(27915): set up nativeWindow 0x76ac239010 for 1088x832, color 0x7fa30c06, rotation 0, usage 0x20002900
I/cr_MediaCodecBridge(27915): create MediaCodec video decoder, mime video/avc
I/OMXClient(27915): IOmx service obtained
I/MediaCodec(27915): MediaCodec will operate in async mode
D/SurfaceUtils(27915): connecting to surface 0x77161a6010, reason connectToSurface
I/MediaCodec(27915): [OMX.qcom.video.decoder.avc] setting surface generation to 28584969
D/SurfaceUtils(27915): disconnecting from surface 0x77161a6010, reason connectToSurface(reconnect)
D/SurfaceUtils(27915): connecting to surface 0x77161a6010, reason connectToSurface(reconnect)
D/SurfaceUtils(27915): set up nativeWindow 0x77161a6010 for 1080x820, color 0x7fa30c06, rotation 0, usage 0x20002900
D/SurfaceUtils(27915): set up nativeWindow 0x77161a6010 for 1088x832, color 0x7fa30c06, rotation 0, usage 0x20002900
D/        (27915): PlayerBase::stop() from IPlayer
D/AudioTrack(27915): stop(34): called with 486266 frames delivered
W/cr_MediaCodecBridge(27915): Releasing: OMX.qcom.video.decoder.avc
D/SurfaceUtils(27915): disconnecting from surface 0x76ac238010, reason disconnectFromSurface
W/cr_MediaCodecBridge(27915): Codec released
W/cr_MediaCodecBridge(27915): Releasing: OMX.qcom.video.decoder.avc
D/SurfaceUtils(27915): disconnecting from surface 0x76ac239010, reason disconnectFromSurface
W/cr_MediaCodecBridge(27915): Codec released
W/cr_MediaCodecBridge(27915): Releasing: OMX.qcom.video.decoder.avc
D/SurfaceUtils(27915): disconnecting from surface 0x77161a6010, reason disconnectFromSurface
W/cr_MediaCodecBridge(27915): Codec released

Metadata

Metadata

Assignees

Labels

a: qualityA truly polished experiencec: renderingUI glitches reported at the engine/skia or impeller rendering levelcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.p: url_launcherPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions