Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GL_INVALID_VALUE and GL_INVALID_OPERATION #136

Open
nickmaleki opened this issue Dec 8, 2023 · 3 comments
Open

GL_INVALID_VALUE and GL_INVALID_OPERATION #136

nickmaleki opened this issue Dec 8, 2023 · 3 comments

Comments

@nickmaleki
Copy link

nickmaleki commented Dec 8, 2023

Since upgrading to Panda3D 1.11.0, so I can use M_relative, I am not able to use RenderPipeline. I get the attached error:

[>] RenderPipeline            Finished initialization in 7.786 s, first frame: 3 
DCFile::read of /c/Users/xnick/Downloads/render_pipeline/samples/direct.dc
DCFile::read of /c/Users/xnick/Downloads/render_pipeline/samples/Starcel/sample.dc
[>] RenderPipeline            Took 0.094 s until first frame 
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-LightData
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-ShadowSourceData
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-CommandQueue
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-CellList
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-FrustumLights
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-VisibleLightCount
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-PerCellLightCounts
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-PerCellLights
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-GroupedPerCellLights
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-GroupedPerCellLightsCount
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-PerCellProbes
:display:gsg:glgsg(error): GL_INVALID_VALUE error generated. Invalid image format.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-EnvmapData
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
Assertion failed: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:display:gsg:glgsg(error): Could not load ImgBuffer-ExposureStorage
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. The target of the texture named by <texture> and the target <textarget> do not match.
Traceback (most recent call last):
  File "C:\Panda3D-1.11.0-x64\direct\showbase\ShowBase.py", line 2250, in __igLoop
    self.graphicsEngine.renderFrame()
AssertionError: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
:task(error): Exception occurred in PythonTask igLoop
Traceback (most recent call last):
  File "C:\Users\xnick\Downloads\render_pipeline\samples\Starcel\client.py", line 776, in <module>
    MainApp().run()
  File "C:\Panda3D-1.11.0-x64\direct\showbase\ShowBase.py", line 3440, in run
    self.taskMgr.run()
  File "C:\Panda3D-1.11.0-x64\direct\task\Task.py", line 629, in run
    self.step()
  File "C:\Panda3D-1.11.0-x64\direct\task\Task.py", line 579, in step
    self.mgr.poll()
  File "C:\Panda3D-1.11.0-x64\direct\showbase\ShowBase.py", line 2250, in __igLoop
    self.graphicsEngine.renderFrame()
AssertionError: !gtc->_immutable at line 14583 of C:\Users\xnick\Downloads\panda3d-master (2)\panda3d-master\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
[>] MountManager              Cleaning up .. 

Process finished with exit code 1
@rdb
Copy link
Collaborator

rdb commented Jan 4, 2024

Is gl-immutable-texture-storage set to true in Config.prc?

@nickmaleki
Copy link
Author

in /config/panda3d-config.prc gl-immutable-texture-storage is #t

@rdb
Copy link
Collaborator

rdb commented Jan 23, 2024

This is probably a regression in Panda3D, see panda3d/panda3d#1602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants