I realized, that the behavior has something to do with rendering the hud (life/mana/stamina bars and the green line, which represents a calculated path - debugging purpose).
I just faced a situation where the entire screen is blackened and those yellow/green stuff is drawn. The entire scene and the entire hud are deleted (the other onscreen logging such as the "SYSTEM RUNTIME" etc. aren't part of the hud).
When toggling those draw-the-path-for-debugging-purpose (I implemented this via shortcut), the entire glitch disappears. Also, when drawing another "debugging thing" (e.g. showing the grid or the collision map), the glitch also disappears. When toggling the system monitor, the entire yellow-red-stuff and the system monitor are flickering.
Well, to be honest, I think thats my graphics driver's fault. When turning parts on/off (e.g. to show grid borders, collision information or lighting) the glitch is shown/hidden
I also had these three parts (grid borders, collision info, path-"lines") in my old project but rewrote them competly. Any suggestions how I can debug
this situation? I'm familar with debugging in general (using gdb) but I don't know where to start here :S
/EDIT: After toggling those settings on and on, the game crashed (Segmentation Fault). So I ran it inside the debugger, seeked another glitch-spot (hard to find but I found one) and repeated it. Then, some reeeally weird stuff happened: not just flickering glitches but also "rolling" horizontal lines (moving randomly up and down). After randomly toggling the settings, it crashed again and the debugger said:
intel_do_flush_locked failed: Invalid argument
[Inferior 1 (process 14407) exited with code 01]
(gdb) bt
No stack.
XD
/EDIT: Now, this message occures also for other programs. E.g. when running totem (video player) it crashes with
intel_do_flush_locked failed: Das Argument ist ungültig (which is the equivalent message in German). I'm gonna restart