Blender crash when physics createConstraint #41570
Labels
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
12 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#41570
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 8.1 intel 4200
Blender Version
Broken: 2.71
Short description of error
Blender crash when physics createConstraint
Exact steps for others to reproduce the error
test_bug_270.blend
Open this file and run game engine.
This line:
vehicle = PC.createConstraint(G.car.getPhysicsId(),0,11)
make crash.
Changed status to: 'Open'
Added subscriber: @marcino15
#43038 was marked as duplicate of this issue
#43176 was marked as duplicate of this issue
Added subscriber: @Ace_Dragon
Can you try to test this with a recent buildbot build? I ask because I opened two files of my own making use of physics constraints on my machine (one making use of the vehicle template and the other being just generic constraint creation) and there were no crashes.
Added subscriber: @JorgeBernalMartinez
I have checked the example and 2.69, 2.71 and current master work OK. In 2.70 the vehicle had a weird behaviour. But in any case blender didn't crash.
Could you check the file in current master (2.72RC) to test if the file works right for you now?
Added subscriber: @rahul
Added subscriber: @kohout.markus
I make several tests with Blender 2.72b:
Machine1: Windows 7 64 and Linux, Radeon 5670
Machine2: Windows 8.1 intel 4200
On machine1 evething is OK (both systems), but on machine2 Blender still crashing.
Added subscriber: @JacobMerrill-1
I get random crashes when adding and removing 6dof constraints,
I wish that blender crashing would show a debug screen.....
what object was processed when game crashed?
what step in the game loop?
Blender crashes on this line:
vehicle = PC.createConstraint(G.car.getPhysicsId(),0,11)
Added subscriber: @raco
I can confirm that the file doesn't crash with Blender 2.72b on Windows 7 64-bit. So probably it's a Windows 8 issue.
Added subscribers: @ThomasDinges, @MartijnBerger
Hi Thomas and Martijn,
As platform maintainers both of you have been added to the loop because we have several crashes in bullet related to windows 8.1. Could you check them, please?
Added subscribers: @siegel, @mont29
Added subscriber: @dfelinto
I get a crash on OSX as well (Blender 2.73).
The problem is an assert:
And if I print out the variables I get wheel == 4, getNumWheels() == 4.
The back trace is the following:
After further investigating I have no problems with the file once I comment out the following lines in the Python script:
So all that is left is the Windows 8 related bug.
Can I expect fix this bug in near future?
I think HG1 already committed a fix, in 2.73 but it made constraints break, but there is already a fix for that in 2.73a
I am not sure if it only fixed crashes from rigid body joints, or if vehicle constraints were effected as well.
Vehicle constraints in 2.73a still not working.
Added subscriber: @you.le
Hello! I had the same issue (with Blender 64 bits on windows 8.1 64 bits). Building Blender with Mingw with default user-config.py options solved the problem. When I build with visual studio 2013, it still doesn't work.
This issue was referenced by
4edc1bbe02
Changed status from 'Open' to: 'Resolved'
Closed by commit
4edc1bbe02
.Added subscriber: @brita
I confirm Dalai's debugging. The problem is that you are accessing wheels 4 and 5 with the applyEngineForce, while you only have wheels 0 to 3.
That is why it is crashing, though it shouldn't. I am changing to print an error message instead.
The test file also mentioned wheel wiggling but I could not reproduce, so @marcino15 please confirm closing.
(the change should be on the next daily build: https://builder.blender.org/download/ )
I deleted lines with accessing wheels 4 and 5, but still crashing on line: vehicle = PC.createConstraint(G.car.getPhysicsId(),0,11)
@brita did you test it on Windows 8.1?
Changed status from 'Resolved' to: 'Open'
I do not have a windows machine. I get no crash on Linux 64bit.
I need the windows maintainers to test me this, then..
Hello! I don't know if it can helps, but here is a topic I made about the bug on BA:
http://blenderartists.org/forum/showthread.php?357411-Bug-Blender-2-72b-64bits-windows-8-1-64-bits-bge-constraints
This .blend:
http://www.mediafire.com/download/n87q9215aotb240/BugConstraintsWin8.164bitsBlender2.7264bits.blend
crashes Blender too. And many others. I don't know if it's a bug with KX_VehicleWrapper.cpp. I don't think so because it works on windows 7 and it works with 32 bits versions of Blender. So it's a bug which concerns only Blender 64 bits on windows 8.1 64 bits.
I tested on 2 windows 8.1 machines:
First: GTX660 intel core2quad q9550 windows 8.1 pro 64 bits Blender 64 bits
Second: Intel HD 4000 intel core i5 3230m windows 8.1 pro 64 bits Blender 64 bits
On the 2 machines I have python 3.4.2 64 bits installed and Visual studio 2013. On the 2 machines, the .blend I mentionned crashes. Same with the Marcino .blend. Compile blender with mingw solve the problem (But other issues appeared...). So I'm wondering if the bug is related to a missing library in 64 bits sources (I'm a noob so I can't affirm anything), or a conflicting built dll (visual studio: vcomp120.dll, msvcr120.dll, msvcp120.dll... or python dll...). I don't know (just noob ideas).
To recap:
Hope this could help! And thank you very much for trying to resolve the bug!
Added subscriber: @Paul-21
I am also having this error on blender 2.73a on windows 8.1 64.
it's crashing on the part where I create the vehicle constraint - just like everyone else.
create the constraint
Added subscriber: @viper31
Proposed fix D1122
Works for me! Thank you very much! And Congrats!
This issue was referenced by
9bd2a7c0a8
Changed status from 'Open' to: 'Resolved'
Closed by commit
9bd2a7c0a8
.