Repeatedly alternating LibLoad and LibFree with delays causes random crashes #35845

Closed
opened 2013-06-23 04:50:04 +02:00 by Kevin Ednalino · 11 comments

Category: Python

%%%LibLoad/LibFree appears unstable on Arch Linux 64-bit. Test.blend eventually crashes, randomly. Sometimes with a segfault; sometimes it fails to do a core dump. Various errors include corrupted double-linked list, invalid pointers. Sometimes it simply just hangs and stops responding.

Test contains a Cube named 'existing_cube' and a Camera, all on 'Scene'. Cube2 contains only a single cube named 'test_cube' on 'Scene'. Place both blends in the same directory. Open test.blend. Hit 'P'. It will repeatedly call LibLoad and LibFree alternating with a delay in between. Console prints out indication of each iteration.

Test.blend appears to run on Windows 7 Ultimate 64-bit SP 1 without problems indefinitely on:

CPU: Intel Core i5-3317U CPU @ 1.70 Ghz 1.70 Ghz
RAM: 6 GB
GFX: Intel HD Graphics 4000, NVIDIA GeForce 610M Driver.
OS: Windows 7 Ultimate 64-bit Service Pack 1
Drivers: Intel 4.0.0 - Build 9.18.10.3071, GeForce 310.90 (Bumblebee, Blender uses Intel GPU)
Blender: 2.67b 2.67.0 r57141

It eventually fails on Linux system:

CPU: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz [Dual-CPU| 2 x Quad-core = 8 cores @ 2.33GHz]
RAM: 9.75 GB
GFX: NVIDIA Corporation GT218 [GeForce 210] (rev a2) 1GB 64-bit DDR3 PCI Express 2.0 x16
OS: Linux version 3.9.7-1-ck (squishy@ease) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT
Drivers: nouveau-dri 9.1.3-2, xf86-video-nouveau 1.0.8-1
Blender: 2.67b 2.67.1 r57180

Attached files are for Linux system.%%%

**Category**: Python %%%LibLoad/LibFree appears unstable on Arch Linux 64-bit. Test.blend eventually crashes, randomly. Sometimes with a segfault; sometimes it fails to do a core dump. Various errors include corrupted double-linked list, invalid pointers. Sometimes it simply just hangs and stops responding. Test contains a Cube named 'existing_cube' and a Camera, all on 'Scene'. Cube2 contains only a single cube named 'test_cube' on 'Scene'. Place both blends in the same directory. Open test.blend. Hit 'P'. It will repeatedly call LibLoad and LibFree alternating with a delay in between. Console prints out indication of each iteration. Test.blend appears to run on Windows 7 Ultimate 64-bit SP 1 without problems indefinitely on: CPU: Intel Core i5-3317U CPU @ 1.70 Ghz 1.70 Ghz RAM: 6 GB GFX: Intel HD Graphics 4000, NVIDIA GeForce 610M Driver. OS: Windows 7 Ultimate 64-bit Service Pack 1 Drivers: Intel 4.0.0 - Build 9.18.10.3071, GeForce 310.90 (Bumblebee, Blender uses Intel GPU) Blender: 2.67b 2.67.0 r57141 It eventually fails on Linux system: CPU: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz [Dual-CPU| 2 x Quad-core = 8 cores @ 2.33GHz] RAM: 9.75 GB GFX: NVIDIA Corporation GT218 [GeForce 210] (rev a2) 1GB 64-bit DDR3 PCI Express 2.0 x16 OS: Linux version 3.9.7-1-ck (squishy@ease) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Drivers: nouveau-dri 9.1.3-2, xf86-video-nouveau 1.0.8-1 Blender: 2.67b 2.67.1 r57180 Attached files are for Linux system.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

#40172 was marked as duplicate of this issue

#40172 was marked as duplicate of this issue
Author

%%%Still unstable on Linux in 2.68. Still stable on Windows 7 Ultimate 64-bit in 2.68.%%%

%%%Still unstable on Linux in 2.68. Still stable on Windows 7 Ultimate 64-bit in 2.68.%%%

Added subscriber: @Moguri

Added subscriber: @Moguri

Note to self: this crash is caused by KX_BlenderSceneConverter::FreeBlendFile(). When cleaning up m_meshobjects, there seems to still be a pointer hanging around to the RAS_MeshObject. I believe m_materials and m_polymaterials may have similar issues if materials are LibLoaded.

Note to self: this crash is caused by KX_BlenderSceneConverter::FreeBlendFile(). When cleaning up m_meshobjects, there seems to still be a pointer hanging around to the RAS_MeshObject. I believe m_materials and m_polymaterials may have similar issues if materials are LibLoaded.

Added subscriber: @raco

Added subscriber: @raco

◀ Merged tasks: #40172.

◀ Merged tasks: #40172.

After commit 23b682d594, I only get crashing if the LibLoaded cube does not have a material. I don't have a fix, but a work-around that can be used in the meantime is to make sure all libloaded assets have a material.

After commit 23b682d594, I only get crashing if the LibLoaded cube does not have a material. I don't have a fix, but a work-around that can be used in the meantime is to make sure all libloaded assets have a material.
Author

Ah, awesome! This could probably be marked as resolved. Hmm, is it possible to use a default material if no material exists?

Ah, awesome! This could probably be marked as resolved. Hmm, is it possible to use a default material if no material exists?

Changed status from 'Open' to: 'Duplicate'

Changed status from 'Open' to: 'Duplicate'

✘ Merged into #40199.

✘ Merged into #40199.
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
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: blender/blender#35845
No description provided.