Crash after executing the script #110450
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#110450
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
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98
Blender Version
Broken: version: 3.6.1 Release Candidate, branch: blender-v3.6-release, commit date: 2023-07-16 02:43, hash:
edc1a09966a7
Worked: (newest version of Blender that worked as expected)
Short description of error
Application crashes when clicking on the script run button
Exact steps for others to reproduce the error
1/ launch Blender
2/ click on "Scripting" tab; click "New"
3/ paste the following chatgpt generated script and run it:
HI, it crashed when assigning scalar value to
bone.tail
which is a vector.ChatGPT is not a good way of generating usable code. Please try following the python documentation and program your feature.
I beg your pardon but I did not want help to fix the code. I definitely know that the code is wrong.
I report the fact that Blender crashes instead of raising an exception. This is the bug. No script should be able to kill Blender.
Sorry for the misunderstanding implied by a not detailed enough bug report.
I ran the script with vector input but it still crashes. Need to check further
@PratikPB2123 On zero frame?
that just skips the for loop.
Crash is probably because bone->parent points to garbage memory.
I see, crash is because edit bone is accessed (refer:
rna_Armature_editbone_transform_update
) in object mode.Just remove this line from python script:
bpy.ops.object.mode_set(mode='OBJECT')
(edit: from line 88)python scripts do result in crash, not necessary they are bug always.
@dr.sybren , can you check? Would you consider this a bug?
A method to crash Blender with a ChatGPT generated scriptto Crash after executing the scriptPlease don't use known-wrong code to report a bug against Blender.
Minimize the code, such that every line is essential for reproducing the crash. Newlines for spacing are ok, but every line of actual code should be important. If it can be removed and still result in the crash, remove it.
This is a misconception. It is very easy to crash Blender or even grind your computer to a halt. Just keep generating enough objects in a loop and it'll eventually run out of memory.
No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.
Thanks again for the report. If the problem persists please open a new report with the required information.