Fedora Online Forum

Il forum della comunità italiana di Fedora

#1 12-10-2018 19:39:26

recluta
Appena sbarcato sul forum
Da Pomezia (RM)
Registrato: 05-09-2007
Messaggi: 58

[Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

Sono interessato all'uso di Weasis Medical Viewer (visualizzazione di immagini prodotte da apparati medicali, per esempio le immagini della risonanza magnetica). Vedi url https://nroduit.github.io/en/
Purtroppo non riesco a darlo girare in F28 (nel vecchio F16 c'ero riuscito).
Qualcuno è interessato a darmi una mano?
Grazie
Recluta

Ultima modifica di recluta (15-10-2018 21:48:17)

Non in linea

#2 12-10-2018 20:17:39

bebo_sudo
Collaboratore
Da Trento+Trieste
Registrato: 28-02-2011
Messaggi: 1'874
Sito web

Re: [Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

Sembra essere un classico war. Hai installato java? quale (openjdk/oracle)?
Quali operazioni hai provato a fare per farlo girare?


devzero.tk - github.com/bebosudo
Quando posti del codice, mettilo nel tag code! (senza spazi)            [ code]così[/ code]

Non in linea

#3 12-10-2018 21:02:51

recluta
Appena sbarcato sul forum
Da Pomezia (RM)
Registrato: 05-09-2007
Messaggi: 58

Re: [Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

Questo è Java installato:

[[email protected] ~]$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b15)
OpenJDK 64-Bit Server VM (build 25.181-b15, mixed mode)
[[email protected] ~]$ 

e questo è il comando che do nel terminale

[[email protected] ~]$ /home/paolo/PROGRAMMI_PORTABLE/weasis-portable/viewer-linux.sh

Non in linea

#4 12-10-2018 21:45:56

bebo_sudo
Collaboratore
Da Trento+Trieste
Registrato: 28-02-2011
Messaggi: 1'874
Sito web

Re: [Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

E che errori ti riporta? Dai su, cerchiamo di essere cooperativi


devzero.tk - github.com/bebosudo
Quando posti del codice, mettilo nel tag code! (senza spazi)            [ code]così[/ code]

Non in linea

#5 12-10-2018 22:35:51

recluta
Appena sbarcato sul forum
Da Pomezia (RM)
Registrato: 05-09-2007
Messaggi: 58

Re: [Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

Questo è il listato dell'output (piuttosto lungo).
Mi chiedo: è analogo a quella che ottieni anche tu se lavori con il package in versione 3.0.2 https://sourceforge.net/projects/dcm4che/files/Weasis ? Grazie


[[email protected] weasis-portable]$ ./viewer-linux.sh
Found java "1.8.0_181"
user arguments:
Weasis launcher directory: /home/paolo/PROGRAMMI_PORTABLE/weasis-portable

***** Starting Configuration *****
felix.config.properties: file:/home/paolo/PROGRAMMI_PORTABLE/weasis-portable/weasis/conf/config.properties
felix.extended.config.properties: file:/home/paolo/PROGRAMMI_PORTABLE/weasis-portable/weasis/conf/ext-config.properties
Operating system: linux-x86-64
Preferences directory: /home/paolo/.weasis/preferences/paolo/default
Starting portable version
locale.lang.code: en
locale.format.code: system
org.apache.sling.commons.log.level: INFO
org.apache.sling.commons.log.file.activate: false
org.apache.sling.commons.log.file.number: 5
org.apache.sling.commons.log.file.size: 10MB
org.apache.sling.commons.log.stack.limit: 3
org.apache.sling.commons.log.pattern: {0,date,dd.MM.yyyy HH:mm:ss.SSS} *{4}* [{2}] {3}: {5}
i18n path: file:/home/paolo/PROGRAMMI_PORTABLE/weasis-portable/weasis/bundle-i18n/
WARNING : Unable to set the Look&Feel org.pushingpixels.substance.api.skin.SubstanceTwilightLookAndFeel
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353)
	at org.weasis.launcher.WeasisLauncher.loadProperties(WeasisLauncher.java:1139)
	at org.weasis.launcher.WeasisLauncher.launch(WeasisLauncher.java:345)
	at org.weasis.launcher.WeasisLauncher.main(WeasisLauncher.java:220)
Caused by: java.lang.ExceptionInInitializerError
	at org.pushingpixels.substance.internal.contrib.jgoodies.looks.common.ShadowPopupFactory.install(ShadowPopupFactory.java:116)
	at org.pushingpixels.substance.api.SubstanceLookAndFeel.initialize(SubstanceLookAndFeel.java:254)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:538)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:583)
	at org.weasis.launcher.WeasisLauncher.setLookAndFeel(WeasisLauncher.java:1292)
	at org.weasis.launcher.WeasisLauncher.lambda$loadProperties$3(WeasisLauncher.java:1147)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.awt.HeadlessException
	at sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:226)
	at org.pushingpixels.substance.internal.contrib.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:309)
	at org.pushingpixels.substance.internal.contrib.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:202)
	... 20 more
weasis.look: org.pushingpixels.substance.api.skin.SubstanceTwilightLookAndFeel
Last running version: null
Current version: 3.0.2
/home/paolo/PROGRAMMI_PORTABLE/weasis-portable/weasis/resources.zip (No such file or directory)

weasis.resources.path: /home/paolo/PROGRAMMI_PORTABLE/weasis-portable/weasis/resources
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
	at org.weasis.launcher.WeasisLoader.open(WeasisLoader.java:213)
	at org.weasis.launcher.WeasisLauncher.loadProperties(WeasisLauncher.java:1229)
	at org.weasis.launcher.WeasisLauncher.launch(WeasisLauncher.java:345)
	at org.weasis.launcher.WeasisLauncher.main(WeasisLauncher.java:220)
Caused by: java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
	at java.awt.Window.init(Window.java:484)
	at java.awt.Window.<init>(Window.java:436)
	at java.awt.Window.<init>(Window.java:561)
	at org.weasis.launcher.WeasisLoader.initGUI(WeasisLoader.java:87)
	at org.weasis.launcher.WeasisLoader.lambda$open$3(WeasisLoader.java:215)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
***** End of Configuration *****

Starting...

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

12.10.2018 23:02:56.578 *INFO* [FelixStartLevel] org.apache.sling.commons.log.internal.LogManager: LogManager: Logging set up from context
Oct 12, 2018 11:02:56 PM org.opencv.osgi.OpenCVNativeLoader init
INFO: Successfully loaded OpenCV native library.
12.10.2018 23:02:56.855 *INFO* [FelixStartLevel] org.weasis.core.api.internal.cv.NativeOpenCVCodec: Native OpenCV is activated
12.10.2018 23:02:56.856 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: OpenCV imgcodecs
ERROR: Bundle weasis-core-ui [20] Error starting file:/home/paolo/PROGRAMMI_PORTABLE/weasis-portable/weasis/bundle/weasis-core-ui-3.0.2.jar (org.osgi.framework.BundleException: Activator start error in bundle weasis-core-ui [20].)
java.lang.ExceptionInInitializerError
	at org.weasis.core.ui.editor.image.dockable.MeasureTool.<clinit>(MeasureTool.java)
	at org.weasis.core.ui.internal.Activator.start(Activator.java)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2398)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2304)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1535)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.awt.HeadlessException
	at sun.awt.HeadlessToolkit.getBestCursorSize(HeadlessToolkit.java:256)
	at org.weasis.core.api.gui.util.ActionW.getCustomCursor(ActionW.java)
	at org.weasis.core.api.gui.util.ActionW.<clinit>(ActionW.java)
	... 8 more
12.10.2018 23:02:56.928 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: Sun java imageio
12.10.2018 23:02:56.945 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Activate DicomCodec
12.10.2018 23:02:57.069 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: dcm4che
ERROR: Bundle weasis-base-ui [25] Error starting file:/home/paolo/PROGRAMMI_PORTABLE/weasis-portable/weasis/bundle/weasis-base-ui-3.0.2.jar (org.osgi.framework.BundleException: Activator start error in bundle weasis-core-ui [20].)
java.lang.NoClassDefFoundError: Could not initialize class org.weasis.core.ui.editor.image.dockable.MeasureTool
	at org.weasis.core.ui.internal.Activator.start(Activator.java)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2398)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2304)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
	at org.weasis.base.ui.internal.Activator.start(Activator.java)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2398)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2304)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1535)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:748)
12.10.2018 23:02:57.108 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: SR => org.weasis.dicom.sr.SRElementFactory
ERROR: Bundle weasis-dicom-viewer2d [24] Error starting file:/home/paolo/PROGRAMMI_PORTABLE/weasis-portable/weasis/bundle/weasis-dicom-viewer2d-3.0.2.jar (org.osgi.framework.BundleException: Activator start error in bundle weasis-dicom-viewer2d [24].)
java.lang.NoClassDefFoundError: Could not initialize class org.weasis.core.api.gui.util.ActionW
	at org.weasis.core.ui.editor.image.MouseActions.<init>(MouseActions.java)
	at org.weasis.core.ui.editor.image.ImageViewerEventManager.<init>(ImageViewerEventManager.java)
	at org.weasis.dicom.viewer2d.EventManager.<init>(EventManager.java)
	at org.weasis.dicom.viewer2d.EventManager.getInstance(EventManager.java)
	at org.weasis.dicom.viewer2d.internal.Activator.start(Activator.java)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2398)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2304)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1535)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:748)
12.10.2018 23:02:57.134 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: AU => org.weasis.dicom.au.AuElementFactory
12.10.2018 23:02:57.141 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: ECG => org.weasis.dicom.wave.WaveElementFactory
12.10.2018 23:02:57.141 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: HD => org.weasis.dicom.wave.WaveElementFactory
Cannot not start framework: java.lang.IllegalStateException: Main User Interface bundle cannot be started
Weasis cache will be cleaned at next launch.
State of the framework:
 * org.apache.felix.framework-6.0.1 ACTIVE
 * weasis-base-viewer2d-3.0.2 ACTIVE
 * weasis-opencv-core-3.0.2 ACTIVE
 * org.apache.felix.scr-2.1.6 ACTIVE
 * javax.vecmath-1.5.2 ACTIVE
 * weasis-dicom-send-3.0.2 ACTIVE
 * org.apache.sling.commons.log-3.0.2.r3 ACTIVE
 * docking-frames-1.1.2.P20c ACTIVE
 * weasis-dicom-qr-3.0.2 ACTIVE
 * slf4j.api-1.7.25 ACTIVE
 * org.apache.felix.gogo.shell-1.1.0 ACTIVE
 * org.apache.felix.metatype-1.2.0 ACTIVE
 * org.apache.felix.bundlerepository-2.0.10 ACTIVE
 * org.glassfish.javax.json-1.0.4 ACTIVE
 * weasis-dicom-au-3.0.2 ACTIVE
 * weasis-dicom-codec-3.0.2 ACTIVE
 * org.apache.felix.prefs-1.1.0 ACTIVE
 * weasis-core-api-3.0.2 ACTIVE
 * weasis-dicom-sr-3.0.2 ACTIVE
 * weasis-dicom-explorer-3.0.2 ACTIVE
 * weasis-core-ui-3.0.2 RESOLVED
 * org.apache.felix.gogo.command-1.0.2 ACTIVE
 * org.apache.felix.configadmin-1.9.4 ACTIVE
 * weasis-imageio-codec-3.0.2 ACTIVE
 * weasis-dicom-viewer2d-3.0.2 RESOLVED
 * weasis-base-ui-3.0.2 RESOLVED
 * weasis-opencv-core-linux-x86-64-4.0.0.dcmR1 RESOLVED
 * weasis-dicom-wave-3.0.2 ACTIVE
 * org.apache.felix.gogo.runtime-1.1.0 ACTIVE
[[email protected] weasis-portable]$ 

Non in linea

#6 13-10-2018 11:22:25

bebo_sudo
Collaboratore
Da Trento+Trieste
Registrato: 28-02-2011
Messaggi: 1'874
Sito web

Re: [Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

Ciao, ho provato a girare il programma in una fedora 28 (dentro docker), e arrivo al tuo stesso errore.
Non vorrei che il fatto di essere dietro a docker faccia qualche scherzo alla parte grafica del programma (se ce n'e' una).

In ogni caso, sembra che il problema maggiore sia:

Cannot not start framework: java.lang.IllegalStateException: Main User Interface bundle cannot be started

quindi penso manchi una qualche libreria per la parte grafica, forse DCM4CHEE? Pero' non e' il mio ambito, non so aiutarti ulteriormente.

Qui ci sono i passi che ho seguito (per lanciare il docker:

# docker run --rm -it fedora:28 bash

):

# dnf install -y java-1.8.0-openjdk unzip
# mkdir weasis-3.0.2 && cd weasis-3.0.2
# curl https://netcologne.dl.sourceforge.net/project/dcm4che/Weasis/3.0.2/weasis-portable.zip > weasis-portable-3.0.2.zip
# unzip weasis-portable-3.0.2.zip 
# ./viewer-linux.sh 

Potresti provare a riportare questa sequenza di operazioni e il risultato direttamente agli sviluppatori, questo e' il loro issue tracker: https://dcm4che.atlassian.net/projects/WEA/issues (richiede account bitbucket).


devzero.tk - github.com/bebosudo
Quando posti del codice, mettilo nel tag code! (senza spazi)            [ code]così[/ code]

Non in linea

#7 14-10-2018 19:14:41

recluta
Appena sbarcato sul forum
Da Pomezia (RM)
Registrato: 05-09-2007
Messaggi: 58

Re: [Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

Se non sei riuscito tu a farlo girare, non mi rimane far altro che arrendermi.
Grazie molte comunque.
Recluta

Non in linea

#8 14-10-2018 23:35:12

tempus
Moderatore
Da Lombardia
Registrato: 16-11-2010
Messaggi: 2'309

Re: [Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

Dunque, ho provato a compilare il programma come da istruzioni e non ho notato problemi. Occorre chiaramente che una certa dotazione di strumenti di sviluppo (git, mvn...) sia presente sul tuo sistema. La snapshot funziona perfettamente, non ho provato a fare una build dell'ultima versione 3.0.2 ma non dovrebbe essere differente.

EDIT: non ho problemi nemmeno a lanciare la 3.0.2 scaricabile dal sito. Controlla di avere installato maven.


$ apropos [argomento]                         $ man [voce del manuale]
https://docs.fedoraproject.org/     |     https://apps.fedoraproject.org/     |     https://doc.fedoraonline.it

Non in linea

#9 15-10-2018 21:45:43

recluta
Appena sbarcato sul forum
Da Pomezia (RM)
Registrato: 05-09-2007
Messaggi: 58

Re: [Risolto] Programma (portable) Weasis Medical Viewer: problemi nel run

Ho installato maven ed adesso il programma funziona!
Grazie molte

Non in linea

Piè di pagina