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

Cannot open any images with wayland #462

Closed
nroduit opened this issue Aug 24, 2023 · 2 comments
Closed

Cannot open any images with wayland #462

nroduit opened this issue Aug 24, 2023 · 2 comments

Comments

@nroduit
Copy link
Owner

nroduit commented Aug 24, 2023

          @nroduit I'm experiencing the exact same problem -- v. 4.2.0 (Flatpak), Arch Linux, Sway.

If you can transmit the complete error (usually there is a stack of errors).

Nope, I'm afraid, this is the output from an entire Weasis "session" exhibiting the problem:

# flatpak run io.github.nroduit.Weasis
WARNING: package com.sun.awt not in java.desktop
23.08.2023 13:27:37.582 *INFO* [main] org.weasis.launcher.ConfigData: Starting Weasis...
23.08.2023 13:27:37.631 *INFO* [main] org.weasis.launcher.ConfigData: Initialization of the launch configuration...
23.08.2023 13:27:37.643 *INFO* [main] org.weasis.launcher.ConfigData: Properties: {weasis.user=rkv, weasis.name=Weasis, weasis.version=4.2.0, weasis.config.hash=174372, weasis.path=/home/rkv/.weasis, weasis.launch.type=NATIVE, weasis.codebase.url=file:/app/lib/app, weasis.pref.local.session=true, weasis.codebase.local=/app/lib/app, felix.config.properties=file:/app/lib/app/conf/base.json, weasis.source.id=630703E9, weasis.profile=default, http.agent=Weasis/4.2.0 (Linux; 6.4.9-arch1-1; amd64; pf:default; rv:4.2.0) Java/21-beta}
23.08.2023 13:27:37.662 *INFO* [main] org.weasis.launcher.Singleton: Local port of the Singleton server: 44,307
23.08.2023 13:27:37.666 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of locale.lang.code = en
23.08.2023 13:27:37.666 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of locale.format.code = en_DK
23.08.2023 13:27:37.666 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of org.apache.sling.commons.log.level = DEBUG
23.08.2023 13:27:37.666 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of org.apache.sling.commons.log.file.activate = true
23.08.2023 13:27:37.667 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of org.apache.sling.commons.log.file.number = 5
23.08.2023 13:27:37.667 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of org.apache.sling.commons.log.file.size = 10MB
23.08.2023 13:27:37.667 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of org.apache.sling.commons.log.stack.limit = -1
23.08.2023 13:27:37.667 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of org.apache.sling.commons.log.pattern = {0,date,dd.MM.yyyy HH:mm:ss.SSS} *{4}* [{2}] {3}: {5}
23.08.2023 13:27:37.673 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of weasis.linux.windows.decoration = false
23.08.2023 13:27:37.702 *CONFIG* [main] sun.awt.X11.backingStore.XToolkit: The system property sun.awt.backingStore is not set, by default backingStore=NotUseful
23.08.2023 13:27:37.723 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of flatlaf.uiScale = -1
23.08.2023 13:27:37.981 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of weasis.show.disclaimer = true
23.08.2023 13:27:37.981 *INFO* [main] org.weasis.launcher.WeasisLauncher: Config of weasis.show.release = true
23.08.2023 13:27:37.984 *INFO* [main] org.weasis.launcher.WeasisLauncher:
***** Configuration *****
  Last running version = 4.2.0
  Current version = 4.2.0
  Application name = Weasis
  Application Source ID = 630703E9
  Application Profile = default
  Application local codebase = /app/lib/app
  Application codebase URL = file:/app/lib/app
  Application configuration file = file:/app/lib/app/conf/base.json
  User = rkv
  User home directory = /home/rkv/.weasis
  Resources path = /app/lib/app/resources
  Preferences directory = /home/rkv/.weasis/preferences/rkv/default
  Look and Feel = com.formdev.flatlaf.FlatIntelliJLaf
  Languages path = file:/app/lib/app/bundle-i18n/
  Languages available = en,ar,bg_BG,bqi,bs_BA,cs,de,el,es,fa,fr,hr_HR,hu_HU,it,ja,ko,ms_MY,pl_PL,pt,pt_BR,ro,ru_RU,si,sk_SK,sr_RS,sv,ta_IN,tr,uk,vi,vi_VN,zh_CN,zh-Hans,zh_TW
  OSGI native specs = linux-x86-64
  HTTP user agent = Weasis/4.2.0 (Linux; 6.4.9-arch1-1; amd64; pf:default; rv:4.2.0) Java/21-beta
  Operating system = Linux 6.4.9-arch1-1 amd64
  Java vendor = Eclipse Adoptium
  Java version = 21-beta
  Java Path = /app/lib/runtime
  Java max memory (less survivor space) = 7.8 GiB
***** End of Configuration *****
23.08.2023 13:27:37.985 *INFO* [main] org.weasis.launcher.WeasisLauncher:
Starting OSGI Bundles...

         | | /| / /__ ___ ____ (_)__
         | |/ |/ / -_) _ `(_-</ (_-<
         |__/|__/\__/\_,_/___/_/___/

23.08.2023 13:27:38.333 *INFO* [FelixStartLevel] org.opencv.osgi: Successfully loaded OpenCV native library.
23.08.2023 13:27:39.187 *INFO* [main] org.weasis.launcher.WeasisLauncher: Logs has been delegated to the OSGI service and can be read in /home/rkv/.weasis/log/default.log
____________________________
Welcome to Apache Felix Gogo

telnetd is running on 127.0.0.1:17179
gosh: stopping shell
23.08.2023 13:27:58.807 *INFO* [Dicom Model-pool-7-thread-1] org.opencv.osgi: Successfully loaded OpenCV native library.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot read field "x" because "<parameter1>" is null
	at java.desktop/java.awt.Rectangle.contains(Unknown Source)
	at org.weasis.base.ui.gui.WeasisWin.setExternalPosition(WeasisWin.java:490)
	at org.weasis.base.ui.gui.WeasisWin.openSeriesInViewerPlugin(WeasisWin.java:410)
	at org.weasis.base.ui.gui.WeasisWinListener.propertyChange(WeasisWinListener.java:128)
	at java.desktop/java.beans.PropertyChangeSupport.fire(Unknown Source)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
	at org.weasis.dicom.explorer.DicomModel.lambda$firePropertyChange$0(DicomModel.java:358)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0, 0x7fa9a00954f0, refCount 1, unCloseable false]

Reviving the issue as suggested! :)

Thanks!

Originally posted by @BenjaminKampfradler in #303 (comment)

@nroduit
Copy link
Owner Author

nroduit commented Aug 24, 2023

See #303 (comment)

@nroduit
Copy link
Owner Author

nroduit commented Aug 24, 2023

The fix "should" ignore adding a button to move a tab to another screen as the current screen cannot match any screen configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant