Segmentation fault upon entering local view from rendered view #84217

Closed
opened 2020-12-28 17:40:57 +01:00 by Wouter Stomp · 9 comments

System Information
Operating system: Darwin-20.2.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.2.13

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-12-27 21:45, hash: aa64fd69e7
Worked: 2.91.0

Short description of error
With the attached blend file, if you switch to rendered view, select the bottle cap and then press "/" to enter local view, Blender instantly crashes with a segmentation fault. It might be related to parenting somehow, as the same happened with other objects that were parented to the bottle.

Exact steps for others to reproduce the error
Open attached blend file
Switch viewport to rendered view
Select bottle cap
Press "/" to switch to local view
Blender instantly crashes

Wine Bottle crash.blend
Wine bottle crash.txt

**System Information** Operating system: Darwin-20.2.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.2.13 **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-12-27 21:45, hash: `aa64fd69e7` Worked: 2.91.0 **Short description of error** With the attached blend file, if you switch to rendered view, select the bottle cap and then press "/" to enter local view, Blender instantly crashes with a segmentation fault. It might be related to parenting somehow, as the same happened with other objects that were parented to the bottle. **Exact steps for others to reproduce the error** Open attached blend file Switch viewport to rendered view Select bottle cap Press "/" to switch to local view Blender instantly crashes [Wine Bottle crash.blend](https://archive.blender.org/developer/F9534175/Wine_Bottle_crash.blend) [Wine bottle crash.txt](https://archive.blender.org/developer/F9534178/Wine_bottle_crash.txt)
Author

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

#84450 was marked as duplicate of this issue

#84450 was marked as duplicate of this issue

Added subscriber: @rjg

Added subscriber: @rjg

The described steps trigger the kernel_assert(index >= 0 && index < width); in ccl_always_inline const T &fetch(int index) for me.

libc.so.6!__GI_raise(int sig) (/build/glibc-ZN95T4/glibc-2.31/sysdeps/unix/sysv/linux/raise.c:50)
libc.so.6!__GI_abort() (/build/glibc-ZN95T4/glibc-2.31/stdlib/abort.c:79)
libc.so.6!__assert_fail_base(const char * fmt, const char * assertion, const char * file, unsigned int line, const char * function) (/build/glibc-ZN95T4/glibc-2.31/assert/assert.c:92)
libc.so.6!__GI___assert_fail(const char * assertion, const char * file, unsigned int line, const char * function) (/build/glibc-ZN95T4/glibc-2.31/assert/assert.c:101)
ccl::texture<unsigned int>::fetch(int index, ccl::texture<unsigned int> * const this) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernel_compat_cpu.h:77)
ccl::kernel_embree_convert_hit(ccl::Intersection * isect, const RTCHit * hit, const RTCRay * ray, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/bvh/bvh_embree.h:123)
ccl::scene_intersect(ccl::Intersection * isect, const ccl::uint visibility, const ccl::Ray * ray, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/bvh/bvh.h:210)
ccl::kernel_path_scene_intersect(ccl::PathRadiance * L, ccl::Intersection * isect, ccl::Ray * ray, ccl::PathState * state, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernel_path.h:72)
ccl::kernel_path_integrate(ccl::ShaderData * emission_sd, float * buffer, ccl::PathRadiance * L, ccl::Ray * ray, ccl::float3 throughput, ccl::PathState * state, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernel_path.h:533)
ccl::kernel_path_trace(ccl::KernelGlobals * kg, float * buffer, int sample, int x, int y, int offset, int stride) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernel_path.h:692)
ccl::kernel_cpu_path_trace(ccl::KernelGlobals * kg, float * buffer, int sample, int x, int y, int offset, int stride) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernels/cpu/kernel_cpu_impl.h:96)
ccl::CPUDevice::render(ccl::CPUDevice * const this, ccl::DeviceTask & task, ccl::RenderTile & tile, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/device/device_cpu.cpp:971)
ccl::CPUDevice::thread_render(ccl::CPUDevice * const this, ccl::DeviceTask & task) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/device/device_cpu.cpp:1301)
ccl::CPUDevice::thread_run(ccl::CPUDevice * const this, ccl::DeviceTask & task) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/device/device_cpu.cpp:577)
ccl::CPUDevice::task_add(ccl::DeviceTask&)::{lambda()#1}::operator()() const(const ccl::CPUDevice::<lambda()> * const __closure) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/device/device_cpu.cpp:1461)
std::_Function_handler<void (), ccl::CPUDevice::task_add(ccl::DeviceTask&)::{lambda()#1}>::_M_invoke(std::_Any_data const&)(const std::_Any_data & __functor) (/usr/include/c++/9/bits/std_function.h:300)
std::function<void ()>::operator()() const(const std::function<void()> * const this) (/usr/include/c++/9/bits/std_function.h:688)
tbb::internal::function_task<std::function<void ()> >::execute()(tbb::internal::function_task<std::function<void()> > * const this) (/home/dev/01-data/01-git/blender-git/lib/linux_centos7_x86_64/tbb/include/tbb/task.h:1048)
tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (Unknown Source:0)
tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) (Unknown Source:0)
The described steps trigger the `kernel_assert(index >= 0 && index < width);` in `ccl_always_inline const T &fetch(int index)` for me. ```lines libc.so.6!__GI_raise(int sig) (/build/glibc-ZN95T4/glibc-2.31/sysdeps/unix/sysv/linux/raise.c:50) libc.so.6!__GI_abort() (/build/glibc-ZN95T4/glibc-2.31/stdlib/abort.c:79) libc.so.6!__assert_fail_base(const char * fmt, const char * assertion, const char * file, unsigned int line, const char * function) (/build/glibc-ZN95T4/glibc-2.31/assert/assert.c:92) libc.so.6!__GI___assert_fail(const char * assertion, const char * file, unsigned int line, const char * function) (/build/glibc-ZN95T4/glibc-2.31/assert/assert.c:101) ccl::texture<unsigned int>::fetch(int index, ccl::texture<unsigned int> * const this) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernel_compat_cpu.h:77) ccl::kernel_embree_convert_hit(ccl::Intersection * isect, const RTCHit * hit, const RTCRay * ray, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/bvh/bvh_embree.h:123) ccl::scene_intersect(ccl::Intersection * isect, const ccl::uint visibility, const ccl::Ray * ray, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/bvh/bvh.h:210) ccl::kernel_path_scene_intersect(ccl::PathRadiance * L, ccl::Intersection * isect, ccl::Ray * ray, ccl::PathState * state, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernel_path.h:72) ccl::kernel_path_integrate(ccl::ShaderData * emission_sd, float * buffer, ccl::PathRadiance * L, ccl::Ray * ray, ccl::float3 throughput, ccl::PathState * state, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernel_path.h:533) ccl::kernel_path_trace(ccl::KernelGlobals * kg, float * buffer, int sample, int x, int y, int offset, int stride) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernel_path.h:692) ccl::kernel_cpu_path_trace(ccl::KernelGlobals * kg, float * buffer, int sample, int x, int y, int offset, int stride) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/kernel/kernels/cpu/kernel_cpu_impl.h:96) ccl::CPUDevice::render(ccl::CPUDevice * const this, ccl::DeviceTask & task, ccl::RenderTile & tile, ccl::KernelGlobals * kg) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/device/device_cpu.cpp:971) ccl::CPUDevice::thread_render(ccl::CPUDevice * const this, ccl::DeviceTask & task) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/device/device_cpu.cpp:1301) ccl::CPUDevice::thread_run(ccl::CPUDevice * const this, ccl::DeviceTask & task) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/device/device_cpu.cpp:577) ccl::CPUDevice::task_add(ccl::DeviceTask&)::{lambda()#1}::operator()() const(const ccl::CPUDevice::<lambda()> * const __closure) (/home/dev/01-data/01-git/blender-git/blender/intern/cycles/device/device_cpu.cpp:1461) std::_Function_handler<void (), ccl::CPUDevice::task_add(ccl::DeviceTask&)::{lambda()#1}>::_M_invoke(std::_Any_data const&)(const std::_Any_data & __functor) (/usr/include/c++/9/bits/std_function.h:300) std::function<void ()>::operator()() const(const std::function<void()> * const this) (/usr/include/c++/9/bits/std_function.h:688) tbb::internal::function_task<std::function<void ()> >::execute()(tbb::internal::function_task<std::function<void()> > * const this) (/home/dev/01-data/01-git/blender-git/lib/linux_centos7_x86_64/tbb/include/tbb/task.h:1048) tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (Unknown Source:0) tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) (Unknown Source:0) ```

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @ChrisGraz

Added subscriber: @ChrisGraz

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Robert Guetzkow self-assigned this 2021-01-09 14:43:54 +01:00

This issue was fixed by 166c0db3f9 as well.

This issue was fixed by 166c0db3f9 as well.
Author

I can confirm it has been fixed, thanks.

I can confirm it has been fixed, thanks.
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
3 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#84217
No description provided.