Crash in Walk Navigation in Camera mode (walk_invoke) on files that are just saved/just opened #47958

Closed
opened 2016-03-26 23:18:35 +01:00 by Konstantin Mochalov · 15 comments

System Information
Mac OS X 10.11.3
AMD Radeon HD 6750M 512 МБ

Blender Version
Broken: 2.77 (sub 0) Build: 2016-03-18 09:55:27 Darwin Release
Worked: (optional)

Short description of error

Exact steps for others to reproduce the error

  1. Start Blender
  2. Open any .blend file
  3. View -> Camerauntitled.blend
  4. Press space -> Walk Navigation

Occurs every time for me. Not occurs if skipped step 2 (when editing unsaved file). Not occurs if making some edits after step 2, can be used as workaround.

Attaching saved default scene with only cube. For me, it crashes always after opening this file, selecting camera view and starting walk navigation.

(lldb) bt
* thread #1: tid = 0x4b8d44, 0x0000000100262405 blender`walk_invoke + 37, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x33b)
  * frame #0: 0x0000000100262405 blender`walk_invoke + 37
    frame #1: 0x0000000100163136 blender`wm_operator_invoke + 390
    frame #2: 0x000000010033de05 blender`ui_apply_but_funcs_after + 373
    frame #3: 0x000000010033da75 blender`ui_popup_handler + 517
    frame #4: 0x0000000100162587 blender`wm_handlers_do_intern + 1159
    frame #5: 0x000000010015f579 blender`wm_handlers_do + 25
    frame #6: 0x000000010015ea8a blender`wm_event_do_handlers + 890
    frame #7: 0x0000000100157550 blender`WM_main + 32
    frame #8: 0x0000000100154a89 blender`main + 3833
    frame #9: 0x0000000100153b7c blender`start + 52

frame #0: 0x0000000100262405 blender`walk_invoke + 37
blender`walk_invoke:
->  0x100262405 <+37>: testb  $0x1, 0x33b(%rax)
    0x10026240c <+44>: jne    0x1002627c9               ; <+1001>
    0x100262412 <+50>: leaq   0x6c93247(%rip), %rax     ; MEM_callocN
    0x100262419 <+57>: leaq   0x579e390(%rip), %rsi     ; "NavigationWalkOperation"
**System Information** Mac OS X 10.11.3 AMD Radeon HD 6750M 512 МБ **Blender Version** Broken: 2.77 (sub 0) Build: 2016-03-18 09:55:27 Darwin Release Worked: (optional) **Short description of error** **Exact steps for others to reproduce the error** 1. Start Blender 2. Open any .blend file 3. *View* -> *Camera*[untitled.blend](https://archive.blender.org/developer/F298374/untitled.blend) 4. Press *space* -> *Walk Navigation* Occurs every time for me. Not occurs if skipped step 2 (when editing unsaved file). Not occurs if making some edits after step 2, can be used as workaround. Attaching saved default scene with only cube. For me, it crashes always after opening this file, selecting camera view and starting walk navigation. ``` (lldb) bt * thread #1: tid = 0x4b8d44, 0x0000000100262405 blender`walk_invoke + 37, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x33b) * frame #0: 0x0000000100262405 blender`walk_invoke + 37 frame #1: 0x0000000100163136 blender`wm_operator_invoke + 390 frame #2: 0x000000010033de05 blender`ui_apply_but_funcs_after + 373 frame #3: 0x000000010033da75 blender`ui_popup_handler + 517 frame #4: 0x0000000100162587 blender`wm_handlers_do_intern + 1159 frame #5: 0x000000010015f579 blender`wm_handlers_do + 25 frame #6: 0x000000010015ea8a blender`wm_event_do_handlers + 890 frame #7: 0x0000000100157550 blender`WM_main + 32 frame #8: 0x0000000100154a89 blender`main + 3833 frame #9: 0x0000000100153b7c blender`start + 52 frame #0: 0x0000000100262405 blender`walk_invoke + 37 blender`walk_invoke: -> 0x100262405 <+37>: testb $0x1, 0x33b(%rax) 0x10026240c <+44>: jne 0x1002627c9 ; <+1001> 0x100262412 <+50>: leaq 0x6c93247(%rip), %rax ; MEM_callocN 0x100262419 <+57>: leaq 0x579e390(%rip), %rsi ; "NavigationWalkOperation" ```

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @kolen

Added subscriber: @kolen

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Added subscriber: @NikoLeopold

Added subscriber: @NikoLeopold

I can not reproduce this bug ...
But here a diff to prevents the operator's execution where the context does not have RegionView3D (such as Tool Shelf)

@@ -1337,11 +1337,11 @@ static void walkApply_ndof(bContext *C, WalkInfo *walk)
 static int walk_invoke(bContext *C, wmOperator *op, const wmEvent *event)
 {
 	RegionView3D *rv3d = CTX_wm_region_view3d(C);
 	WalkInfo *walk;
 
-	if (rv3d->viewlock & RV3D_LOCKED)
+	if (!rv3d || rv3d->viewlock & RV3D_LOCKED)
 		return OPERATOR_CANCELLED;
 
 	walk = MEM_callocN(sizeof(WalkInfo), "NavigationWalkOperation");
 
 	op->customdata = walk;

I can not reproduce this bug ... But here a diff to prevents the operator's execution where the context does not have RegionView3D (such as Tool Shelf) ``` @@ -1337,11 +1337,11 @@ static void walkApply_ndof(bContext *C, WalkInfo *walk) static int walk_invoke(bContext *C, wmOperator *op, const wmEvent *event) { RegionView3D *rv3d = CTX_wm_region_view3d(C); WalkInfo *walk; - if (rv3d->viewlock & RV3D_LOCKED) + if (!rv3d || rv3d->viewlock & RV3D_LOCKED) return OPERATOR_CANCELLED; walk = MEM_callocN(sizeof(WalkInfo), "NavigationWalkOperation"); op->customdata = walk; ```

Can't reproduce this either with recent build or build from the specified time, on Arch Linux though.

Can't reproduce this either with recent build or build from the specified time, on Arch Linux though.

Hmm, seems that it's not related to open/save state, but on where mouse is.
Tried now, always crashes when mouse is over Tool Shelf or Properties:

pasted_file

And never crashes when mouse is over main area of 3d view:

pasted_file

Tried to build Blender with debug symbols to examine crash further but not succeeded in it.

Hmm, seems that it's not related to open/save state, but on where mouse is. Tried now, always crashes when mouse is over Tool Shelf or Properties: ![pasted_file](https://archive.blender.org/developer/F298384/pasted_file) And never crashes when mouse is over main area of 3d view: ![pasted_file](https://archive.blender.org/developer/F298386/pasted_file) Tried to build Blender with debug symbols to examine crash further but not succeeded in it.

b0a7e77 build (blender-2.77-b0a7e77-OSX-10.6-x86_64.zip) behaves the same.

`b0a7e77` build (`blender-2.77-b0a7e77-OSX-10.6-x86_64.zip`) behaves the same.

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

I can recreate the issue. If the cursor is on any panel that is a part of the 3D view window (T, N or the Header) calling the search (spacebar) and sellecting the Walk Navigation from it - will crash Blender.
The camera view doesn't need to be selected nor objects added and happens with loaded factory settings too.

Tested on:
Windows 7 SP1 64-Bit (Catalyst 16.3) Blender versions: 6d3fdcc, b0a7e77

With the -d parameter gives the error in the CMD: EXCEPTION_ACCESS_VIOLATION

Linux

2683dd8 on Xubuntu 15.10 64-Bit (Proprietary Drivers - 15.201.1151) and Antergos (Arch) 64-Bit (MESA 11.1.2)

1a6d455 on Ubuntu 14.04 LTS 64-Bit

With the -d parameter gives the error in the Terminal - Segmentation fault (core dumped)

I can recreate the issue. If the cursor is on any panel that is a part of the 3D view window (T, N or the Header) calling the search (spacebar) and sellecting the Walk Navigation from it - will crash Blender. The camera view doesn't need to be selected nor objects added and happens with loaded factory settings too. Tested on: Windows 7 SP1 64-Bit (Catalyst 16.3) Blender versions: 6d3fdcc, b0a7e77 With the -d parameter gives the error in the CMD: EXCEPTION_ACCESS_VIOLATION Linux 2683dd8 on Xubuntu 15.10 64-Bit (Proprietary Drivers - 15.201.1151) and Antergos (Arch) 64-Bit (MESA 11.1.2) 1a6d455 on Ubuntu 14.04 LTS 64-Bit With the -d parameter gives the error in the Terminal - Segmentation fault (core dumped)

Sorry for the noise, the crash is present in 2.70b too. Tested on Win7.

Sorry for the noise, the crash is present in 2.70b too. Tested on Win7.

Added subscriber: @mont29

Added subscriber: @mont29

yes, poll func of this operator is wrong indeed. easy fix :)

yes, poll func of this operator is wrong indeed. easy fix :)
Bastien Montagne self-assigned this 2016-03-28 17:11:15 +02:00

This issue was referenced by b1f918bcc5

This issue was referenced by b1f918bcc53d552dec2a5327b15f77751dca0712

Changed status from 'Open' to: 'Resolved'

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