bpy.types.Text region_as_string() and region_from_string() both segfault. #107261

Closed
opened 2023-04-23 04:40:02 +02:00 by Kai Jægersen · 1 comment

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94

Blender Version
Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: 1be25cfff18b
Worked: No idea. First tried them in 3.5.0.

Short description of error
bpy.types.Text region_as_string() called with no arguments segfaults.
bpy.types.Text region_from_string() called with no arguments segfaults.

Exact steps for others to reproduce the error

Test script Text.region_as_string()

import bpy

text = bpy.context.edit_text
string = text.region_as_string()

Test script Text.region_from_string()

import bpy

text = bpy.context.edit_text
text.region_from_string("Hello World")

Blend file in the Scripting workspace with those two snippets uploaded.

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94 **Blender Version** Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: `1be25cfff18b` Worked: No idea. First tried them in 3.5.0. **Short description of error** bpy.types.Text region_as_string() called with no arguments segfaults. bpy.types.Text region_from_string() called with no arguments segfaults. **Exact steps for others to reproduce the error** ## Test script Text.region_as_string() ```python import bpy text = bpy.context.edit_text string = text.region_as_string() ``` ## Test script Text.region_from_string() ```python import bpy text = bpy.context.edit_text text.region_from_string("Hello World") ``` Blend file in the Scripting workspace with those two snippets uploaded.
Kai Jægersen added the
Severity
Normal
Type
Report
Status
Needs Triage
labels 2023-04-23 04:40:03 +02:00
Jesse Yurkovich added
Module
Python API
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-04-23 07:45:42 +02:00
Member

Got a fix.

Got a fix.
Philipp Oeser self-assigned this 2023-04-24 10:24:38 +02:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-04-24 11:48:53 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
2 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#107261
No description provided.