Blender Media Viewer: MacOS Startup Error #290

Closed
opened 2024-05-03 17:40:05 +02:00 by Francesco Siddi · 6 comments

Hi,

On macOS, Blender 4.2 latest, when choosing New->Blender Media Viewer:

Info: Registering key-config preferences class: 'Prefs', bl_idname 'Blender' has been registered before, unregistering previous
Template Register /Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/__init__.py
Traceback (most recent call last):
  File "/Applications/Blender/4.2.0-alpha/Blender.app/Contents/Resources/4.2/scripts/modules/addon_utils.py", line 388, in enable
    mod = importlib.import_module(module_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/Blender/4.2.0-alpha/Blender.app/Contents/Resources/4.2/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/addons/media_viewer/__init__.py", line 20, in <module>
    from media_viewer import (
  File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/addons/media_viewer/ui.py", line 16, in <module>
    from media_viewer.gpu_ops import MV_OT_render_review_img_editor
  File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/addons/media_viewer/gpu_ops.py", line 35, in <module>
    GP_DRAWER = gpu_opsdata.GPDrawerCustomShader()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/addons/media_viewer/gpu_opsdata.py", line 139, in __init__
    self.shader = gpu.types.GPUShader(gpu_vertex_shader, gpu_fragment_shader)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: Shader Compile Error, see console for more details
Error in bpy.app.handlers.load_post[1]:
Traceback (most recent call last):
  File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/__init__.py", line 113, in handler_load_recent_directory
    bpy.ops.media_viewer.load_recent_directory()
  File "/Applications/Blender/4.2.0-alpha/Blender.app/Contents/Resources/4.2/scripts/modules/bpy/ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: Calling operator "bpy.ops.media_viewer.load_recent_directory" error, could not be found
Error in bpy.app.handlers.load_post[2]:
Traceback (most recent call last):
  File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/__init__.py", line 118, in handler_set_template_defaults
    bpy.ops.media_viewer.set_template_defaults()
  File "/Applications/Blender/4.2.0-alpha/Blender.app/Contents/Resources/4.2/scripts/modules/bpy/ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: Calling operator "bpy.ops.media_viewer.set_template_defaults" error, could not be found

Can anyone repro?

Hi, On macOS, Blender 4.2 latest, when choosing New->Blender Media Viewer: ``` Info: Registering key-config preferences class: 'Prefs', bl_idname 'Blender' has been registered before, unregistering previous Template Register /Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/__init__.py Traceback (most recent call last): File "/Applications/Blender/4.2.0-alpha/Blender.app/Contents/Resources/4.2/scripts/modules/addon_utils.py", line 388, in enable mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/Blender/4.2.0-alpha/Blender.app/Contents/Resources/4.2/python/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/addons/media_viewer/__init__.py", line 20, in <module> from media_viewer import ( File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/addons/media_viewer/ui.py", line 16, in <module> from media_viewer.gpu_ops import MV_OT_render_review_img_editor File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/addons/media_viewer/gpu_ops.py", line 35, in <module> GP_DRAWER = gpu_opsdata.GPDrawerCustomShader() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/addons/media_viewer/gpu_opsdata.py", line 139, in __init__ self.shader = gpu.types.GPUShader(gpu_vertex_shader, gpu_fragment_shader) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Exception: Shader Compile Error, see console for more details Error in bpy.app.handlers.load_post[1]: Traceback (most recent call last): File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/__init__.py", line 113, in handler_load_recent_directory bpy.ops.media_viewer.load_recent_directory() File "/Applications/Blender/4.2.0-alpha/Blender.app/Contents/Resources/4.2/scripts/modules/bpy/ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: Calling operator "bpy.ops.media_viewer.load_recent_directory" error, could not be found Error in bpy.app.handlers.load_post[2]: Traceback (most recent call last): File "/Users/fsiddi/Library/Application Support/Blender/4.2/scripts/startup/bl_app_templates_user/blender_media_viewer/__init__.py", line 118, in handler_set_template_defaults bpy.ops.media_viewer.set_template_defaults() File "/Applications/Blender/4.2.0-alpha/Blender.app/Contents/Resources/4.2/scripts/modules/bpy/ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: Calling operator "bpy.ops.media_viewer.set_template_defaults" error, could not be found ``` Can anyone repro?
Nick Alberelli added the
Kind
Bug
Kind
Studio Request
labels 2024-05-07 20:13:31 +02:00
Member

@ZedDB Do you think you can try and reproduce on a Mac? I was unable to reproduce with the latest 4.2 on my Linux box

Operating system: Linux-6.2.0-39-generic-x86_64-with-glibc2.37 64 Bits, X11 UI
Graphics card: Mesa Intel(R) UHD Graphics 620 (KBL GT2) Intel 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~23.04.1
Blender 4.2.0 Alpha, branch: main, commit date: 2024-05-06 22:51, hash: d584cdbb8afb

@ZedDB Do you think you can try and reproduce on a Mac? I was unable to reproduce with the latest 4.2 on my Linux box Operating system: Linux-6.2.0-39-generic-x86_64-with-glibc2.37 64 Bits, X11 UI Graphics card: Mesa Intel(R) UHD Graphics 620 (KBL GT2) Intel 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~23.04.1 Blender 4.2.0 Alpha, branch: main, commit date: 2024-05-06 22:51, hash: `d584cdbb8afb`
Nick Alberelli changed title from Media Viewer startup error to Blender Media Viewer: MacOS Startup Error 2024-05-07 20:15:33 +02:00

I don't have a mac to test this out on either...
Can't reproduce on Linux either.

I don't have a mac to test this out on either... Can't reproduce on Linux either.

Got a mac provisioned to me now. I'll see if I can reproduce.

Got a mac provisioned to me now. I'll see if I can reproduce.

I can not reproduce this issue on the Mac I have.

I can not reproduce this issue on the Mac I have.
Author
Owner

Thank you Sebastian.

Thank you Sebastian.
Contributor

@ZedDB @TinyNick running into a similar error on the current release of the addons when activating render_review addon.

Exception in module register(): /Users/main/Blender/episodes/0001/local/scripts/addons/render_review/__init__.py
Traceback (most recent call last):
  File "/Users/main/Blender/episodes/0001/local/blender/darwin/Blender.app/Contents/Resources/4.2/scripts/modules/addon_utils.py", line 462, in enable
    mod.register()
  File "/Users/main/Blender/episodes/0001/local/scripts/addons/render_review/__init__.py", line 72, in register
    draw.register()
  File "/Users/main/Blender/episodes/0001/local/scripts/addons/render_review/draw.py", line 259, in register
    callback_enable()
  File "/Users/main/Blender/episodes/0001/local/scripts/addons/render_review/draw.py", line 229, in callback_enable
    line_drawer = LineDrawer()
                  ^^^^^^^^^^^^
  File "/Users/main/Blender/episodes/0001/local/scripts/addons/render_review/draw.py", line 75, in __init__
    self.shader = gpu.types.GPUShader(gpu_vertex_shader, gpu_fragment_shader)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: Shader Compile Error, see console for more details

I saw 03253b88ab, when i test the latest main branch I get that same error in blender_kitsu activation. I think a similar change to 2643f1a98b may be needed in https://projects.blender.org/studio/blender-studio-pipeline/src/branch/main/scripts-blender/addons/blender_kitsu/render_review/draw.py

@ZedDB @TinyNick running into a similar error on the current release of the addons when activating render_review addon. ``` Exception in module register(): /Users/main/Blender/episodes/0001/local/scripts/addons/render_review/__init__.py Traceback (most recent call last): File "/Users/main/Blender/episodes/0001/local/blender/darwin/Blender.app/Contents/Resources/4.2/scripts/modules/addon_utils.py", line 462, in enable mod.register() File "/Users/main/Blender/episodes/0001/local/scripts/addons/render_review/__init__.py", line 72, in register draw.register() File "/Users/main/Blender/episodes/0001/local/scripts/addons/render_review/draw.py", line 259, in register callback_enable() File "/Users/main/Blender/episodes/0001/local/scripts/addons/render_review/draw.py", line 229, in callback_enable line_drawer = LineDrawer() ^^^^^^^^^^^^ File "/Users/main/Blender/episodes/0001/local/scripts/addons/render_review/draw.py", line 75, in __init__ self.shader = gpu.types.GPUShader(gpu_vertex_shader, gpu_fragment_shader) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Exception: Shader Compile Error, see console for more details ``` I saw https://projects.blender.org/studio/blender-studio-pipeline/commit/03253b88ab59def87aa184bfe14dec61dac4c578, when i test the latest main branch I get that same error in blender_kitsu activation. I think a similar change to https://projects.blender.org/studio/blender-studio-pipeline/commit/2643f1a98ba288055aea4ae43644457a9c331d48 may be needed in https://projects.blender.org/studio/blender-studio-pipeline/src/branch/main/scripts-blender/addons/blender_kitsu/render_review/draw.py
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-tools#290
No description provided.