Search Issue Tracker

In Progress

Fix In Review for 6000.0.20f1

Votes

6

Found in

6000.0.11f1

7000.0.0a1

Issue ID

UUM-79451

Regression

Yes

[Android] Error in onPixelCopyFinished after updrading to Unity 6

--

-

After upgrading to Unity 6 preview, version 11f1, we keep seeing this new crash in ALL our Android games (very different types of games). So we are thinking it is a unity related issue.
The crash is also the most frequent one.

I wasn’t able to reproduce it locally, I have been trying to for a month.
I only see the bug once the app is uploaded on a global scale; it might affect specific devices, looks like low-end devices.

The crash log is as follows (most relevant information I have):
{code:java}
Caused by android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:9819)
at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:2016)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:6230)
at android.view.View.invalidateInternal(View.java:19385)
at android.view.View.invalidate(View.java:19312)
at android.view.View.invalidateDrawable(View.java:24065)
at android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:473)
at android.graphics.drawable.Drawable.setVisible(Drawable.java:920)
at android.graphics.drawable.LayerDrawable.setVisible(LayerDrawable.java:1333)
at android.view.View.setBackgroundDrawable(View.java:24657)
at android.view.View.setBackground(View.java:24633)
at com.unity3d.player.C.onPixelCopyFinished(:45)
at android.view.PixelCopy$1.run(PixelCopy.java:191)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.os.HandlerThread.run(HandlerThread.java:67){code}
 

*Notes:*
- Forums thread: [https://discussions.unity.com/t/error-in-onpixelcopyfinished-after-updrading-to-6000-0-11f1/1503439/12
- Regression has been caused by [https://issuetracker.unity3d.com/issues/android-an-issue-that-an-app-show-black-screen-when-it-is-put-into-multi-window-mode]

  1. Resolution Note (fix version 6000.0.20f1):

    Android: Fixed `CalledFromWrongThreadException` error caused when pausing app on low-end devices

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.