RPTools / TokenTool

TokenTool removes much of the tedium from creating tokens for use with MapTool or your favorite online gaming application. Just drag an image into the background, select a frame, zoom and pan to suit, and drag off a finished token. The resulting token is transparent around the edges and cropped to the size you wanted.
http://www.rptools.net/toolbox/token-tool/
GNU Affero General Public License v3.0
178 stars 44 forks source link

Capture Screen function freezes TokenTool (Ubuntu 22.04 XFCE) #438

Open Juppstein opened 1 year ago

Juppstein commented 1 year ago

Describe the bug When you use screen capture and click on the "Caputer" button of the selection rectangle TokenTool will crash and hang. When starting TokenTool from terminal the following error will appear right after clicking "Capture"

(TokenTool:233909): Gdk-WARNING **: 10:11:01.924: XSetErrorHandler() called with a GDK error trap pushed. Don't do that. 10:11:19.569 (null:-1) [JavaFX Application Thread] DEBUG - Rect: java.awt.Rectangle[x=1302,y=410,width=266,height=241]

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Edit'
  2. Click on 'Capture Screen'
  3. Click on "Capture" on the selection rectangle
  4. TokenTool freezes

Expected behavior Selected area is imported to TokenTool

Screenshots none

TokenTool Info

Desktop (please complete the following information):

Additional context When starting the tool there are two initial errors:

2023-10-27 10:20:14,735 JavaFX-Launcher ERROR Appenders contains an invalid element or attribute "Sentry" 2023-10-27 10:20:14,748 JavaFX-Launcher ERROR Unable to locate appender "Sentry" for logger config "root" 10:20:14.804 (null:-1) [JavaFX-Launcher] INFO - Overlays installed: 173 10:20:14.842 (null:-1) [JavaFX-Launcher] INFO - Environment: Production 10:20:14.843 (null:-1) [JavaFX-Launcher] INFO - Sentry DSN: https://312e480e6390426095b0a66a11f343a9@sentry.io/1406000 10:20:14.843 (null:-1) [JavaFX-Launcher] INFO - Vendor: rptools 10:20:14.843 (null:-1) [JavaFX-Launcher] INFO - Release: 2.2.1 10:20:14.844 (null:-1) [JavaFX-Launcher] INFO - OS: Linux 10:20:14.844 (null:-1) [JavaFX-Launcher] INFO - 3D Hardware Available? true 10:20:14.851 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/kodi/.tokentool-rptools/overlays