Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Opening sample UltraHDR x OpenGLES SurfaceView crashes the app #187

Open
2 tasks done
calren opened this issue Jul 25, 2024 · 1 comment
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@calren
Copy link
Contributor

calren commented Jul 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

In which area is the issue?

General

In a specific sample?

UltraHDR x OpenGLES SurfaceView

What happened?

UltraHDR x OpenGLES SurfaceView sample can't be opened on Pixel 6a.

NavigationTest.testSamplesOpen caught this on a recent PR where I tried to get tests to run again: #185

Relevant logcat output

java.lang.IllegalStateException: HDR/SDR ratio changed not available
                                                                                                    	at android.view.Display.registerHdrSdrRatioChangedListener(Display.java:1357)
                                                                                                    	at com.example.platform.graphics.ultrahdr.opengl.UltraHDRWithOpenGL.onAttach(UltraHDRWithOpenGL.kt:186)
                                                                                                    	at androidx.fragment.app.Fragment.performAttach(Fragment.java:3071)
                                                                                                    	at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:502)
                                                                                                    	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:271)
                                                                                                    	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2102)
                                                                                                    	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1997)
                                                                                                    	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1940)
                                                                                                    	at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:660)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:959)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:100)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:232)
                                                                                                    	at android.os.Looper.loop(Looper.java:317)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8501)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@calren calren added the bug Something isn't working label Jul 25, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Aug 30, 2024
@calren calren removed the Stale label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants