replaceMesh() Crashes BGE When Used on a Parented Object #40111

Closed
opened 2014-05-09 17:17:52 +02:00 by solarlune · 10 comments

System Information
Windows 7 64-bit, AMD Radeon 7700

Blender Version

Broken: Blender 2.7 362b25b3 5/4/14

Short description of error

If you use replaceMesh() on an object that is parented to another object, the game engine crashes when closing.

It looks like it might be an issue regarding object references. If replaceMesh is called once, then the child object's mesh is replaced correctly. If it's called several times (over several children, for example), then the parent gets destroyed entirely...?

I'm also having an issue in which running replaceMesh on several different children crashes the engine when starting the engine, and not just when stopping, but I haven't replicated it in the example. I'm assuming it's the same issue.

I would guess this crash might be related to this issue which should be fixed, though it's just a guess because of the similar problems: https://developer.blender.org/T38170

The .crash.txt file doesn't contain any useful information other than the Blender version.

Exact steps for others to reproduce the error

Just press P to start the engine and see the planes' meshes be replaced with pyramids (correct), and then have Blender crash on closing (incorrect, haha).

ReplacemeshCrash.blend

**System Information** Windows 7 64-bit, AMD Radeon 7700 **Blender Version** Broken: Blender 2.7 362b25b3 5/4/14 **Short description of error** If you use replaceMesh() on an object that is parented to another object, the game engine crashes when closing. It looks like it might be an issue regarding object references. If replaceMesh is called once, then the child object's mesh is replaced correctly. If it's called several times (over several children, for example), then the parent gets destroyed entirely...? I'm also having an issue in which running replaceMesh on several different children crashes the engine when *starting* the engine, and not just when stopping, but I haven't replicated it in the example. I'm assuming it's the same issue. I would guess this crash might be related to this issue which should be fixed, though it's just a guess because of the similar problems: https://developer.blender.org/T38170 The .crash.txt file doesn't contain any useful information other than the Blender version. **Exact steps for others to reproduce the error** Just press P to start the engine and see the planes' meshes be replaced with pyramids (correct), and then have Blender crash on closing (incorrect, haha). [ReplacemeshCrash.blend](https://archive.blender.org/developer/F88004/ReplacemeshCrash.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @solarlune

Added subscriber: @solarlune
Mitchell Stokes was assigned by Bastien Montagne 2014-05-11 19:07:19 +02:00

Added subscriber: @mont29

Added subscriber: @mont29

As usual, feel free to reassign/dispatch those bugs.

As usual, feel free to reassign/dispatch those bugs.
Mitchell Stokes removed their assignment 2014-05-12 02:01:56 +02:00

Added subscriber: @Moguri

Added subscriber: @Moguri

Is this a recent issue, or did older versions of Blender also have this issue?

Is this a recent issue, or did older versions of Blender also have this issue?
Author

Sorry about that - this is a recent issue. Blender 2.70a was fine.

Sorry about that - this is a recent issue. Blender 2.70a was fine.

This issue was referenced by 43f3e79cee

This issue was referenced by 43f3e79ceeb92c5373b22fb64fdf2ed9c781d5cd

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit 43f3e79cee.

Closed by commit 43f3e79cee.
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#40111
No description provided.