2016-03-14 15:02:44 |
Václav Šmilauer |
bug |
|
|
added bug |
2016-05-02 07:43:24 |
Launchpad Janitor |
imagej (Ubuntu): status |
New |
Confirmed |
|
2016-05-02 07:47:06 |
Éric Piel (Delmic) |
bug watch added |
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820097 |
|
2016-05-02 07:47:57 |
Éric Piel (Delmic) |
bug |
|
|
added subscriber Éric Piel (Delmic) |
2016-05-15 13:34:59 |
Alberto Salvia Novella |
imagej (Ubuntu): importance |
Undecided |
Medium |
|
2016-05-15 13:35:22 |
Alberto Salvia Novella |
bug task added |
|
hundredpapercuts |
|
2016-05-15 13:35:27 |
Alberto Salvia Novella |
hundredpapercuts: status |
New |
Confirmed |
|
2016-05-15 13:35:29 |
Alberto Salvia Novella |
hundredpapercuts: importance |
Undecided |
Medium |
|
2016-05-29 16:56:05 |
Dylan Aïssi |
bug task added |
|
imagej (Debian) |
|
2016-05-30 15:13:17 |
Bug Watch Updater |
imagej (Debian): status |
Unknown |
Fix Released |
|
2016-08-25 16:13:29 |
Vincent Gerris |
bug |
|
|
added subscriber Vincent Gerris |
2016-09-06 20:07:15 |
Nish Aravamudan |
bug |
|
|
added subscriber Nish Aravamudan |
2016-10-29 11:37:01 |
Amr Ibrahim |
bug |
|
|
added subscriber Amr Ibrahim |
2017-02-28 11:47:41 |
Gianfranco Costamagna |
imagej (Ubuntu): status |
Confirmed |
Fix Released |
|
2017-02-28 11:48:48 |
Gianfranco Costamagna |
nominated for series |
|
Ubuntu Zesty |
|
2017-02-28 11:48:48 |
Gianfranco Costamagna |
bug task added |
|
imagej (Ubuntu Zesty) |
|
2017-02-28 11:48:48 |
Gianfranco Costamagna |
nominated for series |
|
Ubuntu Yakkety |
|
2017-02-28 11:48:48 |
Gianfranco Costamagna |
bug task added |
|
imagej (Ubuntu Yakkety) |
|
2017-02-28 11:48:48 |
Gianfranco Costamagna |
nominated for series |
|
Ubuntu Xenial |
|
2017-02-28 11:48:48 |
Gianfranco Costamagna |
bug task added |
|
imagej (Ubuntu Xenial) |
|
2017-02-28 11:49:27 |
Gianfranco Costamagna |
summary |
JAVA_HOME auto-detection fails due to whitespace in update-java-alternatives output |
[SRU] JAVA_HOME auto-detection fails due to whitespace in update-java-alternatives output |
|
2017-02-28 11:50:08 |
Gianfranco Costamagna |
imagej (Ubuntu Yakkety): status |
New |
Fix Committed |
|
2017-02-28 11:50:11 |
Gianfranco Costamagna |
imagej (Ubuntu Xenial): status |
New |
Fix Committed |
|
2017-02-28 11:51:51 |
Gianfranco Costamagna |
imagej (Ubuntu Yakkety): status |
Fix Committed |
Fix Released |
|
2017-02-28 11:54:12 |
Gianfranco Costamagna |
bug |
|
|
added subscriber LocutusOfBorg |
2017-02-28 11:54:18 |
Gianfranco Costamagna |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2017-02-28 11:54:47 |
Gianfranco Costamagna |
bug |
|
|
added subscriber SRU Verification |
2017-02-28 11:56:20 |
Gianfranco Costamagna |
description |
Running imagej fails with the following message:
Open other images in this ImageJ panel as follows:
imagej -p 3 <image1> [<image2> ... <imageN>]
No JVM found to run ImageJ
Please apt-get install a JVM to run ImageJ or
set JAVA_HOME if it's not a JVM from a Debian Package.
even though multiple JVM's are installed here.
The problem is that the /usr/bin/imagej script detects JAVA_HOME using
JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | grep openjdk | sort | tail -1 | cut -d' ' -f 3)
which is empty as the output of update-java-alternatives -l is (note multiple spaces between columns):
java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64
java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
and cut -d' ' -f3 selects space. The solution is to squeeze multiple spaces before running cut, so the line should read:
JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | grep openjdk | sort | tail -1 | tr -s ' ' | cut -d' ' -f 3)
which then gives the correct output (/usr/lib/jvm/java-1.8.0-openjdk-amd64 in my case) and makes imagej run as expected.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: imagej 1.50d+dfsg-1
ProcVersionSignature: Ubuntu 3.19.0-49.55-lowlatency 3.19.8-ckt12
Uname: Linux 3.19.0-49-lowlatency x86_64
NonfreeKernelModules: btrfs ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c pci_stub binfmt_misc cfg80211 joydev hid_logitech_hidpp snd_hda_codec_hdmi snd_hda_intel snd_hda_controller eeepc_wmi asus_wmi sparse_keymap snd_hda_codec x86_pkg_temp_thermal intel_powerclamp video snd_hwdep snd_pcm snd_seq_midi kvm_intel snd_seq_midi_event kvm snd_rawmidi crct10dif_pclmul snd_seq crc32_pclmul snd_seq_device snd_timer snd aesni_intel sb_edac aes_x86_64 lrw soundcore gf128mul glue_helper edac_core ablk_helper serio_raw mei_me cryptd mei lpc_ich tpm_infineon 8250_fintek shpchp mac_hid nct6775 hwmon_vid coretemp parport_pc ppdev nfsd lp auth_rpcgss nfs_acl lockd grace sunrpc parport autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq raid0 multipath linear hid_logitech_dj usbhid hid raid1 amdkfd amd_iommu_v2 mxm_wmi radeon igb ttm drm_kms_helper dca psmouse ptp drm ahci pps_core libahci i2c_algo_bit wmi
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Mar 14 15:56:23 2016
PackageArchitecture: all
SourcePackage: imagej
UpgradeStatus: Upgraded to xenial on 2012-03-12 (1463 days ago) |
[Impact]
* running imagej with auto detected JAVA_HOME fails
[Test Case]
* run it
[Regression Potential]
* none, this is a bug because update-java-alternatives has a whitespace in its output, and parsing fails
[Other Info]
Running imagej fails with the following message:
Open other images in this ImageJ panel as follows:
imagej -p 3 <image1> [<image2> ... <imageN>]
No JVM found to run ImageJ
Please apt-get install a JVM to run ImageJ or
set JAVA_HOME if it's not a JVM from a Debian Package.
even though multiple JVM's are installed here.
The problem is that the /usr/bin/imagej script detects JAVA_HOME using
JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | grep openjdk | sort | tail -1 | cut -d' ' -f 3)
which is empty as the output of update-java-alternatives -l is (note multiple spaces between columns):
java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64
java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
and cut -d' ' -f3 selects space. The solution is to squeeze multiple spaces before running cut, so the line should read:
JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | grep openjdk | sort | tail -1 | tr -s ' ' | cut -d' ' -f 3)
which then gives the correct output (/usr/lib/jvm/java-1.8.0-openjdk-amd64 in my case) and makes imagej run as expected.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: imagej 1.50d+dfsg-1
ProcVersionSignature: Ubuntu 3.19.0-49.55-lowlatency 3.19.8-ckt12
Uname: Linux 3.19.0-49-lowlatency x86_64
NonfreeKernelModules: btrfs ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c pci_stub binfmt_misc cfg80211 joydev hid_logitech_hidpp snd_hda_codec_hdmi snd_hda_intel snd_hda_controller eeepc_wmi asus_wmi sparse_keymap snd_hda_codec x86_pkg_temp_thermal intel_powerclamp video snd_hwdep snd_pcm snd_seq_midi kvm_intel snd_seq_midi_event kvm snd_rawmidi crct10dif_pclmul snd_seq crc32_pclmul snd_seq_device snd_timer snd aesni_intel sb_edac aes_x86_64 lrw soundcore gf128mul glue_helper edac_core ablk_helper serio_raw mei_me cryptd mei lpc_ich tpm_infineon 8250_fintek shpchp mac_hid nct6775 hwmon_vid coretemp parport_pc ppdev nfsd lp auth_rpcgss nfs_acl lockd grace sunrpc parport autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq raid0 multipath linear hid_logitech_dj usbhid hid raid1 amdkfd amd_iommu_v2 mxm_wmi radeon igb ttm drm_kms_helper dca psmouse ptp drm ahci pps_core libahci i2c_algo_bit wmi
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Mar 14 15:56:23 2016
PackageArchitecture: all
SourcePackage: imagej
UpgradeStatus: Upgraded to xenial on 2012-03-12 (1463 days ago) |
|
2017-03-02 20:42:06 |
Brian Murray |
tags |
amd64 apport-bug xenial |
amd64 apport-bug verification-needed xenial |
|
2017-03-06 15:20:34 |
Amr Ibrahim |
hundredpapercuts: status |
Confirmed |
Fix Released |
|
2017-03-08 10:19:29 |
Gianfranco Costamagna |
tags |
amd64 apport-bug verification-needed xenial |
amd64 apport-bug verification-done xenial |
|
2017-03-09 23:19:45 |
Launchpad Janitor |
imagej (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|
2017-03-09 23:19:50 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|