Error with Abnormal
Closed this issue · 20 comments
I just pushed a commit that may fix it. It is hard for me to tell since I am not on a Mac.
Thank you for your help!! :)
I can reproduce the error in 2.83 and 2.93
Abnormals_Error_Test_Project_Blender2.93_MACOSX_10.13.6.blend.zip
Some shader compile error on mac?
> Traceback (most recent call last):
> File "/Users/xxxx/Library/Application Support/Blender/2.83/scripts/addons/Abnormal-master/operators_modal.py", line 242, in invoke
> self._object.matrix_world.normalized())
> File "/Users/xxxx/Library/Application Support/Blender/2.83/scripts/addons/Abnormal-master/classes.py", line 12, in __init__
> self.create_shader()
> File "/Users/xxxx/Library/Application Support/Blender/2.83/scripts/addons/Abnormal-master/classes.py", line 96, in create_shader
> self.shader = gpu.types.GPUShader(vertex_shader, fragment_shader)
> Exception: Shader Compile Error, see console for more details
>
> location: <unknown location>:-1
>
>
I can reproduce the error in 2.83 and 2.93
Abnormals_Error_Test_Project_Blender2.93_MACOSX_10.13.6.blend.zip
Some shader compile error on mac?
> Traceback (most recent call last): > File "/Users/xxxx/Library/Application Support/Blender/2.83/scripts/addons/Abnormal-master/operators_modal.py", line 242, in invoke > self._object.matrix_world.normalized()) > File "/Users/xxxx/Library/Application Support/Blender/2.83/scripts/addons/Abnormal-master/classes.py", line 12, in __init__ > self.create_shader() > File "/Users/xxxx/Library/Application Support/Blender/2.83/scripts/addons/Abnormal-master/classes.py", line 96, in create_shader > self.shader = gpu.types.GPUShader(vertex_shader, fragment_shader) > Exception: Shader Compile Error, see console for more details > > location: <unknown location>:-1 > >
Can you share the screenshot of the full system console error? There should be more info above that.
Yes I believe this is a Mac specific issue. I will work on a version with a optional different draw system for macs.
Apologies I am very new to Blender ( few months in )
bpy.context.area.ui_type = 'VIEW_3D' bpy.ops.abnormal.normal_editor_modal()
Is what appears above the error message.
The mac has nothing there, I had to launch a terminal at the same time as the Blender application according to this article.
https://blender.stackexchange.com/questions/102860/how-to-open-system-console-to-get-output-from-blender-on-mac-os-10
A naming convention of the shader appears to be one of the errors.
Last` login: Sun Aug 1 08:52:56 on ttys000
-bash: KDE: command not found
/Applications/Blender\ 2.93.app/Contents/MacOS/Blender ; exit;
ds-mbp-2k15B:~ davidsmith$ /Applications/Blender\ 2.93.app/Contents/MacOS/Blender ; exit;
Read prefs: /Users/davidsmith/Library/Application Support/Blender/2.93/config/userpref.blend
register_class(...):
Warning: 'object.custom_menu' does not contain '_MT_' with prefix and suffix
register_class(...):
Warning: 'object.custom_panel' does not contain '_PT_' with prefix and suffix
register_class(...):
Warning: 'object.bygenmodify' does not contain '_PT_' with prefix and suffix
register_class(...):
Warning: 'object.bygentools' does not contain '_PT_' with prefix and suffix
register_class(...):
Warning: 'mwse_pie' does not contain '_MT_' with prefix and suffix
register_class(...):
Warning: 'mws_tool_pie' does not contain '_MT_' with prefix and suffix
register_class(...):
Warning: 'mwse_pie' does not contain '_MT_' with prefix and suffix
register_class(...):
Warning: 'mws_tool_pie' does not contain '_MT_' with prefix and suffix
register_class(...):
Warning: 'SoftMod_PT_Panel' doesn't have upper case alpha-numeric prefix
Imported mesh_maze.py
register_class(...):
Warning: 'object_PT_Panel' doesn't have upper case alpha-numeric prefix
Read blend: /Users/davidsmith/Desktop/Abnormals_Error_Test_Project_Blender2.93_MACOSX_10.13.6.blend
ERROR (gpu.shader): pyGPUShader FragShader:
|
| Error: Identifier name 'gl_FragColor' cannot start with 'gl_'
|
| Error: Use of undeclared identifier 'gl_FragColor'
Python: Traceback (most recent call last):
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/operators_modal.py", line 241, in invoke
self._container = ABNContainer(
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/classes.py", line 12, in __init__
self.create_shader()
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/classes.py", line 96, in create_shader
self.shader = gpu.types.GPUShader(vertex_shader, fragment_shader)
Exception: Shader Compile Error, see console for more details
location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/operators_modal.py", line 241, in invoke
self._container = ABNContainer(
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/classes.py", line 12, in __init__
self.create_shader()
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/classes.py", line 96, in create_shader
self.shader = gpu.types.GPUShader(vertex_shader, fragment_shader)
Exception: Shader Compile Error, see console for more details
location: <unknown location>:-1
Alright, it seems gl_FragColor is no longer supported in newer OpenGL versions which I guess Mac is using the newer version.
Try the new one and let me know if that works.
Ok that results in this data
ERROR (gpu.shader): pyGPUShader FragShader:
|
| Error: Use of undeclared identifier 'gl_FragColor'
Python: Traceback (most recent call last):
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/operators_modal.py", line 241, in invoke
self._container = ABNContainer(
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/classes.py", line 12, in __init__
self.create_shader()
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/classes.py", line 95, in create_shader
self.shader = gpu.types.GPUShader(vertex_shader, fragment_shader)
Exception: Shader Compile Error, see console for more details
location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/operators_modal.py", line 241, in invoke
self._container = ABNContainer(
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/classes.py", line 12, in __init__
self.create_shader()
File "/Users/davidsmith/Library/Application Support/Blender/2.93/scripts/addons/Abnormal-master/classes.py", line 95, in create_shader
self.shader = gpu.types.GPUShader(vertex_shader, fragment_shader)
Exception: Shader Compile Error, see console for more details
location: <unknown location>:-1
Assuming it has something to do with that outdated fragcolor name
https://stackoverflow.com/questions/26695253/when-switching-to-glsl-300-met-the-following-error
Yeah that is what I thought I just changed.
There should no longer be any gl_FragColor being used.
I tried to setup a Mac virtual machine, but it won't open blender.
I just commited another setup that I use in another addon so give it another try with a clean install of abnormal.
Did you try sosumi in a snap or a disc image?
Are you suggesting addons can clash?
* [x] Testing Blender 2.93 with solo addon abnormal only installed - FAIL ![Screen Shot 2021-08-03 at 8 12 50 am](https://user-images.githubusercontent.com/47682220/127930366-927bf68d-28ac-446e-9fa9-ee6e9f1bbb2d.png)
No, I mean that sometimes people can mess up the install of a new version of the addon, but still have the old version messing things up. So doing a clean install of Abnormal by manually deleting its folder can help.
I will look into sosumi.
no sweat.