Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-27-2022, 01:09 AM   #1
Jasonz
Member
Jasonz began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2022
Device: Windows11
Exclamation ebook-viewer crashes when building calibre on Windows

After setting the environment variable CALIBRE_DEVELOP_FROM for building calibre on Windows, ebook-viewer crashes on starting.
Jasonz is offline   Reply With Quote
Old 09-27-2022, 01:38 AM   #2
Jasonz
Member
Jasonz began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2022
Device: Windows11
calibre-debug -w

$ calibre-debug -w
QPA platform: windows
devicePixelRatio: 1.25
logicalDpi: 96.0 x 96.0
physicalDpi: 113.41395348837209 x 113.12164948453608
ApplicationPaletteChange event ignored
Using calibre Qt style: True
ApplicationPaletteChange event received
qt.webenginecontext:

GL Type: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.6
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes

Init Parameters:
* application-name calibre
* browser-subprocess-path B:\Programs\Calibre Portable\Calibre\app\bin\QtWebEngineProcess.exe
* create-default-gl-context
* disable-es3-gl-context
* disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetc h,WebOTP,WebPayments,WebUSB,PictureInPicture
* disable-speech-api
* enable-features NetworkServiceInProcess,TracingServiceInProcess
* enable-threaded-compositing
* in-process-gpu
* use-gl desktop

[9140:2012:0927/133225.982:ERROR:tcp_socket_win.cc(354)] bind() returned an error: ͨ��ÿ���׽�
�ֵ�ַ(Э��/�����ַ/�˿�)ֻ����ʹ��һ�Ρ� (0x2740)
[9140:2012:0927/133225.993:ERROR:devtools_http_handler.cc(298)] Cannot start http server for devtools.
Compiling viewer code...
Jasonz is offline   Reply With Quote
Old 09-27-2022, 02:46 AM   #3
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Something is preventing Qt webengine from opening a socket for its developer tools. Try disabling your antivirus/add an exception for QtWebEngineProcess.exe to it
kovidgoyal is online now   Reply With Quote
Old 09-27-2022, 03:08 AM   #4
Jasonz
Member
Jasonz began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2022
Device: Windows11
Quote:
[9140:2012:0927/133225.982:ERROR:tcp_socket_win.cc(354)] bind() returned an error: ͨ��ÿ���׽�
�ֵ�ַ(Э��/�����ַ/�˿�)ֻ����ʹ��һ�Ρ� (0x2740)
[9140:2012:0927/133225.993:ERROR:devtools_http_handler.cc(298)] Cannot start http server for devtools.
This is resolved after QTWEBENGINE_REMOTE_DEBUGGING is removed. But ebook-viewer still crashes:
Quote:
QPA platform: windows
devicePixelRatio: 1.25
logicalDpi: 96.0 x 96.0
physicalDpi: 113.41395348837209 x 113.12164948453608
ApplicationPaletteChange event ignored
Using calibre Qt style: True
ApplicationPaletteChange event received
qt.webenginecontext:

GL Type: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.6
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes

Init Parameters:
* application-name calibre
* browser-subprocess-path B:\Programs\Calibre Portable\Calibre\app\bin\QtWebEngineProcess.exe
* create-default-gl-context
* disable-es3-gl-context
* disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetc h,WebOTP,WebPayments,WebUSB,PictureInPicture
* disable-speech-api
* enable-features NetworkServiceInProcess,TracingServiceInProcess
* enable-threaded-compositing
* in-process-gpu
* use-gl desktop

Compiling viewer code...
Jasonz is offline   Reply With Quote
Old 09-27-2022, 03:14 AM   #5
Jasonz
Member
Jasonz began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2022
Device: Windows11
Event Viewer
Quote:
- System
- Provider
[ Name] Application Error
[ Guid] {a0e9b465-b939-57d7-b27d-95d8e925ff57}
EventID 1000
Version 0
Level 2
Task 100
Opcode 0
Keywords 0x8000000000000000
- TimeCreated
[ SystemTime] 2022-09-27T07:02:36.1991422Z
EventRecordID 52233
Correlation
- Execution
[ ProcessID] 23100
[ ThreadID] 9764
Channel Application
Computer
- Security
[ UserID]

- EventData

AppName calibre-debug.exe
AppVersion 6.5.0.0
AppTimeStamp 6323d9ec
ModuleName Qt6WebEngineCore.dll
ModuleVersion 6.3.1.0
ModuleTimeStamp 62b5ee1e
ExceptionCode c0000005
FaultingOffset 00000000002189ae
ProcessId 0x2b14
ProcessCreationTime 0x1d8d23f163d86c0
AppPath B:\Programs\Calibre Portable\Calibre\calibre-debug.exe
ModulePath B:\Programs\Calibre Portable\Calibre\app\bin\Qt6WebEngineCore.dll
IntegratorReportId e09395c5-3718-45e7-be26-da322e07768f
PackageFullName
PackageRelativeAppId
Jasonz is offline   Reply With Quote
Old 09-27-2022, 03:20 AM   #6
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
webengine is used to compile the rapydscript code, presumably something on your machine is interfering with it. Usual suspects are antivirus/firewall/etc. etc.
kovidgoyal is online now   Reply With Quote
Old 09-29-2022, 03:53 AM   #7
Jasonz
Member
Jasonz began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2022
Device: Windows11
I have exited all antivirus/firewall softwares,but still crash.
Crash occurs at calibre/gui2/viewer/main.py
def run_gui(app, opts, args, internal_book_data, listener=None):
...
app.exec()
qapplication exec() crashes
Jasonz is offline   Reply With Quote
Old 10-03-2022, 02:48 AM   #8
Jasonz
Member
Jasonz began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2022
Device: Windows11
I tried it on a clean Win11/Win10 VM, and the ebook-viewer still crashed after setting CALIBRE_DEVELOP_FROM and turning off Windows Security Center, but it worked fine on Ubuntu VM, it was weird.
Jasonz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building calibre for Windows shizhihai Development 3 12-11-2021 01:12 AM
Calibre crashes when opening ebooks with external viewer Chemist1 Library Management 13 03-01-2020 01:35 PM
Windows 10 1903 Calibre crashes brichlin Devices 7 08-22-2019 01:34 PM
Calibre Ebook Viewer Crashes Cajun Calibre 3 02-19-2016 08:37 AM
Calibre crashes in windows on startup Jamz Calibre 12 09-17-2010 02:58 PM


All times are GMT -4. The time now is 09:25 AM.


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