Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 09-16-2022, 08:56 PM   #1
tinker123
Member
tinker123 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2019
Device: Kindle Paperwhite
The eBook viewer just hangs, never launces

Mint20.2
Cinnamon5.0.7
Calibre 6.5.0

I upgraded to 6.5.0.

I can't open eBooks, the view just hangs on launch.

Here is my command line output

Quote:
Mint20.2UmaCinnamon5.0.7> calibre
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
libusb_claim_interface() reports device is busy, likely in use by GVFS or KDE MTP device handling alreadyLIBMTP PANIC: Unable to initialize device
Error while trying to open MTPDevice(busnum=1, devnum=87, vendor_id=1256, product_id=26720, bcd=547, serial='RFCRB0DSKJM', manufacturer='SAMSUNG', product='SAMSUNG_Android') (Driver: <calibre.devices.mtp.driver.MTP_DEVICE object at 0x7f4443ff52d0>)
Traceback (most recent call last):
File "calibre/devices/mtp/unix/driver.py", line 214, in open
File "calibre/devices/mtp/base.py", line 24, in synchronizer
File "calibre/devices/mtp/unix/driver.py", line 166, in create_device
libmtp.MTPError: Unable to open MTP device with busnum=1 and devnum=87, tried 1 such devices

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre/gui2/device.py", line 325, in detect_device
File "calibre/devices/mtp/driver.py", line 127, in open
File "calibre/devices/mtp/base.py", line 24, in synchronizer
File "calibre/devices/mtp/unix/driver.py", line 217, in open
calibre.devices.errors.OpenFailed: Failed to open MTPDevice(busnum=1, devnum=87, vendor_id=1256, product_id=26720, bcd=547, serial='RFCRB0DSKJM', manufacturer='SAMSUNG', product='SAMSUNG_Android'): Error: Unable to open MTP device with busnum=1 and devnum=87, tried 1 such devices
Mint20.2UmaCinnamon5.0.7>
A screen shot of the hanging viewer

https://i2.paste.pics/69accdd10171da...b0a9d5583f.png


I do have the DRM plugin installed:

https://i2.paste.pics/3a48f6c8ce3e82...a12f526b3a.png


I really like and NEED Calibre, any help would be appreciated.

Thanks
tinker123 is offline   Reply With Quote
Old 09-16-2022, 10:30 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This will be a compat issue between Qt WebEnginge and your GPU drivers. Try updating your GPU drivers or turning off hardware acceleration for webengine as described in https://doc.qt.io/qt-6/qtwebengine-debugging.html
kovidgoyal is online now   Reply With Quote
Advert
Old 09-17-2022, 08:10 AM   #3
tinker123
Member
tinker123 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2019
Device: Kindle Paperwhite
I had my phone plugged into my computer when I got that output.

I removed my phone, got the same problem, but I figured out how to start Calibre in debug mod and I got this outuput in the log:

Quote:
Using calibre Qt style: True
calibre Debug log
calibre 6.5 embedded-python: True
Linux-5.4.0-125-generic-x86_64-with-glibc2.31 Linux ('64bit', 'ELF')
('Linux', '5.4.0-125-generic', '#141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022')
Python 3.10.1
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 2, 1)
calibre 6.5 embedded-python: True
Linux-5.4.0-125-generic-x86_64-with-glibc2.31 Linux ('64bit', 'ELF')
('Linux', '5.4.0-125-generic', '#141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022')
Python 3.10.1
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 2, 1)
QPA platform: xcb
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 93.6046065259117 x 93.62457337883959
[0.00] Starting up...
[0.00] Showing splash screen...
[0.04] splash screen shown
[0.04] Initializing db...
[0.05] db initialized
[0.05] Constructing main UI...
[0.42] main UI initialized...
[0.42] Hiding splash screen
Starting QuickView
[38.09] splash screen hidden
[38.09] Started up in 38.09 seconds with 4 books
Worker Launch took: 0.00 seconds
tinker123 is offline   Reply With Quote
Old 09-17-2022, 08:14 AM   #4
tinker123
Member
tinker123 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2019
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
This will be a compat issue between Qt WebEnginge and your GPU drivers. Try updating your GPU drivers or turning off hardware acceleration for webengine as described in https://doc.qt.io/qt-6/qtwebengine-debugging.html
Are the GPU drivers part of my operating system or part of Calibre?

I tried turning off hardware acceleration, but Calibre didn't recognize the command line options ( I even tried it with a path to a book ).
Quote:

Mint20.2UmaCinnamon5.0.7> calibre --disable-gpu
Usage: calibre [options] [path_to_ebook or calibre url ...]

Launch the main calibre Graphical User Interface and optionally add the e-book at
path_to_ebook to the database. You can also specify calibre URLs to perform various
different actions, than just adding books. For example:

calibre://view-book/test_library/1842/epub

Will open the book with id 1842 in the EPUB format from the library
"test_library" in the calibre E-book viewer. Library names are the folder names of the
libraries with spaces replaced by underscores. A full description of the
various URL based actions is in the User Manual.


Whenever you pass arguments to calibre that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"

calibre: error: no such option: --disable-gpu
Mint20.2UmaCinnamon5.0.7>
tinker123 is offline   Reply With Quote
Old 09-17-2022, 11:13 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You want

QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu" calibre
kovidgoyal is online now   Reply With Quote
Advert
Old 09-17-2022, 01:10 PM   #6
tinker123
Member
tinker123 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2019
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
You want

QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu" calibre
That works for starting it from the command line.

Is there a way to fix it so that it is usable if I start Calibre by clicking on an eBook?

I tried putting QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu" in my ~.bashrc but it did not work
tinker123 is offline   Reply With Quote
Old 09-17-2022, 10:58 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to set it system wide. How to do that varies from linux distro to distro. Ask in your distro forums.
kovidgoyal is online now   Reply With Quote
Old 10-16-2022, 11:58 AM   #8
doxob
Junior Member
doxob began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2022
Device: calibre ebook-viewers
I can not found any hint in the web how to set QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu" calibre system wide on Linux Manjaro.
Any suggestion?
doxob is offline   Reply With Quote
Old 10-17-2022, 08:59 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by doxob View Post
I can not found any hint in the web how to set QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu" calibre system wide on Linux Manjaro.
Any suggestion?
https://stackoverflow.com/questions/...j-idea-will-pi
https://forum.manjaro.org/t/howto-se...ariables/88955
https://forum.manjaro.org/t/add-perm...ironment/76729
https://forum.manjaro.org/t/setting-...ariables/56426
JSWolf is offline   Reply With Quote
Old 10-17-2022, 12:45 PM   #10
doxob
Junior Member
doxob began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2022
Device: calibre ebook-viewers
Thank you.
It worked with the edition of /etc/environment.
Thank you.
doxob is offline   Reply With Quote
Old 10-17-2022, 02:43 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by doxob View Post
Thank you.
It worked with the edition of /etc/environment.
Thank you.
Your welcome.
JSWolf is offline   Reply With Quote
Old 03-12-2023, 01:18 PM   #12
quast
Junior Member
quast began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2022
Device: tolino shine 3
ebook viewer broken again by 6.14 update

Thanks, quitting hardware acceleration worked with my manjaro linux, too.

Now calibre update from 6.11 to 6.14 was distributed. Since then the viewer does't start any more. Terminal shows this:
Code:
[quast@aspire ~]$ ebook-viewer
Traceback (most recent call last):
  File "/usr/bin/ebook-viewer", line 21, in <module>
    sys.exit(ebook_viewer())
  File "/usr/lib/calibre/calibre/gui_launch.py", line 102, in wrapper
    return func(*a, **kw)
  File "/usr/lib/calibre/calibre/gui_launch.py", line 118, in ebook_viewer
    main(args)
  File "/usr/lib/calibre/calibre/gui2/viewer/main.py", line 225, in main
    run_gui(app, opts, args, internal_book_data)
  File "/usr/lib/calibre/calibre/gui2/viewer/main.py", line 151, in run_gui
    main = EbookViewer(
  File "/usr/lib/calibre/calibre/gui2/viewer/ui.py", line 151, in __init__
    self.lookup_widget = w = Lookup(self)
  File "/usr/lib/calibre/calibre/gui2/viewer/lookup.py", line 307, in __init__
    self._page = Page(create_profile(), self.view)
  File "/usr/lib/calibre/calibre/gui2/viewer/lookup.py", line 223, in create_profile
    ans.setHttpUserAgent(random_user_agent(allow_ie=False))
  File "/usr/lib/calibre/calibre/__init__.py", line 297, in random_user_agent
    ua_list = common_user_agents()
  File "/usr/lib/calibre/calibre/utils/random_ua.py", line 26, in common_user_agents
    return user_agent_data()['common_user_agents']
  File "/usr/lib/calibre/calibre/utils/random_ua.py", line 14, in user_agent_data
    P('user-agent-data.json', data=True, allow_user_override=False))
  File "/usr/lib/calibre/calibre/utils/resources.py", line 89, in get_path
    with open(fpath, 'rb') as f:
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/usr/share/calibre/user-agent-data.json'
Any idea, how to fix it?
Thanks
Yours
quast
quast is offline   Reply With Quote
Old 03-12-2023, 09:24 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the official calibre binaries instead of whatever distro package that is. https://calibre-ebook.com/download_linux
kovidgoyal is online now   Reply With Quote
Old 03-15-2023, 08:29 AM   #14
quast
Junior Member
quast began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2022
Device: tolino shine 3
after manjaro delivered calibre 6.14-2 and python 3.10.10 today, viewer works again.
quast is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewer hangs opening books for the second time thiago.eec Viewer 6 07-22-2021 07:08 PM
E-book viewer in Calibre 5.22.1 hangs forever on new books lkstrummer Viewer 4 07-04-2021 06:41 PM
Viewer hangs; calibre-parallell is not responding BoerOpi Library Management 5 04-13-2020 11:42 AM
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc kovidgoyal Calibre 68 05-30-2011 08:46 PM
# user css for viewer.py/ ebook-viewer/ prs-650 tscamera Calibre 0 01-02-2011 06:28 PM


All times are GMT -4. The time now is 12:04 AM.


MobileRead.com is a privately owned, operated and funded community.