access violation when aligning origin to view #81074

Closed
opened 2020-09-23 02:48:28 +02:00 by michael campbell · 16 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-20 05:59, hash: f470a02afa
Worked: (newest version of Blender that worked as expected)

Short description of error
access violation .

See below file for exact steps to reproduce:

blender.crash.txt

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-20 05:59, hash: `f470a02afa` Worked: (newest version of Blender that worked as expected) **Short description of error** access violation . See below file for exact steps to reproduce: [blender.crash.txt](https://archive.blender.org/developer/F8910551/blender.crash.txt)

Added subscriber: @3di

Added subscriber: @3di

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

This report is missing:

  • Last version that worked.
  • Exact steps to redo the error.
  • A blend file (unless there are simple steps to redo this from the default startup).
This report is missing: - Last version that worked. - Exact steps to redo the error. - A blend file (unless there are simple steps to redo this from the default startup).

Last version that work: unknown
Exact steps to reproduce : see crash log
Blend file: not necessary (see 5 steps from crash log and perform on the default cube)

In case reading the crash log is not acceptable:

Cube
Edit mode
Select 3 verts
New transform from selection
Object mode
Turn on affect origins only
Object menu /transform/ Align to transition orientation.

Last version that work: unknown Exact steps to reproduce : see crash log Blend file: not necessary (see 5 steps from crash log and perform on the default cube) In case reading the crash log is not acceptable: Cube Edit mode Select 3 verts New transform from selection Object mode Turn on affect origins only Object menu /transform/ Align to transition orientation.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Cannot reproduce either 7b988188dc nor f09fcda8b6.

Crash logs seems to be a bit different from the written down repro steps?
Here is one file with the crash log (reproducable in an operator):
#81074.blend

  • Open file
  • execute script
  • with mouse over 3DView: {key F3} > Simple Operator > execute > no crash

Here is the file with the repro steps (except last)
T81074_repro_steps_except_last.blend

  • Open file
  • Object menu > Transform > Align to Transform Orientation > no crash

@3di : What could I be doing wrong?

Cannot reproduce either 7b988188dc nor f09fcda8b6. Crash logs seems to be a bit different from the written down repro steps? Here is one file with the crash log (reproducable in an operator): [#81074.blend](https://archive.blender.org/developer/F8911886/T81074.blend) - Open file - execute script - with mouse over 3DView: {key F3} > Simple Operator > execute > no crash Here is the file with the repro steps (except last) [T81074_repro_steps_except_last.blend](https://archive.blender.org/developer/F8911887/T81074_repro_steps_except_last.blend) - Open file - Object menu > Transform > Align to Transform Orientation > no crash @3di : What could I be doing wrong?

@lichtwerk , I've automated the exact steps to make it a bit faster to test. Sometimes it doesn't happen on the first iteration, I was able to reproduce without the below also.

class SET_OriginsToSelected(bpy.types.Operator):
    bl_idname = "obj.set_origins_of_selected_objects_to_selected_faces"
    bl_label = "origins to selected faces"
    bl_options = {'REGISTER','UNDO'}

    
    

    def execute(self, context):
        

        os.system('cls')

            #STORE SELECTION
        original_selection = bpy.context.selected_objects

        #deslect everything
        bpy.ops.object.select_all(action='DESELECT')


        #set to use origins only
        bpy.context.scene.tool_settings.use_transform_data_origin = True

        

        for obj in original_selection:
            print(obj.name)
            
            
            
            try:

                bpy.ops.object.mode_set(mode='OBJECT')
                obj.select_set(True)
                bpy.context.view_layer.objects.active = obj
                bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS', center='BOUNDS')


                bpy.ops.object.mode_set(mode='EDIT')
                bpy.ops.transform.create_orientation(use=True)
                bpy.ops.object.editmode_toggle()
                

                bpy.ops.transform.transform(mode='ALIGN')
                bpy.ops.transform.delete_orientation()
                obj.select_set(False)
                
            except Exception as e:
                print(e)

        bpy.context.scene.tool_settings.use_transform_data_origin = False
        
        

        #reselect objects
        for obj in original_selection:
            obj.select_set(True)
     
        return {'FINISHED'}
@lichtwerk , I've automated the exact steps to make it a bit faster to test. Sometimes it doesn't happen on the first iteration, I was able to reproduce without the below also. ``` class SET_OriginsToSelected(bpy.types.Operator): bl_idname = "obj.set_origins_of_selected_objects_to_selected_faces" bl_label = "origins to selected faces" bl_options = {'REGISTER','UNDO'} def execute(self, context): os.system('cls') #STORE SELECTION original_selection = bpy.context.selected_objects #deslect everything bpy.ops.object.select_all(action='DESELECT') #set to use origins only bpy.context.scene.tool_settings.use_transform_data_origin = True for obj in original_selection: print(obj.name) try: bpy.ops.object.mode_set(mode='OBJECT') obj.select_set(True) bpy.context.view_layer.objects.active = obj bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS', center='BOUNDS') bpy.ops.object.mode_set(mode='EDIT') bpy.ops.transform.create_orientation(use=True) bpy.ops.object.editmode_toggle() bpy.ops.transform.transform(mode='ALIGN') bpy.ops.transform.delete_orientation() obj.select_set(False) except Exception as e: print(e) bpy.context.scene.tool_settings.use_transform_data_origin = False #reselect objects for obj in original_selection: obj.select_set(True) return {'FINISHED'} ```
Member

Hm, still no crash here:
T81074_b.blend

Hm, still no crash here: [T81074_b.blend](https://archive.blender.org/developer/F8912007/T81074_b.blend)

It can take a few goes.

It can take a few goes.

maybe put it in an additional loop to trigger the error more quickly without manually running it over and over.

maybe put it in an additional loop to trigger the error more quickly without manually running it over and over.

also try selecting 3 vertices or 2 edges instead of a face.

also try selecting 3 vertices or 2 edges instead of a face.
Member

Hm, still cannot reproduce.
At this point, all I can suggest is trying to put together a file with script that can trigger it reliably on your side, dont know what else I could do here, sorry.

Hm, still cannot reproduce. At this point, all I can suggest is trying to put together a file with script that can trigger it reliably on your side, dont know what else I could do here, sorry.

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Robert Guetzkow self-assigned this 2020-11-03 11:44:38 +01:00

I cannot reproduce the crash with the provided instruction or script. This ticket has been inactive 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.

I cannot reproduce the crash with the provided instruction or script. This ticket has been inactive 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.
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#81074
No description provided.