defold-orthographic/Monarch/Collection factory screens - unloading issues

i’m using monarch, i have 2 screen:

screen A - Homepage

Screen B - proper game (mixture of gui and game objects, that uses the ortographic camera)
image

Screen B is created with a collection factory
image

if i’m in the screen A and i go to screen B everything works.

when i transition from my game (screen B) to screen A using:
monarch.show(hash(“A”), {clear = true })

i get this

`ERROR:SCRIPT: orthographic/camera.lua:695: attempt to index local ‘camera’ (a nil value)
stack traceback:
orthographic/camera.lua:695: in function send_view_projection
orthographic/camera.script:75: in function <orthographic/camera.script:71>

ERROR:SCRIPT: orthographic/camera.lua:296: attempt to index a nil value
stack traceback:
orthographic/camera.lua:296: in function final
orthographic/camera.script:60: in function <orthographic/camera.script:59>`

Since that moment when i go back from screen A to B, the camera works randomly, sometimes it does, sometimes it doesnt.

Am i missing something on how i should handle the camera in a collection that is managed by monarch and uses collection factory?

It seems you need to do something with the camera when the screen disposed

I agree, it does seems i need to dispose the camera, but i can’t find any documentation about it.

i have resolved removing the defold-ortographic extension, and using the native camera.