Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when tooltip overlaps mouse cursor during drag operation #16799

Open
yuto-trd opened this issue Aug 24, 2024 · 0 comments
Open

Crash when tooltip overlaps mouse cursor during drag operation #16799

yuto-trd opened this issue Aug 24, 2024 · 0 comments
Labels

Comments

@yuto-trd
Copy link

Describe the bug

The application crashes when a tooltip appears during a drag operation and overlaps the mouse cursor. According to the stack trace, a segmentation fault seems to occur in the AvnView triggerAvnDragEvent:info: method.

Translated Report
Process:               ReDocking [51187]
Path:                  /Users/USER/Documents/*/ReDocking
Identifier:            ReDocking
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        JetBrains.Debugger.Worker [51174]
Responsible:           rider [48771]
User ID:               501

Date/Time:             2024-08-25 00:04:22.9585 +0900
OS Version:            macOS 14.6.1 (23G93)
Report Version:        12
Anonymous UUID:        2E7ABBFB-C07F-CE8C-3711-762E9FB447F1

Sleep/Wake UUID:       CC0159A2-FBAE-4A9C-82EB-03FD48FEC514

Time Awake Since Boot: 300000 seconds
Time Since Wake:       2636 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000088
Exception Codes:       0x0000000000000001, 0x0000000000000088

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [51187]

VM Region Info: 0x88 is not in any region.  Bytes before following region: 4296523640
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      10017c000-100188000    [   48K] r-x/r-x SM=COW  /Users/USER/Documents/*/ReDocking

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libAvaloniaNative.dylib       	       0x1031f2f58 -[AvnView triggerAvnDragEvent:info:] + 268
1   libAvaloniaNative.dylib       	       0x1031f3084 -[AvnView draggingEntered:] + 28
2   AppKit                        	       0x19d066e30 -[NSDragDestination _draggingEntered] + 40
3   AppKit                        	       0x19cd481e0 NSCoreDragTrackingProc + 756
4   HIServices                    	       0x19f67dc00 DoTrackingMessage + 360
5   HIServices                    	       0x19f67e210 DragInApplication + 508
6   HIServices                    	       0x19f67ce00 CoreDragStartDragging + 560
7   AppKit                        	       0x19cd47994 -[NSCoreDragManager _dragUntilMouseUp:accepted:] + 896
8   AppKit                        	       0x19d06803c _handleBeginDraggingSession + 96
9   CoreFoundation                	       0x19925c87c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
10  CoreFoundation                	       0x19925c768 __CFRunLoopDoObservers + 536
11  CoreFoundation                	       0x19925b3d8 CFRunLoopRunSpecific + 516
12  HIToolbox                     	       0x1a3a0519c RunCurrentEventLoopInMode + 292
13  HIToolbox                     	       0x1a3a04e2c ReceiveNextEventCommon + 220
14  HIToolbox                     	       0x1a3a04d30 _BlockUntilNextEventMatchingListInModeWithFilter + 76
15  AppKit                        	       0x19cabacc8 _DPSNextEvent + 660
16  AppKit                        	       0x19d2b14d0 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 700
17  AppKit                        	       0x19caadffc -[NSApplication run] + 476
18  libAvaloniaNative.dylib       	       0x1031dcd18 PlatformThreadingInterface::RunLoop(IAvnLoopCancellation*) + 564

To Reproduce

  1. Begin a drag operation on a draggable element.
  2. Move the mouse cursor to the position where the tooltip would normally appear.
  3. Try several times during the drag operation until the tooltip overlaps with the mouse cursor.
3.mp4

Expected behavior

No response

Avalonia version

11.1.3

OS

macOS

Additional context

No response

@yuto-trd yuto-trd added the bug label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant