I have bumped into a random issue with my game. It's a 2D game with a bullet that I want to emit light as it travels across the screen. When it works it look good and I like it. But randomly it doesn't light up. I used to instance the bullet and I'd have the issue where some bullets would be lit and others wouldn't. I thought, well, maybe it's because I'm instancing the scene, so I tried adding several bullets off-screen and moving them onscreen and apply force to them, and when done moving instead of issuing a queue_free() I just stop their momentum and move them back off screen. But alas, the problem remains although with one difference. Now all of the bullets either work or they don't until you restart the program and you then have a chance that they will either work or not. I'm not sure if I'm doing anything wrong or if this is a bug.
I've tried this on a couple different computers. The OS I'm developing on is MacOS. I haven't tried on Linux or Windows yet. Another thing, I tried the current Stable build (2.1.1 and a Development build 2.2 Alpha) I am experiencing the same behavior on both Godot versions.
One more thing to note, my player character has a Light2d as well, but it's set to "Mask" mode, not "Add" like the bullet. The Light2d on the player always works I've never had it fail yet. So could it be an issue in the "Add" mode?
OK it's not "Add" mode, Light2d is randomly not working even with my bullets set to "Mask" mode.
-- Update --
So I decided to try to duplicate the problem outside of my game with a simple test app. No scripting just what you see for nodes, I made a couple images for the lighting textures. I have a simple sprite to act as the background. Another sprite with a light2d set to mask. And finally another sprite with a light2d set to "add". After restarting the app about 10 times or so I was able to show the "add" mode light2d not working, same bug duplicated without any code nothing moving nothing new being added to the scene and only a couple light2ds on the screen.