yawls-gtk does not start

Bug #1433997 reported by Alin Andrei
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yawls
Fix Released
Medium
Dominik Brämer

Bug Description

I tried yawls-gtk 1.1.1 in Ubuntu 14.04 and 15.04 and it didn't work in either (I tried both openjdk7 as well as oracle jdk7 and jdk8)

Here's the output I get in Ubuntu 14.04 (OpenJDK7):

$ gksudo --description "Yawls" "/usr/bin/yawls -g"
 at com.blogspot.thedsweb.util.GeneratePath.<init>(Unknown Source)
 at com.blogspot.thedsweb.util.Files.readStatus(Unknown Source)
 at com.blogspot.thedsweb.gui.Show.gui(Unknown Source)
 at com.blogspot.thedsweb.main.Yawls.main(Unknown Source)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
 at com.blogspot.thedsweb.util.GeneratePath.bestChoice(Unknown Source)
 at com.blogspot.thedsweb.util.GeneratePath.<init>(Unknown Source)
 at com.blogspot.thedsweb.util.Files.readStatus(Unknown Source)
 at com.blogspot.thedsweb.gui.Show.gui(Unknown Source)
 at com.blogspot.thedsweb.main.Yawls.main(Unknown Source)

Ubuntu 15.04 (Oracle JDK8):

$ gksudo --description "Yawls" "/usr/bin/yawls -g"
DANGER: GLib-GObject-WARNING, The property GtkAlignment:top-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
DANGER: GLib-GObject-WARNING, The property GtkAlignment:bottom-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
DANGER: GLib-GObject-WARNING, The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
DANGER: GLib-GObject-WARNING, The property GtkAlignment:right-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
DANGER: GLib-GObject-WARNING, The property GtkImageMenuItem:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
DANGER: GLib-GObject-WARNING, The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
DANGER: GLib-GObject-WARNING, The property GtkImageMenuItem:image is deprecated and shouldn't be used anymore. It will be removed in a future version.
DANGER: GLib-GObject-WARNING, The property GtkWidget:margin-right is deprecated and shouldn't be used anymore. It will be removed in a future version.
DANGER: GLib-GObject-WARNING, The property GtkWidget:margin-left is deprecated and shouldn't be used anymore. It will be removed in a future version.
Exception in thread "main" org.gnome.glib.FatalError: GLib-GObject-WARNING
The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
 at org.gnome.gtk.GtkBuilder.gtk_builder_add_from_file(Native Method)
 at org.gnome.gtk.GtkBuilder.addFromFile(GtkBuilder.java:76)
 at org.gnome.gtk.Builder.addFromFile(Builder.java:105)
 at com.blogspot.thedsweb.gui.Show.gui(Unknown Source)
 at com.blogspot.thedsweb.main.Yawls.main(Unknown Source)

Changed in yawls:
status: New → Incomplete
Revision history for this message
Dominik Brämer (thedsweb) wrote :

These are two different issues the first one has something to do with the Backlight folder of sysfs (/sys/class/backlight/...) the error you get is very similar to the error if there is no controlable backlight device but in this case their is also a NoBacklightDeviceFoundException. So here is my question have you try to run yawls on an desktop or notebook because yawls needs a hardware backlight to change the brightness value in this this file

/sys/class/backlight/[backlight device]/backlight

The second one has maybe something to do with the glade files of yawls and the newer version of glib in ubuntu 15.04.

Revision history for this message
Alin Andrei (nilarimogard) wrote :

The first one was tested in VirtualBox (to see if it works under other Ubuntu versions since it wasn't working on my laptop under Ubuntu 15.04) so I guess that's why... I didn't know it would refuse to start if backlight wasn't controllable.

Revision history for this message
Dominik Brämer (thedsweb) wrote :

The calibration wizard of the GUI try to load in background and produce the error because it needs the path to work.
That describes why you get the error in VirtualBox.
The other error is as I already mentioned because of the newer glib version of Ubuntu 15.04. I will try to fix it as soon as I can and post than a hopefully patched version here as attachment.
Another question are there also problems with the command line version under Ubuntu 15.04.

Changed in yawls:
status: Incomplete → Triaged
Changed in yawls:
importance: Undecided → Medium
assignee: nobody → Dominik Brämer (thedsweb)
Revision history for this message
Alin Andrei (nilarimogard) wrote :

The command line version seems to be working properly.

Revision history for this message
Dominik Brämer (thedsweb) wrote :

Here is a complete new version of yawls which hopefully fix the GUI problem

Revision history for this message
Dominik Brämer (thedsweb) wrote :

Yawls Version 1.2.0 BETA

Revision history for this message
Giovanni Santini (itachi-san) wrote :

Fond this while working on Archlinux package: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789851
TL;DR
Setting the variable G_ENABLE_DIAGNOSTIC=0 prevents these errors, so
gksudo --description "Yawls" "env G_ENABLE_DIAGNOSTIC=0 /usr/bin/yawls -g"
should do the trick.

Changed in yawls:
status: Triaged → Fix Released
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.