Crash when dragging Token from preview to MapTool canvas
spacegiant opened this issue · comments
Describe the bug
TokenTool crashes suddenly when dragging Token from preview to MapTool canvas.
To Reproduce
Steps to reproduce the behavior:
- Create token by dragging PNG from Safari to MapTool canvas
- Resize image using scroll on mouse
- Left click and drag token from preview pane to MapTool
- Experience crash and loss of clipboard on first but sometimes second token.
- Mac system error report (Pasted at bottom)
Expected behavior
Should be able to always drag a token from preview to MapTools without crashing.
Screenshots
If applicable, add screenshots to help explain your problem.
TokenTool Info
- Version: 2.1
- Install: Fairly new. Installed for a month or so. Seemed to work for a while without error from what I remember.
Desktop (please complete the following information):
- OS: MacOS
- Version: Mojave 10.14.6
Additional context
Attached Mac System Error Report
I assume you meant TokenTool 2.1?
Cannot reproduce on Windows with TokenTool 2.1 and MapTool 1.5.3 so may be MacOS only issue.
Yeah, this is a macOS-specific bug. From the dump:
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: _type > 0 && _type <= kCGSLastEventType'
terminating with uncaught exception of type NSException
abort() called
It looks like Objective-C assert output... There may not be anything we can do about it. Trigger it and make sure it's sent to Apple and they'll forward it to the OpenJDK team. (Or at least, they have done that in the past...)
@spacegiant You may want to checkout TT 2.1 that has a number of improvements.
Sorry. 2.1 is the version I'm using. I've updated the original post to clarify.
Next release will be using Adopt OpenJDK 15, we'll test again with next release and see if the bug still persists...
@spacegiant You might grab the 2.2 test build and see if Drag n Drop works for you now.
https://github.com/RPTools/TokenTool/releases/tag/2.2.0-Java16-Test