sweethome3d couldn't start: Exception in thread "AWT-EventQueue-0" java.util.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi: Provider org.freehep.graphicsio.raw.RawImageWriterSpi not found

Bug #1446557 reported by Maksym Strukov
64
This bug affects 11 people
Affects Status Importance Assigned to Milestone
sweethome3d (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

maxik@power:~$ lsb_release -rd
Description: Ubuntu 15.04
Release: 15.04

maxik@power:~$ sudo aptitude install sweethome3d sweethome3d-furniture-nonfree
The following NEW packages will be installed:
  janino{a} javahelp2{a} junit{a} libbcmail-java{a} libbcpkix-java{a} libbcprov-java{a} libfreehep-export-java{a} libfreehep-graphics2d-java{a}
  libfreehep-graphicsio-java{a} libfreehep-graphicsio-svg-java{a} libfreehep-graphicsio-tests-java{a} libfreehep-io-java{a} libfreehep-swing-java{a}
  libfreehep-util-java{a} libfreehep-xml-java{a} libgnuinet-java{a} libgnumail-java{a} libitext-java{a} libjanino-java{a} libjas-plotter-java{a}
  libnb-org-openide-util-java{a} libnb-org-openide-util-lookup-java{a} libsunflow-java{a} libtablelayout-java{a} sweethome3d sweethome3d-furniture{a}
  sweethome3d-furniture-nonfree
...

maxik@power:~$ apt-cache policy sweethome3d
sweethome3d:
  Installed: 4.5+dfsg-3
  Candidate: 4.5+dfsg-3
  Version table:
 *** 4.5+dfsg-3 0
        500 http://ua.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
        100 /var/lib/dpkg/status

maxik@power:~$ sweethome3d
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Java 3D: implicit antialiasing enabled
Exception in thread "AWT-EventQueue-0" java.util.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi: Provider org.freehep.graphicsio.raw.RawImageWriterSpi not found
 at java.util.ServiceLoader.fail(ServiceLoader.java:231)
 at java.util.ServiceLoader.access$300(ServiceLoader.java:181)
 at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:365)
 at java.util.ServiceLoader$1.next(ServiceLoader.java:445)
 at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:210)
 at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:138)
 at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159)
 at javax.imageio.ImageIO.<clinit>(ImageIO.java:65)
 at com.eteks.sweethome3d.swing.SwingTools.createCustomCursor(Unknown Source)
 at com.eteks.sweethome3d.swing.PlanComponent.createCustomCursor(Unknown Source)
 at com.eteks.sweethome3d.swing.PlanComponent.createCustomCursor(Unknown Source)
 at com.eteks.sweethome3d.swing.PlanComponent.<init>(Unknown Source)
 at com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.createPlanComponent(Unknown Source)
 at com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.createComponents(Unknown Source)
 at com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.<init>(Unknown Source)
 at com.eteks.sweethome3d.swing.SwingViewFactory.createPlanView(Unknown Source)
 at com.eteks.sweethome3d.viewcontroller.PlanController.getView(Unknown Source)
 at com.eteks.sweethome3d.viewcontroller.PlanController$SelectionState.enter(Unknown Source)
 at com.eteks.sweethome3d.viewcontroller.PlanController.setState(Unknown Source)
 at com.eteks.sweethome3d.viewcontroller.PlanController.<init>(Unknown Source)
 at com.eteks.sweethome3d.viewcontroller.HomeController.getPlanController(Unknown Source)
 at com.eteks.sweethome3d.swing.HomePane.createActions(Unknown Source)
 at com.eteks.sweethome3d.swing.HomePane.<init>(Unknown Source)
 at com.eteks.sweethome3d.swing.SwingViewFactory.createHomeView(Unknown Source)
 at com.eteks.sweethome3d.viewcontroller.HomeController.getView(Unknown Source)
 at com.eteks.sweethome3d.HomeFramePane.<init>(Unknown Source)
 at com.eteks.sweethome3d.HomeFrameController.getView(Unknown Source)
 at com.eteks.sweethome3d.HomeFrameController.displayView(Unknown Source)
 at com.eteks.sweethome3d.SweetHome3D$4.collectionChanged(Unknown Source)
 at com.eteks.sweethome3d.model.CollectionChangeSupport.fireCollectionChanged(Unknown Source)
 at com.eteks.sweethome3d.model.HomeApplication.addHome(Unknown Source)
 at com.eteks.sweethome3d.SweetHome3D.showDefaultHomeFrame(Unknown Source)
 at com.eteks.sweethome3d.SweetHome3D.start(Unknown Source)
 at com.eteks.sweethome3d.SweetHome3D$5.run(Unknown Source)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
 at java.awt.EventQueue.access$300(EventQueue.java:103)
 at java.awt.EventQueue$3.run(EventQueue.java:706)
 at java.awt.EventQueue$3.run(EventQueue.java:704)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
^C

sweethome3d couldn't start

Tags: vivid wily
Revision history for this message
Maxime Chéramy (maxime81) wrote :

Exact same problem with Debian Jessie.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sweethome3d (Ubuntu):
status: New → Confirmed
Revision history for this message
Pedro Torres (pedels) wrote :

Same problem, Ubunutu 15.04 upgraded from 14.10.

Revision history for this message
Patrick Grioni (lordpkappa) wrote :

Same problem here with Ubuntu 15.04

Revision history for this message
Mashathung (mashathung) wrote :

Same problem in Ubuntu 15.04 (fresh installation) with some additional error as shown below
------------------------------------------------------------
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Java 3D: implicit antialiasing enabled

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(java:5799): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Exception in thread "AWT-EventQueue-0" java.util.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi: Provider org.freehep.graphicsio.raw.RawImageWriterSpi not found..........................

------------------------------------------------------------

Revision history for this message
Patrick Grioni (lordpkappa) wrote :

Any workaround so far?

Revision history for this message
Pedro Torres (pedels) wrote :

As a workaround I downloaded the application from the Sweet Home 3D site:

http://www.sweethome3d.com/es/download.jsp

or directly from sourceforge:

http://sourceforge.net/projects/sweethome3d/files/SweetHome3D/SweetHome3D-4.6/

Choose x86 or x64 depending on your system and it works out of the box. Just extract it in any folder under your home and execute. No installation needed.

It can open all my files without problems and so I can use the application until the repo version is fixed.

Revision history for this message
Patrick Grioni (lordpkappa) wrote :

Yes i'll do the same.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I also get the same error message with sweethome3d 4.5+dfsg-3 on Ubuntu Wily.

To the person who mentioned this also affected Debian, do you know if this has been reported there, and if there's a bug number we could watch?

tags: added: vivid wily
Changed in sweethome3d (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Maksym Strukov (unbelll) wrote :

As a workaround it works fine from sudo/root.

Revision history for this message
Jocelyn (jocelyn-j) wrote :

Launching the program with the following command line works correctly:
export JAVA_TOOL_OPTIONS=""; sweethome3

JAVA_TOOL_OPTIONS was set to "-javaagent:/usr/share/java/jayatanaag.jar", but I couldn't find where this environment variable is set.

Revision history for this message
billcho (phybillcho) wrote :

Try to edit the "sweethome3d.sh"
> sudo gedit /usr/share/sweethome3d/sweethome3d.sh
# add the following line before ". /usr/lib/java-wrappers/java-wrappers.sh"
JAVA_TOOL_OPTIONS=""

Revision history for this message
Maksym Strukov (unbelll) wrote :

Works fine in 15.10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.