Wintab crash on window close. #85799
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#85799
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: Nvidia Quadro P5000
Blender Version
Broken: 2.91.2
Worked: N/A
OBJ Importer crashes while attempting to import OBJ file.
Steps to reproduce:
Actual Behavior:
Blender crashes.
Expected Behavior:
The OBJ file is imported successfully.
testPM3D_Sphere3D1.zip
Added subscriber: @mendezcode
#86039 was marked as duplicate of this issue
Added subscriber: @StephenSwaney
Imports fine here. Linux 2.92.0 RC and 2.91.2
I suspect a local problem.
Any interesting error messages?
Seems like it's something with my system... You know what... I should've provided you with more debugging info, my bad.
Here's what I get when I run it from the console:
Update: I have installed the latest GPU drivers, but it seems this is related to the tablet drivers (based on searches for wintab32.dll)... I do use a tablet screen, so I think this may have something to do with Wacom's drivers or something...
Changed status from 'Needs Triage' to: 'Resolved'
Sooo.... I was able to fix it! This actually is not a localized problem but it does seem like a bug.
I was able to import fine after setting the Tablet API to "Windows Ink" on Preferences > Input.
That being said, this doesn't seem to be a bug with the OBJ importer per se, but this highlights another possible bug which involves Blender crashing when using "WinTab" as tablet API for some reason.
In any case, I'm glad it's solved, thanks again!
Added subscribers: @PrototypeNM1, @ankitm
CC @PrototypeNM1
Changed status from 'Resolved' to: 'Confirmed'
What's happening here is that while the window is being destroyed, it closes the Wintab context via WTClose. The Wintab library must be calling one of the Win32 functions which allows callbacks to the Windows event loop to run, which calls an event which uses Wintab after it's closed and while Ghost's window is half torn down.The solution here is to not trust Wintab when tearing down the window to not reenter, and close before the GHOST_WindowWin32's destructor. Reopening as this is a legitimate issue.Edit: The issue is reentrancy while GHOST_WindowWin32 is being torn down, but it's not Wintab that triggers it, Wintab being passed a closed context is just the last step. Looks like it's the call to DestroyWindow from the stack trace.
Edit2: Without logging with the specific device, it could be quite difficult to narrow down the exact cause. E.g. it could be that the Wintab library is not handling multiple contexts for a single process correctly and thus closing the wrong one, or reentrancy is causing a half-destroyed window with closed Wintab context to crash.
Added subscribers: @kamiyu1031, @rjg
OBJ Importer Crashto Wintab crash on window close.@mendezcode @kamiyu1031 Could you recreate the crash in this build, copy the content of blender_debug_output.txt to this link, and link the result here?
Changed status from 'Confirmed' to: 'Needs User Info'
@PrototypeNM1 Tested and crash persists, here's the paste: https://developer.blender.org/P2009
Changed status from 'Needs User Info' to: 'Needs Triage'
Could you upload
C:\Users\mdz\AppData\Local\Temp\blender.crash.txt
?Changed status from 'Needs Triage' to: 'Needs User Info'
@mendezcode Could you confirm is the issue is still present in current daily builds ? There were a lot of recent changes with how Wintab opened and closed in Blender which should resolve any issues.
@PrototypeNM1 tested and the issue is no longer present, it has been fixed.
Changed status from 'Needs User Info' to: 'Resolved'