Crash while trying to get Area Options menu #58400

Closed
opened 2018-12-01 05:21:22 +01:00 by gsr b3d · 6 comments
Member

System Information
Operating system: Linux
Graphics card: RX580

Blender Version
Broken: Blender 2.80 (sub 35), Commit date: 2018-11-30 22:29, Hash 0f5b53ba4d
from https:builder.blender.org/downloadblender-2.80-0f5b53ba4dc-linux-glibc224-x86_64.tar.bz2

Short description of error
Crash by clicking the frame to obtain the Area Options menu (Split Area, etc).

Exact steps for others to reproduce the error
Launch "blender -W", ignore the splash altogether and move pointer to frame edge between 3D and new vertical tabs, start clicking RMB.
Sometimes it crashes in first click, sometimes second (the menu to add shortcuts, etc), sometimes it does after some clicks (menu of menu of menu, or move and get a new Area Options menu).
Also crashed in frames between 3D and new top bar, 3D and Timeline, Timeline and new bottom status bar.

Backtraces look like:
./blender(BLI_system_backtrace+0x1d) [0x1b830dd]
./blender() [0x114ecc9]
/lib/x86_64-linux-gnu/libc.so.6(+0x378e0) [0x7fbe67e928e0]
./blender(ED_screen_user_menu_find+0x19) [0x14563e9]
./blender(ui_popup_context_menu_for_button+0x57f) [0x135331f]
./blender() [0x13089d6]
./blender() [0x130bdd6]
./blender() [0x130c596]
./blender() [0x130d3b5]
./blender() [0x130eaf4]
./blender() [0x115720b]
./blender() [0x1157a8c]
./blender(wm_event_do_handlers+0x230) [0x11580f0]
./blender(WM_main+0x20) [0x114f6d0]
./blender(main+0x31e) [0x10b554e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7fbe67e7f09b]
./blender(_start+0x2a) [0x114b7ca]

**System Information** Operating system: Linux Graphics card: RX580 **Blender Version** Broken: Blender 2.80 (sub 35), Commit date: 2018-11-30 22:29, Hash 0f5b53ba4dc from https:*builder.blender.org/download*blender-2.80-0f5b53ba4dc-linux-glibc224-x86_64.tar.bz2 **Short description of error** Crash by clicking the frame to obtain the Area Options menu (Split Area, etc). **Exact steps for others to reproduce the error** Launch "blender -W", ignore the splash altogether and move pointer to frame edge between 3D and new vertical tabs, start clicking RMB. Sometimes it crashes in first click, sometimes second (the menu to add shortcuts, etc), sometimes it does after some clicks (menu of menu of menu, or move and get a new Area Options menu). Also crashed in frames between 3D and new top bar, 3D and Timeline, Timeline and new bottom status bar. Backtraces look like: ./blender(BLI_system_backtrace+0x1d) [0x1b830dd] ./blender() [0x114ecc9] /lib/x86_64-linux-gnu/libc.so.6(+0x378e0) [0x7fbe67e928e0] ./blender(ED_screen_user_menu_find+0x19) [0x14563e9] ./blender(ui_popup_context_menu_for_button+0x57f) [0x135331f] ./blender() [0x13089d6] ./blender() [0x130bdd6] ./blender() [0x130c596] ./blender() [0x130d3b5] ./blender() [0x130eaf4] ./blender() [0x115720b] ./blender() [0x1157a8c] ./blender(wm_event_do_handlers+0x230) [0x11580f0] ./blender(WM_main+0x20) [0x114f6d0] ./blender(main+0x31e) [0x10b554e] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7fbe67e7f09b] ./blender(_start+0x2a) [0x114b7ca]
Author
Member

Added subscriber: @gsrb3d

Added subscriber: @gsrb3d
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Can't reproduce this right now. Could you make a short .gif that shows exactly what you do until it crashes?

Can't reproduce this right now. Could you make a short .gif that shows exactly what you do until it crashes?
Author
Member

Ended downloading source and giving it a try... culprit is BKE_blender_user_menu_find(&U.user_menus, sl->spacetype, context) with sl NULL, which was returned by CTX_wm_space_data.

#0 0x00005555575e501d in ED_screen_user_menu_find (C=0x55555dd95198) at source/blender/editors/screen/screen_user_menu.c:69

      sl = 0x0
      context = 0x55555bb9784b "objectmode"

Created a small patch http://www.infernal-iceberg.com/blender/0001-Fix-#58400-Check-SpaceLink-struct-before-trying-to-a.patch

Source tree has other places where return from CTX_wm_space_data is used without checks, maybe worth a review.
Alpha/beta/rc builds could come with more debug data.

Ended downloading source and giving it a try... culprit is BKE_blender_user_menu_find(&U.user_menus, sl->spacetype, context) with sl NULL, which was returned by CTX_wm_space_data. #0 0x00005555575e501d in ED_screen_user_menu_find (C=0x55555dd95198) at source/blender/editors/screen/screen_user_menu.c:69 ``` sl = 0x0 context = 0x55555bb9784b "objectmode" ``` Created a small patch http://www.infernal-iceberg.com/blender/0001-Fix-#58400-Check-SpaceLink-struct-before-trying-to-a.patch Source tree has other places where return from CTX_wm_space_data is used without checks, maybe worth a review. Alpha/beta/rc builds could come with more debug data.
Author
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
gsr b3d self-assigned this 2018-12-22 04:26:53 +01:00
Author
Member

The function has changed with D4112 and the patch does not work anymore. There is a similar crash, but it must be handled by the new code.

The function has changed with [D4112](https://archive.blender.org/developer/D4112) and the patch does not work anymore. There is a similar crash, but it must be handled by the new code.
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
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#58400
No description provided.