FS#46932 - [calibre] error on start

Attached to Project: Community Packages
Opened by John (hlistalin) - Saturday, 31 October 2015, 18:33 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 29 December 2016, 01:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:calibre error when start


Additional info:
* calibre 2.42.0-1
* Plasma 5
calibre 2.42 isfrozen: False is64bit: True
Linux-4.2.5-1-ARCH-x86_64-with-glibc2.2.5 Linux ('64bit', '')
('Linux', '4.2.5-1-ARCH', '#1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015')
Python 2.7.10
Linux: ('', '', '')
Starting up...
LLVM ERROR: Cannot select: 0x55ba7db889d0: i32,ch = AtomicLoadAdd 0x55ba7da4f5d0, 0x55ba7ce17d40, 0x55ba7dbb3e10<Volatile LDST4[%119(addrspace=1)]> [ORD=11] [ID=30]
0x55ba7ce17d40: i32 = add 0x55ba7d27afc8, 0x55ba7d26fd50 [ORD=10] [ID=29]
0x55ba7d27afc8: i32 = add 0x55ba7ce17c18, 0x55ba7db879c0 [ORD=10] [ID=28]
0x55ba7ce17c18: i32,ch = CopyFromReg 0x55ba7da4f5d0, 0x55ba7ce17400 [ORD=10] [ID=17]
0x55ba7ce17400: i32 = Register %vreg56 [ID=7]
0x55ba7db879c0: i32 = shl 0x55ba7d6db2d8, 0x55ba7d695840 [ORD=10] [ID=27]
0x55ba7d6db2d8: i32 = bitcast 0x55ba7d693708 [ORD=9] [ID=26]
0x55ba7d693708: f32 = select_cc 0x55ba7dab82a8, 0x55ba7d6925d0, 0x55ba7d695ce0, 0x55ba7dbb3970, 0x55ba7d695a90 [ORD=9] [ID=25]
0x55ba7dab82a8: f32 = select_cc 0x55ba7d693a80, 0x55ba7d934fd0, 0x55ba7dc3b9f0, 0x55ba7d6925d0, 0x55ba7db88af8 [ORD=9] [ID=22]
0x55ba7d693a80: f32 = select_cc 0x55ba7d3459d8, 0x55ba7d6925d0, 0x55ba7d936480, 0x55ba7d826ee0, 0x55ba7d695a90 [ORD=6] [ID=21]
0x55ba7d3459d8: f32 = select_cc 0x55ba7d9366d0, 0x55ba7d934fd0, 0x55ba7dc3b9f0, 0x55ba7d6925d0, 0x55ba7d695028 [ORD=6] [ID=19]
0x55ba7d9366d0: f32,ch = CopyFromReg 0x55ba7da4f5d0, 0x55ba7da18a30 [ORD=2] [ID=16]

0x55ba7d934fd0: f32 = ConstantFP<6,553500e+04> [ID=2]
0x55ba7dc3b9f0: f32 = ConstantFP<1,000000e+00> [ID=13]
0x55ba7d6925d0: f32 = ConstantFP<0,000000e+00> [ID=4]
0x55ba7d6925d0: f32 = ConstantFP<0,000000e+00> [ID=4]
0x55ba7d936480: f32 = fadd 0x55ba7d823698, 0x55ba7d695718 [ORD=5] [ID=20]
0x55ba7d823698: f32 = FMAX_LEGACY 0x55ba7d6925d0, 0x55ba7d9366d0 [ORD=4] [ID=18]


0x55ba7d695718: f32 = ConstantFP<5,000000e-01> [ID=5]
0x55ba7d826ee0: f32 = ConstantFP<6,553550e+04> [ID=6]
0x55ba7d934fd0: f32 = ConstantFP<6,553500e+04> [ID=2]
0x55ba7dc3b9f0: f32 = ConstantFP<1,000000e+00> [ID=13]
0x55ba7d6925d0: f32 = ConstantFP<0,000000e+00> [ID=4]
0x55ba7d6925d0: f32 = ConstantFP<0,000000e+00> [ID=4]
0x55ba7d695ce0: f32 = bitcast 0x55ba7d344e48 [ORD=9] [ID=24]
0x55ba7d344e48: i32 = fp_to_uint 0x55ba7d693a80 [ORD=8] [ID=23]
0x55ba7d693a80: f32 = select_cc 0x55ba7d3459d8, 0x55ba7d6925d0, 0x55ba7d936480, 0x55ba7d826ee0, 0x55ba7d695a90 [ORD=6] [ID=21]
0x55ba7d3459d8: f32 = select_cc 0x55ba7d9366d0, 0x55ba7d934fd0, 0x55ba7dc3b9f0, 0x55ba7d6925d0, 0x55ba7d695028 [ORD=6] [ID=19]




0x55ba7d6925d0: f32 = ConstantFP<0,000000e+00> [ID=4]
0x55ba7d936480: f32 = fadd 0x55ba7d823698, 0x55ba7d695718 [ORD=5] [ID=20]


0x55ba7d826ee0: f32 = ConstantFP<6,553550e+04> [ID=6]
0x55ba7dbb3970: f32 = ConstantFP<9,183409e-41> [ID=15]
0x55ba7d695840: i32 = Constant<4> [ID=8]
0x55ba7d26fd50: i32 = Constant<8> [ID=9]
0x55ba7dbb3e10: i32 = Constant<1> [ID=10]
In function: Histogram
This task depends upon

Closed by  Jelle van der Waa (jelly)
Thursday, 29 December 2016, 01:01 GMT
Reason for closing:  No response
Comment by Doug Newgard (Scimmia) - Saturday, 31 October 2015, 21:19 GMT
Cannot reproduce

Since the error mentions llvm, what version?
Comment by Jelle van der Waa (jelly) - Sunday, 01 November 2015, 12:16 GMT
Can't reproduce, running testing?
Comment by John (hlistalin) - Monday, 02 November 2015, 16:56 GMT
how I can provide more information?
Comment by John (hlistalin) - Monday, 02 November 2015, 16:58 GMT
llvm 3.7.0-5
Comment by Doug Newgard (Scimmia) - Friday, 06 November 2015, 01:57 GMT
Any plugins installed? You can run calibre-debug --gui, see if it gives you any more information.
Comment by John (hlistalin) - Saturday, 07 November 2015, 04:37 GMT
calibre-debug --gui
calibre 2.43 isfrozen: False is64bit: True
Linux-4.2.5-1-ARCH-x86_64-with-glibc2.2.5 Linux ('64bit', '')
('Linux', '4.2.5-1-ARCH', '#1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015')
Python 2.7.10
Linux: ('', '', '')
Starting up...
LLVM ERROR: Cannot select: 0x5626df48ffd0: i32,ch = AtomicLoadAdd 0x5626de9b2e80, 0x5626df7371b0, 0x5626df770520<Volatile LDST4[%119(addrspace=1)]> [ORD=11] [ID=30]
0x5626df7371b0: i32 = add 0x5626df565938, 0x5626df71c6c0 [ORD=10] [ID=29]
0x5626df565938: i32 = add 0x5626df737088, 0x5626df48efc0 [ORD=10] [ID=28]
0x5626df737088: i32,ch = CopyFromReg 0x5626de9b2e80, 0x5626df736870 [ORD=10] [ID=17]
0x5626df736870: i32 = Register %vreg56 [ID=7]
0x5626df48efc0: i32 = shl 0x5626df471758, 0x5626df77e700 [ORD=10] [ID=27]
0x5626df471758: i32 = bitcast 0x5626df39e6b8 [ORD=9] [ID=26]
0x5626df39e6b8: f32 = select_cc 0x5626df584328, 0x5626df39d580, 0x5626df77eba0, 0x5626df770080, 0x5626df77e950 [ORD=9] [ID=25]
0x5626df584328: f32 = select_cc 0x5626df39ea30, 0x5626df6e0100, 0x5626df2105f0, 0x5626df39d580, 0x5626df4900f8 [ORD=9] [ID=22]
0x5626df39ea30: f32 = select_cc 0x5626debe8248, 0x5626df39d580, 0x5626df6e15b0, 0x5626df580410, 0x5626df77e950 [ORD=6] [ID=21]
0x5626debe8248: f32 = select_cc 0x5626df6e1800, 0x5626df6e0100, 0x5626df2105f0, 0x5626df39d580, 0x5626df77dee8 [ORD=6] [ID=19]
0x5626df6e1800: f32,ch = CopyFromReg 0x5626de9b2e80, 0x5626df76f2c0 [ORD=2] [ID=16]

0x5626df6e0100: f32 = ConstantFP<6,553500e+04> [ID=2]
0x5626df2105f0: f32 = ConstantFP<1,000000e+00> [ID=13]
0x5626df39d580: f32 = ConstantFP<0,000000e+00> [ID=4]
0x5626df39d580: f32 = ConstantFP<0,000000e+00> [ID=4]
0x5626df6e15b0: f32 = fadd 0x5626df37d188, 0x5626df77e5d8 [ORD=5] [ID=20]
0x5626df37d188: f32 = FMAX_LEGACY 0x5626df39d580, 0x5626df6e1800 [ORD=4] [ID=18]


0x5626df77e5d8: f32 = ConstantFP<5,000000e-01> [ID=5]
0x5626df580410: f32 = ConstantFP<6,553550e+04> [ID=6]
0x5626df6e0100: f32 = ConstantFP<6,553500e+04> [ID=2]
0x5626df2105f0: f32 = ConstantFP<1,000000e+00> [ID=13]
0x5626df39d580: f32 = ConstantFP<0,000000e+00> [ID=4]
0x5626df39d580: f32 = ConstantFP<0,000000e+00> [ID=4]
0x5626df77eba0: f32 = bitcast 0x5626debe76b8 [ORD=9] [ID=24]
0x5626debe76b8: i32 = fp_to_uint 0x5626df39ea30 [ORD=8] [ID=23]
0x5626df39ea30: f32 = select_cc 0x5626debe8248, 0x5626df39d580, 0x5626df6e15b0, 0x5626df580410, 0x5626df77e950 [ORD=6] [ID=21]
0x5626debe8248: f32 = select_cc 0x5626df6e1800, 0x5626df6e0100, 0x5626df2105f0, 0x5626df39d580, 0x5626df77dee8 [ORD=6] [ID=19]




0x5626df39d580: f32 = ConstantFP<0,000000e+00> [ID=4]
0x5626df6e15b0: f32 = fadd 0x5626df37d188, 0x5626df77e5d8 [ORD=5] [ID=20]


0x5626df580410: f32 = ConstantFP<6,553550e+04> [ID=6]
0x5626df770080: f32 = ConstantFP<9,183409e-41> [ID=15]
0x5626df77e700: i32 = Constant<4> [ID=8]
0x5626df71c6c0: i32 = Constant<8> [ID=9]
0x5626df770520: i32 = Constant<1> [ID=10]
In function: Histogram
Comment by Doug Newgard (Scimmia) - Saturday, 07 November 2015, 04:49 GMT
So nothing different. Plugins?

You can try the upstream binaries, if they fail as well, you can report this to them.
Comment by John (hlistalin) - Saturday, 07 November 2015, 20:23 GMT
how I can see the connection plugins?
Comment by Doug Newgard (Scimmia) - Sunday, 08 November 2015, 02:56 GMT
try calibre --ignore-plugins
Comment by John (hlistalin) - Sunday, 08 November 2015, 16:16 GMT
"try calibre --ignore-plugins"
same
Comment by Doug Newgard (Scimmia) - Sunday, 08 November 2015, 16:29 GMT
I'm out of ideas, then, as I've never dealt with LLVM. Try the upstream binaries, see if they have the same problem.
https://aur.archlinux.org/packages/calibre-installer/
Comment by John (hlistalin) - Sunday, 08 November 2015, 19:16 GMT
I installed calibre-installer, download binary, then installed calibre with --force and it works now
Comment by John (hlistalin) - Sunday, 08 November 2015, 20:17 GMT
I installed calibre-installer, download binary, then installed calibre with --force and it works now
Comment by Jelle van der Waa (jelly) - Monday, 16 November 2015, 19:46 GMT
Any update with the new package?
Comment by lin ziyun (maz-1) - Tuesday, 17 November 2015, 02:27 GMT
Same problem here
Comment by Jelle van der Waa (jelly) - Tuesday, 17 November 2015, 07:53 GMT
What kind of graphics card and driver? Since it looks like LLVM somehow throws up
Comment by John (hlistalin) - Tuesday, 17 November 2015, 22:16 GMT
[AMD/ATI] Turks [Radeon HD 7600 Series], last mesa driver
Comment by lin ziyun (maz-1) - Sunday, 22 November 2015, 01:14 GMT
I think this is probably a kernel bug.
I removed linux-zen and boot into the default kernel, calibre can be started again.
Comment by Taz (Tazmain) - Monday, 14 March 2016, 22:33 GMT

I had the same issue with the LLVM, downloaded the binaries from the calibre site and no problem. So something with how it's complied or run must be incorrect. I did not change my kernel and this was the same case for kernel 3.9 -4.4
Comment by Siarhei (nartes) - Tuesday, 10 May 2016, 07:50 GMT
I have a book, and when i add it then regularly calibre craches.

% calibre-debug --gui
calibre 2.56 embedded-python: False is64bit: True
Linux-4.5.1-1-ARCH-x86_64-with-glibc2.2.5 Linux ('64bit', '')
('Linux', '4.5.1-1-ARCH', '#1 SMP PREEMPT Thu Apr 14 19:19:32 CEST 2016')
Python 2.7.11

...more here... https://gist.github.com/ff58b73a74b51d0bb581c3158a85cd2e

Archlinux PKGBUILD for this calibre package
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/calibre&id=9280e0f2f73cb574f909ba0b35486230eb6379b6

I checked out calibre 2.53, that i downloaded directly via
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

And it works fine.

just put here, because can't spend my time on resolving this issue,
perhaps somebody else will work on it
Comment by Jelle van der Waa (jelly) - Tuesday, 10 May 2016, 19:10 GMT
I'm going to bet this is thanks to calibre shipping with a forked html5lib..

Loading...