question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Render fails on pixel phones

See original GitHub issue
Description of the problem

My app works on all browsers and equipment we’ve tried it on with the exception of pixel phones. On pixel phones, we get an error on the first call to render, with this stack trace:

texImage2D    @    three.js:19999
setupFrameBufferTexture    @    three.js:20738
setupRenderTarget    @    three.js:20915
WebGLRenderer.setRenderTarget    @    three.js:24430
WebGLRenderer.render    @    three.js:23129
render    @    RenderPass.js:51
render    @    EffectComposer.js:88

I’m not sure which portions of the code would be helpful in tracking this down?

Three.js version
  • r97
  • r94
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Pixel Phone

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
elbamoscommented, Oct 15, 2018

I was able to track it down to this line:

renderer.setPixelRatio( window.devicePixelRatio );

in case anyone else experiences the issue.

0reactions
mrdoobcommented, Oct 15, 2018

Definitely helps. Without that context, other users would just blindly remove setPixelRatio().

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Google Pixel 3 Problems and How to Fix Them
The Google Pixel 3 and Pixel 3 XL are a year old, and with time comes bugs, problems, and glitches that users discover....
Read more >
Google Pixel Android 12 bugs, problems, & issues tracker ...
Here are all the Google Pixel Android 12 update bugs, problems, & issues that've been reported, fixed, or acknowledged (workarounds inside).
Read more >
Fix a Pixel that freezes or won't respond - Pixel Phone Help
Restart your phone​​ If your phone is frozen with the screen on, hold down the power button for about 30 seconds to restart....
Read more >
The biggest Pixel 6 frustrations that Google should fix with the ...
As Google prepares to introduce the new Pixel 7 and 7 Pro, there are some hardware issues from the Pixel 6 lineup that...
Read more >
Software bug could render the camera of the Pixel 3 useless
The “fatal error” camera bug is the latest issue to hit the Pixel 3. Users have reported memory management issues on their devices...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found