Light Obstacle Error

Hello. There seems to be a huge problem with the Light Obstacle Behavior. When you use Lights in your Scene and you add the Behavior to an object, a error message pops up:
"A crash or error happened in the game.
If you’re using JavaScript, verify your code. Otherwise, this might be an issue with GDevelop - consider reporting a bug. Full error is: Cannot read properties of undefined (reading ‘vertex’)

TypeError: Cannot read properties of undefined (reading ‘vertex’)
at f.computeLightVertices (file:///var/folders/b/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/Extensions/Lighting/lightruntimeobject-pixi-renderer.js:1:7996)
at f.updateBuffers (file:///var/folders/b/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/Extensions/Lighting/lightruntimeobject-pixi-renderer.js:1:4371)
at f.ensureUpToDate (file:///var/folders/b_/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/Extensions/Lighting/lightruntimeobject-pixi-renderer.js:1:1480)
at f.updateDebugMode (file:///var/folders/b_/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/Extensions/Lighting/lightruntimeobject-pixi-renderer.js:1:3034)
at new f (file:///var/folders/b_/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/Extensions/Lighting/lightruntimeobject-pixi-renderer.js:1:801)
at new o (file:///var/folders/b_/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/Extensions/Lighting/lightruntimeobject.js:1:328)
at createObject (file:///var/folders/b_/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/RuntimeInstanceContainer.js:1:5526)
at Object.g.doCreateObjectOnScene (file:///var/folders/b_/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/events-tools/objecttools.js:1:4270)
at Object.g.createObjectOnScene (file:///var/folders/b_/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/events-tools/objecttools.js:1:4493)
at Object.gdjs.SpielSzeneCode.eventsList10 (file:///var/folders/b_/fdhm834j63l1y3knvx0ggg000000gp/T/GDTMP-502/preview/code0.js:846:24)"

Could someone please find out why this is happening? I am using the newest Version of GDevelop and i am using a MacBook Pro with 2.2 GHz 6-Core Intel Core i7 and MacOs 14.2.1

Hi, are your light obstacles using the automatic collision mask? If yes, can you try using a manual one.

1 Like

Thanks. I will try that.