View Single Post
Old 07-05-2022, 07:15 AM   #91
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I am not able to run the editor from the calibre beta when running from source. I am using the portable version with a bat file wrapper to set the appropriate paths and environment variables. When I try to open the editor, it will flash and disappear. If I run the portable version without source, it works with no issue.

While experimenting, I tried various ways of running the editor. They worked except for running from source with "calibre-debug.exe --edit-book". The below is from the Windows command line. I have added the SET and path display to show where everything is running. I don't think I have missed anything.

Using "calibre-debug.exe -g" starts calibre with no issues, but the editor will not work.


Spoiler:
E:\CalibrePortable599\Calibre Portable\Calibre>calibre-debug.exe --paths
CALIBRE_RESOURCES_PATH=E:\CalibrePortable599\Calib re Portable\Calibre\app\resources
CALIBRE_EXTENSIONS_PATH=E:\CalibrePortable599\Cali bre Portable\Calibre\app\bin
CALIBRE_PYTHON_PATH=

E:\CalibrePortable599\Calibre Portable\Calibre>SET CALIBRE_DEVELOP_FROM=E:\Development\GitHub\calibre Qt6\calibre\src

E:\CalibrePortable599\Calibre Portable\Calibre>calibre-debug.exe --edit-book
DEBUG: 0.0 GetFileName::__init__.py - loading translations
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 127.66492146596858 x 127.59069767441859
Using calibre Qt style: False
qt.webenginecontext:

GL Type: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.4
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 E:\CalibrePortable599\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

QOpenGLShader::compile(Fragment): ERROR: 4:1: 'textureSampler' : syntax error syntax error


*** Problematic Fragment shader source code ***
#version 110
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#define lowp
#define mediump
#define highp
#line 1
varying highp vec2 uv;uniform sampler2DRect textureSampler;uniform bool swizzle;uniform highp float opacity;void main() { highp vec4 tmpFragColor = texture2DRect(textureSampler,uv); tmpFragColor.a *= opacity; gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;}
***

E:\CalibrePortable599\Calibre Portable\Calibre>
davidfor is offline