addScriptLink() causes segfault #2123

Closed
opened 2005-01-10 23:06:05 +01:00 by Ken Hughes · 3 comments
Member

Group: current SVN version
Resolution: Fixed
Category: Python

%%%Stack trace:

  • 0 0x0836a332 in PyType_IsSubtype ()
  • 1 0x0835e3d4 in PyObject_GetAttr ()
  • 2 0x0838b636 in eval_frame ()
  • 3 0x0838d926 in fast_function ()
  • 4 0x0838d6d6 in call_function ()
  • 5 0x0838bb5e in eval_frame ()
  • 6 0x0838c67c in PyEval_EvalCodeEx ()
  • 7 0x0838efa7 in PyEval_EvalCode ()

8 0x082f2e5c in RunPython (text=0x8689f14, globaldict=0x40bbdf0c)

  at source/blender/python/BPY_interface.c:1204

9 0x082f1dec in BPY_txt_do_python_Text (text=0x8689f14)

  at source/blender/python/BPY_interface.c:513

10 0x08182565 in run_python_script (st=0x868381c)

  at source/blender/src/drawtext.c:963

11 0x08182a30 in winqreadtextspace (sa=0x8683664, spacedata=0x868381c,

  evt=0x40b864ac) at source/blender/src/drawtext.c:1240

12 0x0813a49f in scrarea_do_winhandle (area=0x8683664, evt=0xbffff690)

  at source/blender/src/spacetypes.c:140

13 0x080d1721 in scrarea_dispatch_events (sa=0x8683664)

  at source/blender/src/editscreen.c:551

To recreate:
(1) create an file "pulse.py" in local directory
(2) load untitled.blend
(3) change variable to i=1
(4) press Alt-P twice

Same thing happens when linking the script to a scene.

If you run script as-is ("i=0"), second execution of script gives TypeError: expected string argument in line 11 (the Text.Load() method). I discovered that using a string variable in place of the literal string name works.
%%%

**Group**: current SVN version **Resolution**: Fixed **Category**: Python %%%Stack trace: - 0 0x0836a332 in PyType_IsSubtype () - 1 0x0835e3d4 in PyObject_GetAttr () - 2 0x0838b636 in eval_frame () - 3 0x0838d926 in fast_function () - 4 0x0838d6d6 in call_function () - 5 0x0838bb5e in eval_frame () - 6 0x0838c67c in PyEval_EvalCodeEx () - 7 0x0838efa7 in PyEval_EvalCode () # 8 0x082f2e5c in RunPython (text=0x8689f14, globaldict=0x40bbdf0c) ``` at source/blender/python/BPY_interface.c:1204 ``` # 9 0x082f1dec in BPY_txt_do_python_Text (text=0x8689f14) ``` at source/blender/python/BPY_interface.c:513 ``` # 10 0x08182565 in run_python_script (st=0x868381c) ``` at source/blender/src/drawtext.c:963 ``` # 11 0x08182a30 in winqreadtextspace (sa=0x8683664, spacedata=0x868381c, ``` evt=0x40b864ac) at source/blender/src/drawtext.c:1240 ``` # 12 0x0813a49f in scrarea_do_winhandle (area=0x8683664, evt=0xbffff690) ``` at source/blender/src/spacetypes.c:140 ``` # 13 0x080d1721 in scrarea_dispatch_events (sa=0x8683664) ``` at source/blender/src/editscreen.c:551 ``` To recreate: (1) create an file "pulse.py" in local directory (2) load untitled.blend (3) change variable to i=1 (4) press Alt-P twice Same thing happens when linking the script to a scene. If you run script as-is ("i=0"), second execution of script gives TypeError: expected string argument in line 11 (the Text.Load() method). I discovered that using a string variable in place of the literal string name works. %%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

This task was automatically closed as archived as part of migration, because the project or tracker this task belonged to is no longer active.

This task was automatically closed as archived as part of migration, because the project or tracker this task belonged to is no longer active.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
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
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#2123
No description provided.