Black screen Issue on 1.21.5 and Debug Log
Hey, i had written in Discord, and i would add here the Informations for better Issue handling
I had tested and debugged a lot to get Waterframes to work, Watervision is working, but on the Waterframes ther might be an issue on product build.
On TV, and other screens, there is the BLACK SCREEN Issue, the video is loaded right on the Screen, the sound is given, but the frames are not there, the Frames are only shown a Black screen and only Audio.
I had tested with the debugging a lot and had seen, that on DEV build are the Frames working right, only on product build there is the isse.
On debuggin i had seen, that the DEV build working on an own Thread and use all frames on this thread, but on product build, it does switch
THis text i had written in the discord, to give the right hints there (translated with AI for better understanding)
On my testing, I think I finally found what’s going on:
In DevRun, all frames are rendered on the same OpenGL thread/context, so WaterMedia’s GL output works fine.
But in the built mod (ProjectRun), Minecraft uses a different OpenGL context / FBO stack for rendering, so WaterMedia’s renderer can’t access it — that’s why we get:
[WaterFrames][DEBUG] preRender sync failed: org.lwjgl.opengl.GLException: No OpenGL context found
[RendererWrapper][WARN] Invalid texture ID: 0
The result:
🟢 Audio works (VLC decoding still runs),
🔴 Video stays black (no valid GL context for frame upload).
I tried adding a WaterMedia bootstrap to share the context with Minecraft, but it still fails in ProductRun.
So basically — DevRun shares the GL thread,
ProjectRun isolates it,
and that’s why WaterMedia can’t render frames in the final build.
Here the Youtube Videos: https://www.youtube.com/watch?v=7yual754pF8 https://youtu.be/MQaI-wNtpVk
I had also tried to figure out, why it is for other peoples showing, when there is an block in it, but i had not get the informations from the people in the Discord
Had also tried to rebuild the issue, if there is an block behind the screen, but for me it does not show
In discord the Discussion is start from here https://discord.com/channels/486853064284831744/1204984977876586506/1430959314562056407
Here my latest.log file from my test, attention, 5mb big latest.log