Crash on OSL "getmessage" #80019

Closed
opened 2020-08-22 18:46:41 +02:00 by Ilja Razinkov · 6 comments

Operating system: MacOs Catalina

Blender Version
Broken: Blender 2.91.0 Alpha, August 21, 23:30:20- a1f54be042
Worked: 2.83

I have a scene where with heavy OSL use (materials with script) which was working nice in 2.83, but occasionally crashing blender in 2.91
I managed to track problem to script with raycasts, but failed to create small piece to reproduce this crash, on light scenes this works OK.
But on particular heavy scene crash is frequent //

There is a crash log from system, seems something related to OSL get message stuff blender_crash.txt
Hope this helps

Thread 14:
0   org.blenderfoundation.blender 	0x0000000106c1c0ec ccl::set_attribute_float(float*, OpenImageIO_v2_1::TypeDesc, bool, void*) + 124
1   org.blenderfoundation.blender 	0x0000000106bd4a09 ccl::OSLRenderServices::get_object_standard_attribute(ccl::KernelGlobals*, ccl::ShaderData*, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, bool, void*) + 3705
2   org.blenderfoundation.blender 	0x0000000106bd6a1e ccl::OSLRenderServices::get_attribute(ccl::ShaderData*, bool, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, OpenImageIO_v2_1::ustring, void*) + 606
3   org.blenderfoundation.blender 	0x0000000106c1bd35 ccl::OSLRenderServices::getmessage(OSL_v1_10::ShaderGlobals*, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, void*, bool) + 13653
4   org.blenderfoundation.blender 	0x00000001049e01d8 osl_getmessage + 984
5   ???                           	0x00000001280e9efa 0 + 4967014138
6   ???                           	0xb81f0504e248c788 0 + 13267328545791199112

Thread 15:
0   org.blenderfoundation.blender 	0x0000000106c1bcea ccl::OSLRenderServices::getmessage(OSL_v1_10::ShaderGlobals*, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, void*, bool) + 13578
1   org.blenderfoundation.blender 	0x00000001049e01d8 osl_getmessage + 984
2   ???                           	0x00000001280e9efa 0 + 4967014138
3   ???                           	0xb81f0504e248c788 0 + 13267328545791199112

Thread 16:
0   org.blenderfoundation.blender 	0x0000000106bd8ee5 ccl::get_primitive_attribute(ccl::KernelGlobals*, ccl::ShaderData const*, ccl::OSLGlobals::Attribute const&, OpenImageIO_v2_1::TypeDesc const&, bool, void*) + 8837
1   org.blenderfoundation.blender 	0x0000000106bd6b25 ccl::OSLRenderServices::get_attribute(ccl::ShaderData*, bool, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, OpenImageIO_v2_1::ustring, void*) + 869
2   org.blenderfoundation.blender 	0x0000000106c1bd35 ccl::OSLRenderServices::getmessage(OSL_v1_10::ShaderGlobals*, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, void*, bool) + 13653
3   org.blenderfoundation.blender 	0x00000001049e01d8 osl_getmessage + 984
4   ???                           	0x00000001280e9f62 0 + 4967014242
5   ???                           	0xb81f0504e248c788 0 + 13267328545791199112
Operating system: MacOs Catalina **Blender Version** Broken: Blender 2.91.0 Alpha, August 21, 23:30:20- a1f54be0426e Worked: 2.83 I have a scene where with heavy OSL use (materials with script) which was working nice in 2.83, but occasionally crashing blender in 2.91 I managed to track problem to script with raycasts, but failed to create small piece to reproduce this crash, on light scenes this works OK. But on particular heavy scene crash is frequent // There is a crash log from system, seems something related to OSL get message stuff [blender_crash.txt](https://archive.blender.org/developer/F8803789/blender_crash.txt) Hope this helps ``` Thread 14: 0 org.blenderfoundation.blender 0x0000000106c1c0ec ccl::set_attribute_float(float*, OpenImageIO_v2_1::TypeDesc, bool, void*) + 124 1 org.blenderfoundation.blender 0x0000000106bd4a09 ccl::OSLRenderServices::get_object_standard_attribute(ccl::KernelGlobals*, ccl::ShaderData*, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, bool, void*) + 3705 2 org.blenderfoundation.blender 0x0000000106bd6a1e ccl::OSLRenderServices::get_attribute(ccl::ShaderData*, bool, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, OpenImageIO_v2_1::ustring, void*) + 606 3 org.blenderfoundation.blender 0x0000000106c1bd35 ccl::OSLRenderServices::getmessage(OSL_v1_10::ShaderGlobals*, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, void*, bool) + 13653 4 org.blenderfoundation.blender 0x00000001049e01d8 osl_getmessage + 984 5 ??? 0x00000001280e9efa 0 + 4967014138 6 ??? 0xb81f0504e248c788 0 + 13267328545791199112 Thread 15: 0 org.blenderfoundation.blender 0x0000000106c1bcea ccl::OSLRenderServices::getmessage(OSL_v1_10::ShaderGlobals*, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, void*, bool) + 13578 1 org.blenderfoundation.blender 0x00000001049e01d8 osl_getmessage + 984 2 ??? 0x00000001280e9efa 0 + 4967014138 3 ??? 0xb81f0504e248c788 0 + 13267328545791199112 Thread 16: 0 org.blenderfoundation.blender 0x0000000106bd8ee5 ccl::get_primitive_attribute(ccl::KernelGlobals*, ccl::ShaderData const*, ccl::OSLGlobals::Attribute const&, OpenImageIO_v2_1::TypeDesc const&, bool, void*) + 8837 1 org.blenderfoundation.blender 0x0000000106bd6b25 ccl::OSLRenderServices::get_attribute(ccl::ShaderData*, bool, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, OpenImageIO_v2_1::ustring, void*) + 869 2 org.blenderfoundation.blender 0x0000000106c1bd35 ccl::OSLRenderServices::getmessage(OSL_v1_10::ShaderGlobals*, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::ustring, OpenImageIO_v2_1::TypeDesc, void*, bool) + 13653 3 org.blenderfoundation.blender 0x00000001049e01d8 osl_getmessage + 984 4 ??? 0x00000001280e9f62 0 + 4967014242 5 ??? 0xb81f0504e248c788 0 + 13267328545791199112 ```
Author

Added subscriber: @IPv6

Added subscriber: @IPv6
Author

by the way, i`m willing to help with such crashes, since i know it is really hard to track multythreading stuff down...
i have several random crashes in specific places (when localizing materials from library, for example) which reproducible on some scenes, but not always

Will it help if i will build debug version of blender and catch crashes from debugger? Will full xcode dump of such crashes help you?

by the way, i`m willing to help with such crashes, since i know it is really hard to track multythreading stuff down... i have several random crashes in specific places (when localizing materials from library, for example) which reproducible on some scenes, but not always Will it help if i will build debug version of blender and catch crashes from debugger? Will full xcode dump of such crashes help you?
Author

Another thing to note - this always happens EXACTLY at the start of render of view_layer with sayed osl script. never in the middle of render, just at start.
seems like during/right after object synchronization

Another thing to note - this always happens EXACTLY at the start of render of view_layer with sayed osl script. never in the middle of render, just at start. seems like during/right after object synchronization

Closed as duplicate of #79819

Closed as duplicate of #79819

Added subscriber: @dfelinto

Added subscriber: @dfelinto

A patch is coming for this, but merging into existing report meanwhile.

A patch is coming for this, but merging into existing report meanwhile.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 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: blender/blender#80019
No description provided.