Bug#815981: findbugs: does not start without root permissions

2016-02-28 Thread Luca Ghio
On Sun, 28 Feb 2016 14:44:04 -0800 tony mancill  wrote:
> Hmmm... What window manager are you using?  It's a bit suspicious that
> the application works correctly as root but not as a normal user for you.
I'm using KWin.

$ apt-cache policy kwin-x11
kwin-x11:
  Installed: 4:5.4.3-1.1
  Candidate: 4:5.4.3-1.1
  Version table:
 *** 4:5.4.3-1.1 990
990 http://ftp.de.debian.org/debian testing/main amd64 Packages
100 /var/lib/dpkg/status

> You might want to check the ownership of the files beneath:
> 
>   ~/.java/.userPreferences/edu/umd/cs/findbugs/
> 
That folder doesn't exist, but I have folder 
~/.java/.userPrefs/edu/umd/cs/findbugs
The current user has all permissions and ownerships on all files and folders.

> findbugs is going to want to write a prefs.xml file beneath that tree.
> If the permissions and ownership all look reasonable, you might try
> deleting the entire tree with:
> 
>   rm -rf ~/.java/.userPreferences/edu/umd/cs/findbugs
I tried, then I run findbugs and the folder was NOT created back.

> You can use "sudo update-alternatives --config java" to set this up
> system-wide.
Tried still with no luck.



Bug#815981: findbugs: does not start without root permissions

2016-02-28 Thread tony mancill
On 02/28/2016 02:19 PM, Luca Ghio wrote:
> On Sun, 28 Feb 2016 14:05:56 -0800 tony mancill  wrote:
>> Specifically, if you could try the fix suggested in the following and
>> report your findings, that would be helpful.
>>
>>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802701#25
> 
> No, it doesn't work.

Hmmm... What window manager are you using?  It's a bit suspicious that
the application works correctly as root but not as a normal user for you.

You might want to check the ownership of the files beneath:

  ~/.java/.userPreferences/edu/umd/cs/findbugs/


findbugs is going to want to write a prefs.xml file beneath that tree.
If the permissions and ownership all look reasonable, you might try
deleting the entire tree with:

  rm -rf ~/.java/.userPreferences/edu/umd/cs/findbugs

> I also tried to change the "/usr/lib/jvm/default-java" link to 
> "java-1.8.0-openjdk-amd64" with no luck.

I tried going back and forth between 1.7 an 1.8 and wasn't able to cause
it to fail, so I don't think that's related.  Note however that the
wrapper script resolves "java" via /etc/alternatives/java, which points
directly to "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" on my
system, so changing "/usr/lib/jvm/default-java" may not have had the
desired effect.

You can use "sudo update-alternatives --config java" to set this up
system-wide.

Thank you,
tony



signature.asc
Description: OpenPGP digital signature


Bug#815981: findbugs: does not start without root permissions

2016-02-28 Thread Luca Ghio
On Sun, 28 Feb 2016 14:05:56 -0800 tony mancill  wrote:
> Specifically, if you could try the fix suggested in the following and
> report your findings, that would be helpful.
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802701#25

No, it doesn't work.

I also tried to change the "/usr/lib/jvm/default-java" link to 
"java-1.8.0-openjdk-amd64" with no luck.



Bug#815981: findbugs: does not start without root permissions

2016-02-28 Thread tony mancill
Control: tag -1 + unreproducible
Control: severity -1 important

On 02/26/2016 03:01 AM, Luca Ghio wrote:
> Package: findbugs
> Version: 3.0.1-2
> Severity: grave
> Justification: renders package unusable
> 
> Dear Maintainer,
> I installed the findbugs package and I launched it by the following command:
> 
> $ findbugs
> 
> The window of the GUI opened, so I clicked the "File" menu and the application
> froze.

Hi Luca,

Thank you for the bug report.  I am not able to reproduce this bug
locally, but I believe it might be related to other reports of issues
with hangs related to GUI-based applications that use threads, for example:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797595
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814901
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802701

Specifically, if you could try the fix suggested in the following and
report your findings, that would be helpful.

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802701#25

I am also modifying the severity of the bug to important from grave.
findbugs is used in contexts other than just the GUI mode (for example,
on the command-line as part of a build chain), and does work in that
context and also as a GUI for others.

Thank you,
tony



signature.asc
Description: OpenPGP digital signature


Bug#815981: findbugs: does not start without root permissions

2016-02-26 Thread Luca Ghio
Package: findbugs
Version: 3.0.1-2
Severity: grave
Justification: renders package unusable

Dear Maintainer,
I installed the findbugs package and I launched it by the following command:

$ findbugs

The window of the GUI opened, so I clicked the "File" menu and the application
froze.

The console printed out:

(java:6177): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0'
failed

(java:6177): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
'GDK_IS_SCREEN (screen)' failed

I had to close the running process, which was the following one (under "ps
-fe"):

java -classpath
/usr/share/findbugs/lib/findbugs.jar:/usr/share/java/dom4j.jar:/usr/share/java/junit4.jar:/usr/share/java
/commons-
lang.jar:/usr/share/java/jaxen.jar:/usr/share/java/jdepend.jar:/usr/share/java/asm4.jar:/usr/share/java/asm4-commons.jar:/usr/share/java/asm4-tree.jar:/usr/share/java/ant.jar:/usr/share/java/jcip.jar:/usr/share/java/jsr305.jar:/usr/share/java/jFormatString.jar:/usr/share/java/bcel.jar
-Dfindbugs.home=/usr/share/findbugs -Xmx768m
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
edu.umd.cs.findbugs.LaunchAppropriateUI

The application appears to work when:

1) launching the following command:
$ java -jar /usr/share/java/findbugs.jar

2) running it under root permissions, e.g.:
# findbugs



-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (990, 'testing-updates'), (990, 'testing'), (500, 'unstable'), 
(500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages findbugs depends on:
ii  default-jre [java7-runtime]2:1.7-52.1
ii  java-wrappers  0.1.28
ii  junit4 4.12-4
ii  libasm4-java   5.0.4-1
ii  libbcel-java   6.0~rc3-2
ii  libcommons-lang-java   2.6-6
ii  libdom4j-java  1.6.1+dfsg.3-2
ii  libjaxen-java  1.1.6-1
ii  libjcip-annotations-java   20060626-5
ii  libjdepend-java2.9.1-1
ii  libjformatstring-java  0.10~20131207-1
ii  libjsr305-java 0.1~+svn49-9
ii  openjdk-7-jre [java7-runtime]  7u91-2.6.3-1
ii  openjdk-8-jre [java7-runtime]  8u72-b05-6

findbugs recommends no packages.

findbugs suggests no packages.

-- no debconf information