-
Notifications
You must be signed in to change notification settings - Fork 38
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
Plugin don't work under Blender 2.9 - Apple Silicon M1 Version #183
Comments
Hey @miarchimi, Thanks for the report. I'll look into it this afternoon. Two things to check:
If either of those solves it let me know! |
Hey
I have installed the latest Silicon (M1) Blender version 2.93.4. All plugins are deactivated except for the standard and the plugin "Measurelt_ARCH 0.4.7" is installed. If I now want to activate the plugin, Blender immediately crashes. The plugin apparently causes problems with the Apple M1 version. You may also have an Apple M1 computer to test this out.
Greetings
Michel
… Am 13.09.2021 um 16:40 schrieb kevancress ***@***.***>:
Hey @miarchimi <https://github.com/miarchimi>,
Thanks for the report. I'll look into it this afternoon.
Two things to check:
I've found the most stable configuration is to be running the latest development version of MeasureIt_ARCH with Blender 2.93 or higher. There were some changes in blender API between 2.92 and 2.93 that may cause issues on versions 2.92 and lower
Based on the error message above, there could be a conflict with another add-on, try disabling your other addons, and then re-enabling MeasureIt_ARCH. That might fix the issue.
If either of those solves it let me know!
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#183 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADZDIX6UGSRTYFSXRZBL3ATUBYEPJANCNFSM5D4I6KBA>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Here the generated Python error log after trying to activate the plugin. This log is from the lates developer version version, here form GitHub Python backtraceFile "/Users/xy/Library/Application Support/Blender/2.93/scripts/addons/MeasureIt_ARCH-development/measureit_arch_geometry.py", line 93 in |
Hey @miarchimi Thanks for posting the backtrace, that's really helpful. Best I can tell the crash is happening when Blender is trying to register the custom point shader I'm using in the add-on. I'll do a quick once over of the shader code and see what might be causing the issue, I'd had some issues early on with the glsl shader code preforming oddly on Mac's and it makes sense that the M1 would have its own set of challenges in this area. If you get a chance could you try running blender in gpu debug mode and try enabling the addon, this should give a more detailed log about what in the shader is causing the crash. you'll have to start blender from the terminal https://docs.blender.org/manual/en/latest/advanced/command_line/launch/macos.html Thanks!!! |
Hy Kevancress Last login: Sat Sep 18 16:48:19 on ttys001 WARN (gpu.shader): OVERLAY_shader_armature_sphere_397 FragShader: WARN (gpu.debug): source/blender/gpu/opengl/gl_debug.cc:177 init_gl_callbacks: Failed to hook OpenGL debug callback. Use fallback debug layer. Blender 2.93.4, Commit date: 2021-08-31 09:23, Hash xybpy.data.window_managers["WinMan"].addon_search = "mea" # Property backtrace0 Blender 0x000000010ba47ec4 BLI_system_backtrace + 56 Python backtraceFile "/Users/xy/Library/Application Support/Blender/2.93/scripts/addons/MeasureIt_ARCH-development/measureit_arch_geometry.py", line 93 in |
I have an idea for the next version you could integrate at a future Version. A dynamic plan border for different paper formats as well as an orthographic camera with automatic correct settings to render a plan in correctly scale dimensions, e.g. 1:50, etc., and then this image could be printed true to scale. |
Thanks for the logs that helps a lot! Looks like I had a couple of places in my shader code that were implicitly casting int's to floats, which I think was the source of the problem! can you give the latest development version a try and let me know if it works? I like the Dynamic plan border idea, sounds great for making title blocks that adjust to fit a given paper size. The view settings in MeasureIt_ARCH do already have a paper size & scale setting for setting up true to scale drawing though! |
Sadly it still does not work ... Last login: Sun Sep 19 19:11:01 on ttys000 WARN (gpu.shader): OVERLAY_shader_armature_sphere_397 FragShader: WARN (gpu.debug): source/blender/gpu/opengl/gl_debug.cc:177 init_gl_callbacks: Failed to hook OpenGL debug callback. Use fallback debug layer. WARN (gpu.shader): OVERLAY_shader_armature_sphere_397 FragShader: WARN (gpu.debug): source/blender/gpu/opengl/gl_debug.cc:177 init_gl_callbacks: Failed to hook OpenGL debug callback. Use fallback debug layer. Python backtraceFile "/Users/xy/Library/Application Support/Blender/2.93/scripts/addons/MeasureIt_ARCH-development/measureit_arch_geometry.py", line 93 in |
Ahh darn! Looks like it's still crashing at the point shader. I did some more cleanup to the shader code, removing some unnecessary global variables, hopefully that fixes it! If you could download the latest development version and give it a test that would be amazing, much appreciated! (I should really see if I can get an M1 Mac so I can test on my end) |
I test now a little bit the Tool. I think it works stable. Some questions I have:
Thanks so log that I generally works. Greetings Michel |
Hey @miarchimi
I like the idea of the top/bottom left/right checkboxes though. right now the dimension placement always defaults to pointing away from the surface normals of the edge its attached to, (or defaults to top and left if there are no surfaces)
|
@miarchimi Going to close this thread for now and open two more for the feature requests. |
I tested the plugin a little more. I inserted dimension lines and deleted them again. Then the selection was by a empty field from which I wanted to delete. Then an error appeared. Now I have two dimensions in the 3D window, but they no longer appear in the list. So now I have noch chance to delete this measurements any more. Is there a workaround to delete such measurements on an other way? A button that cleans up the arrays would also be good if such unexpected errors occur. |
Hey @miarchimi There is an option to delete all if this happens: It's odd that the dimensions weren't deleted properly the first time, were any error reported when initially deleting the dimensions from the list? |
The error is also displayed if the list empty and you clicked on delete. |
I can install the plugin. But I think, its not full installed.
The Measurement-Settings under Screene-Properties are not visible.
If I click on Add Dimensions > Aligned (with selected edge), I get a error:
line 132, in call ret = _op_cal(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.shade_smooth.poll() failed, context is incorect
The plugin is not working
The text was updated successfully, but these errors were encountered: