This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 13 - Pages: 1 - Last Post: 04-Nov-2019 14:25 Last Post By: karlmistelberger Threads: [ Previous | Next ]
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
jAlbum 19.1 comes with broken bundled java
Posted: 31-Oct-2019 15:42
 
  Click to reply to this thread Reply
Installed latest and greatest rpm. Building an album fails.

Error of bundled java.

Command: LANG=en_GB.utf8 /usr/lib/jalbum/jre64/bin/java -jar /usr/lib/jalbum/JAlbum.jar

Console error message:

Executing /home/karl/.jalbum/bin/ffmpeg -y -i /home/Albums/Tiger/2016-07-08/p1070937.mp4 -threads 0 -b:a 96k -ac 2 -ar 44100 -vcodec libx264 -crf 28 -metadata:s:v:0 rotate=0 -movflags faststart -pix_fmt yuv420p /home/Albums/jAlbums/Tiger/2016-07-08/slides/p1070937.mp4
java.io.IOException: Cannot run program "/home/karl/.jalbum/bin/ffmpeg": error=13, Keine Berechtigung

System java however works fine.

Command: LANG=en_GB.utf8 /usr/lib64/jvm/jre-13-openjdk/bin/java --module-path /home/karl/Downloads/javafx-sdk-13.0.1/lib --add-modules=javafx.graphics,javafx.swing,javafx.web -jar /usr/lib/jalbum/JAlbum.jar

Console success message:

Executing /home/karl/.jalbum/bin/ffmpeg -y -i /home/Albums/Tiger/2016-07-08/p1070937.mp4 -threads 0 -b:a 96k -ac 2 -ar 44100 -vcodec libx264 -crf 28 -metadata:s:v:0 rotate=0 -movflags faststart -pix_fmt yuv420p /home/Albums/jAlbums/Tiger/2016-07-08/slides/p1070937.mp4
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9 (SUSE Linux)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g' --optflags='-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-gpl --disable-openssl --enable-avresample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcelt --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libssh --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lto --enable-lv2 --enable-libmfx --enable-vaapi --enable-vdpau --enable-libfdk-aac-dlopen --enable-nonfree --enable-libvo-amrwbenc --enable-version3 --enable-libx264 --enable-libx265 --enable-librtmp --enable-libxvid
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/Albums/Tiger/2016-07-08/p1070937.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    creation_time   : 2016-07-08T14:29:43.000000Z
  Duration: 00:00:20.16, start: 0.000000, bitrate: 4087 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(bt709), 640x480 [SAR 1:1 DAR 4:3], 3676 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2016-07-08T14:29:43.000000Z
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2016-07-08T14:29:43.000000Z
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x563390ef1080] using SAR=1/1
[libx264 @ 0x563390ef1080] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x563390ef1080] profile High, level 3.0
[libx264 @ 0x563390ef1080] 264 - core 155 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=28.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/home/Albums/jAlbums/Tiger/2016-07-08/slides/p1070937.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    encoder         : Lavf58.29.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2016-07-08T14:29:43.000000Z
      encoder         : Lavc58.54.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2016-07-08T14:29:43.000000Z
      encoder         : Lavc58.54.100 aac
frame=   75 fps=0.0 q=33.0 size=       0kB time=00:00:02.83 bitrate=   0.1kbits/s speed=5.53x    
frame=  133 fps=131 q=33.0 size=     256kB time=00:00:05.22 bitrate= 401.5kbits/s speed=5.14x    
frame=  188 fps=123 q=33.0 size=     256kB time=00:00:07.15 bitrate= 293.3kbits/s speed=4.69x    
frame=  242 fps=118 q=33.0 size=     512kB time=00:00:09.54 bitrate= 439.5kbits/s speed=4.67x    
frame=  295 fps=116 q=33.0 size=     768kB time=00:00:11.47 bitrate= 548.5kbits/s speed= 4.5x    
frame=  352 fps=115 q=33.0 size=    1024kB time=00:00:13.86 bitrate= 605.2kbits/s speed=4.54x    
frame=  410 fps=115 q=33.0 size=    1024kB time=00:00:16.25 bitrate= 516.1kbits/s speed=4.57x    
frame=  464 fps=114 q=33.0 size=    1280kB time=00:00:18.29 bitrate= 573.1kbits/s speed=4.51x    
[mp4 @ 0x563390f17840] Starting second pass: moving the moov atom to the beginning of the file
frame=  504 fps=107 q=-1.0 Lsize=    1675kB time=00:00:20.17 bitrate= 680.1kbits/s speed=4.29x    
video:1422kB audio:236kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.058821%
[libx264 @ 0x563390ef1080] frame I:3     Avg QP:27.63  size: 11977
[libx264 @ 0x563390ef1080] frame P:175   Avg QP:29.56  size:  5212
[libx264 @ 0x563390ef1080] frame B:326   Avg QP:33.25  size:  1556
[libx264 @ 0x563390ef1080] consecutive B-frames: 11.1%  5.2%  8.3% 75.4%
[libx264 @ 0x563390ef1080] mb I  I16..4: 18.3% 66.1% 15.5%
[libx264 @ 0x563390ef1080] mb P  I16..4:  3.0%  7.1%  1.5%  P16..4: 51.8% 10.9%  4.8%  0.0%  0.0%    skip:20.9%
[libx264 @ 0x563390ef1080] mb B  I16..4:  0.3%  1.0%  0.1%  B16..8: 44.9%  3.4%  0.5%  direct: 1.3%  skip:48.4%  L0:47.5% L1:48.5% BI: 4.0%
[libx264 @ 0x563390ef1080] 8x8 transform intra:63.0% inter:79.3%
[libx264 @ 0x563390ef1080] coded y,uvDC,uvAC intra: 48.5% 69.0% 21.6% inter: 12.7% 11.0% 0.1%
[libx264 @ 0x563390ef1080] i16 v,h,dc,p: 15% 34% 18% 32%
[libx264 @ 0x563390ef1080] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 15% 26%  4% 10%  9% 10%  6%  6%
[libx264 @ 0x563390ef1080] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 18% 21%  4% 12%  9% 10%  3%  4%
[libx264 @ 0x563390ef1080] i8c dc,h,v,p: 62% 19% 16%  3%
[libx264 @ 0x563390ef1080] Weighted P-Frames: Y:2.3% UV:1.1%
[libx264 @ 0x563390ef1080] ref P L0: 58.8% 16.8% 15.1%  9.0%  0.3%
[libx264 @ 0x563390ef1080] ref B L0: 92.7%  5.1%  2.2%
[libx264 @ 0x563390ef1080] ref B L1: 98.2%  1.8%
[libx264 @ 0x563390ef1080] kb/s:577.45
[aac @ 0x563390eec640] Qavg: 1157.857
davidekholm

Posts: 3,564
Registered: 18-Oct-2002
Re: jAlbum 19.1 comes with broken bundled java
Posted: 31-Oct-2019 16:56   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
Thanks for reporting. Problem confirmed. It's a Java level bug that's been introduced lately for Java for Linux. I've reverted to Java 12 on Linux (instead of Java 13). Just grab the latest Linux version of jAlbum from our site and install again, and the problem should be gone.

This problem has already been reported.

I also noticed that with Java 13 on Linux, I could no longer open directories from within jAlbum (CTRL+SHIFT+O for instance).
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: jAlbum 19.1 comes with broken bundled java
Posted: 31-Oct-2019 18:52   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Thanks for reporting. Problem confirmed. It's a Java level bug that's been introduced lately for Java for Linux. I've reverted to Java 12 on Linux (instead of Java 13). Just grab the latest Linux version of jAlbum from our site and install again, and the problem should be gone.

I don't agree:

  • jAlbum 19.1-1 works perfectly when using the java-13-openjdk and javafx-sdk-13.0.1
  • it fails when using stuff from folder /usr/lib/jalbum/jre64 coming with jAlbum 19.1-1.

This problem has already been reported.

I am not aware of any reports on this. Please present a link.

I also noticed that with Java 13 on Linux, I could no longer open directories from within jAlbum (CTRL+SHIFT+O for instance).

I don't agree. CTRL+SHIFT+O works fine on my machines using java-13-openjdk and javafx-sdk-13.0.1.


I think, it's up to jAlbum to bundle the software with a working copy of java-13-openjdk / javafx-sdk-13.0.1.
davidekholm

Posts: 3,564
Registered: 18-Oct-2002
Re: jAlbum 19.1 comes with broken bundled java
Posted: 01-Nov-2019 12:51   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
You're right Karl. It was a build script error, but amazingly that error didn't affect versions prior to v13. The root problem is that the tarfileset of the ant build script we use doesn't preserve file permissions (was probably developed in the days when Java couldn't read file permissions). Given that, the "lib/jspawnhelper" file didn't get exec permission. Why this hasn't affected earlier releases beats me. I assume java didn't use that helper file as much as on v13.

I've now adjusted the build scripts for the .deb and .rpm archives to explicitly set 755 file permissions on the files that should have them (6 in total). I'd appreciate if you can download and test the .rpm archive for me. I've verified the .deb archive to work properly.
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: jAlbum 19.1 comes with broken bundled java
Posted: 01-Nov-2019 13:45   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
You're right Karl. It was a build script error, but amazingly that error didn't affect versions prior to v13. The root problem is that the tarfileset of the ant build script we use doesn't preserve file permissions (was probably developed in the days when Java couldn't read file permissions). Given that, the "lib/jspawnhelper" file didn't get exec permission. Why this hasn't affected earlier releases beats me. I assume java didn't use that helper file as much as on v13.

I've now adjusted the build scripts for the .deb and .rpm archives to explicitly set 755 file permissions on the files that should have them (6 in total). I'd appreciate if you can download and test the .rpm archive for me. I've verified the .deb archive to work properly.


Tried to install and got a fatal error:

erlangen:~ # zypper install --oldpackage jalbum-19.1-1.x86_64
Loading repository data...
Reading installed packages...
Resolving package dependencies...
 
The following NEW package is going to be installed:
  jalbum
 
1 new package to install.
Overall download size: 115.0 MiB. Already cached: 0 B. After the operation, additional 266.7 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving package jalbum-19.1-1.x86_64                                                                                                                                                                                                   (1/1), 115.0 MiB (266.7 MiB unpacked)
Retrieving: jalbum-19.1-1.x86_64.rpm ......................................................................................................................................................................................................................[done (893.2 KiB/s)]
 
Checking for file conflicts: ............................................................................................................................................................................................................................................[done]
(1/1) Installing: jalbum-19.1-1.x86_64 .................................................................................................................................................................................................................................[error]
Installation of jalbum-19.1-1.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed: cpio: Archive file not in header                                                                                                                                                              
error: jalbum-0:19.1-1.x86_64: install failed                                                                                                                                                                                                                                  
 
Abort, retry, ignore? [a/r/i] (a): i
erlangen:~ # 

Anyway when the above got fixed jalbum-19.1.1-1.x86_64.rpm, 121736340 bytes, Oct 31, 2019 4:52:11 PM should be deleted.

davidekholm

Posts: 3,564
Registered: 18-Oct-2002
Re: jAlbum 19.1 comes with broken bundled java
Posted: 03-Nov-2019 13:47   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
Weird. What if you manually uninstall first and ensure that no jAlbum files are left?
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: jAlbum 19.1 comes with broken bundled java
Posted: 03-Nov-2019 14:28   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Weird. What if you manually uninstall first and ensure that no jAlbum files are left?

I set up a pristine operating system openSUSE Tumbleweed 20191030 on host linux-u5ye.

  • installed jalbum-19.1-1.x86_64.rpm, 120572819 bytes, Nov 1, 2019 12:44:13 PM and got an installation error.
  • ran zypper install --oldpackage jalbum-19 and got a running version:

 
linux-u5ye:~ # grep jalbum /var/log/zypp/history 
 
# add repo to the machine
 
2019-11-02 20:58:39|radd   |jalbum|http://jalbum.net/download/software/yumrepo/|
 
# fail when doing the install into a pristine system
 
2019-11-02 21:03:15|command|root@linux-u5ye|'zypper' 'in' '--oldpackage' 'jalbum-19.1'|
# 2019-11-02 21:03:17 jalbum-19.1-1.x86_64.rpm install failed
# error: jalbum-0:19.1-1.x86_64: install failed
 
# success
 
2019-11-02 21:07:00|command|root@linux-u5ye|'zypper' 'in' '--oldpackage' 'jalbum-19'|
2019-11-02 21:07:08|install|jalbum|19-1|x86_64|root@linux-u5ye|jalbum|66238feffd76943740688c4a72c1525ef3c3df0e9489eaa03b5ea7bd6951e8bb|
 
linux-u5ye:~ # 
jAlbum may try to install package jalbum-19.1-1.x86_64.rpm on their machines.
davidekholm

Posts: 3,564
Registered: 18-Oct-2002
Re: jAlbum 19.1 comes with broken bundled java
Posted: 03-Nov-2019 19:13   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
Hi Karl, I found a missing slash in one of the paths of the RPM package. I now believe I've fixed it. Please try this direct link: http://jalbum.net/download/19.1/Linux/jalbum-19.1-1.x86_64.rpm (will propagate to the mirrors within an hour)
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: jAlbum 19.1 comes with broken bundled java
Posted: 03-Nov-2019 19:31   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Hi Karl, I found a missing slash in one of the paths of the RPM package. I now believe I've fixed it. Please try this direct link: http://jalbum.net/download/19.1/Linux/jalbum-19.1-1.x86_64.rpm (will propagate to the mirrors within an hour)

Tried direct download, installed and tested: success!

I am looking forward to jAlbum deleting http://jalbum.net/download/software/yumrepo/jalbum-19.1.1-1.x86_64.rpm and updating http://jalbum.net/download/software/yumrepo/jalbum-19.1-1.x86_64.rpm
davidekholm

Posts: 3,564
Registered: 18-Oct-2002
Re: jAlbum 19.1 comes with broken bundled java
Posted: 03-Nov-2019 20:11   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
karlmistelberger wrote:
davidekholm wrote:
Hi Karl, I found a missing slash in one of the paths of the RPM package. I now believe I've fixed it. Please try this direct link: http://jalbum.net/download/19.1/Linux/jalbum-19.1-1.x86_64.rpm (will propagate to the mirrors within an hour)

Tried direct download, installed and tested: success!


Great. Thanks for testing.


Done
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: jAlbum 19.1 comes with broken bundled java
Posted: 03-Nov-2019 21:01   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:

Done

Stale metadata detected:

Directory: /download/software/yumrepo/repodata/
Parent Directory
14eef840f79e41f4284a3da702a2393f8562c4bc7229bec1e80df765251ac854-filelists.xml.gz 671766 bytes Nov 1, 2019 12:45:50 PM
5008a9dc4f4a4e473870b3f12523ec0e966b6e71fac11d569b39631a90278ff2-other.xml.gz 4113 bytes Nov 1, 2019 12:45:50 PM
65fad9decbc6f8d1f29a8636f2921c4d6b706a6f3620d574b3c8269bc94fe2ad-primary.xml.gz 8853 bytes Nov 1, 2019 12:45:50 PM
repomd.xml 1618 bytes Nov 1, 2019 12:45:50 PM

Repo needs refresh. :-(

davidekholm

Posts: 3,564
Registered: 18-Oct-2002
Re: jAlbum 19.1 comes with broken bundled java
Posted: 04-Nov-2019 13:55   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
Now it should have been updated
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: jAlbum 19.1 comes with broken bundled java
Posted: 04-Nov-2019 14:01   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Now it should have been updated

Yes, it is:

:~ # zypper in jalbum
Loading repository data...
Reading installed packages...
'jalbum' is already installed.
No update candidate for 'jalbum-19.1-1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
 
Nothing to do.
:~ # 
:-)
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: jAlbum 19.1 comes with broken bundled java
Posted: 04-Nov-2019 14:25   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
Everything comes to him who knows how to wait.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums