4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
11.29k stars 871 forks source link

Editor crash - "Error creating WebGL context" - Three.js #5956

Open daddywookie opened 11 months ago

daddywookie commented 11 months ago

Describe what you were doing when the crash happened

  1. Left GDevelop open and idle for a couple of hours
  2. GameScene tab showed a black window instead of the required scene
  3. Other panels seem to work fine (e.g. manage to create a new sprite
  4. Closed project with web backup. Re-opened project and received this error

GDevelop version

5.3.181-ec1ebcbf5b57a4623f3ac4eb39a06a26398dc4bd

Platform info

System Version: 10.0.19045, Arch: x64, User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) GDevelop5/5.3.181 Chrome/100.0.4896.143 Electron/18.2.2 Safari/537.36, Platform: win32

Additional error context

uniqueErrorId: 82ff75d8-da42-4f8e-93fa-0e3fc20605d0

Error: Error creating WebGL context. at new e (file:///C:/Users/daddy/AppData/Local/Programs/GDevelop/resources/app.asar/www/static/js/9821.f092a247.chunk.js:2:3034531) at n.value (file:///C:/Users/daddy/AppData/Local/Programs/GDevelop/resources/app.asar/www/static/js/250.bfadc12b.chunk.js:1:1380587) at n.value (file:///C:/Users/daddy/AppData/Local/Programs/GDevelop/resources/app.asar/www/static/js/250.bfadc12b.chunk.js:1:1380008) at ds (file:///C:/Users/daddy/AppData/Local/Programs/GDevelop/resources/app.asar/www/static/js/main.9f9ceb3e.js:2:501156) at Fu (file:///C:/Users...

Additional component context

in n
in t
in Unknown
in div
in div
in Unknown
in Measure
in zk
in ow
in div
in div
in t
in div
in t
in n
in ForwardRef
in div
in l
in n
in n
in t
in Unknown
in dM
in div
in n
in Ga
in div
in jO
in Unknown
in Ke
in f
in u
in v
in m
in j
in h
in h
in Z
in d
in X
in n
in t
in ge
in n
in We
in et
in t
in Unknown
in Unknown
in v
in pt
in t
in r
in n
in u
in l
in n
in Dr...
ClementPasteau commented 11 months ago

Same issue as #5941

It's an error being thrown by the WebGLRenderer of Three.js https://github.com/mrdoob/three.js/blob/8709cbf8fb4ed2719e60e73bce43752efde13b81/src/renderers/WebGLRenderer.js#L279

It happens when the WebGLRenderer is initialized with the canvas in the InstancesEditor: https://github.com/4ian/GDevelop/blob/master/newIDE/app/src/InstancesEditor/index.js#L178

Unfortunately no more details about the error.

@daddywookie Do you always see this error when opening the project now? If so, are you able to download your project, zip it, and send it to hello@gdevelop.io so we can have a look?