Skip to content

Conversation

jonoomph
Copy link
Member

@jonoomph jonoomph commented May 2, 2022

Disable sandbox support for QtWebEngine (required on some Linux distros for the QtWebEngineWidgets to be rendered, otherwise no timeline is visible). This was initially reported on OpenSUSE and the latest Ubuntu 22.04.
https://doc.qt.io/qt-5/qtwebengine-platform-notes.html#sandboxing-support

Closes #4676

@jonoomph
Copy link
Member Author

jonoomph commented May 2, 2022

@JacksonRG
Copy link
Collaborator

From the docs, this looks good. Merge away

@dogmatic69
Copy link

dogmatic69 commented Jun 20, 2022

Running appimage, came across #4786 and #4657 which referenced #4633 and claims to be fixed here but is not fixed. The webkit option caused other issues I could not manage to resolve (missing libs).

Through another issue I found --no-sandbox option which seems to make it work 🤷🏻

@JacksonRG
Copy link
Collaborator

@dogmatic69 Hi, could you include what OS you're using, your log files, and any other info on your setup? That way we can start figuring out what's going wrong there.

@dogmatic69
Copy link

dogmatic69 commented Jun 20, 2022

Ubuntu 22.04 on two machines, one fresh installed this week directly on 22.04, the other is ~3 years old but upto date (aka probably started at 18.x and updated constantly till 22.04).

I also have a windows machine running 2.6.1 and the timeline seems to work ok there.

$ ~/Apps/OpenShot-v2.6.1-x86_64.AppImage 
sh: 0: getcwd() failed: No such file or directory
Copying icon thumbnails to cache
ICONFILE = /home/dogmatic69/.cache/thumbnails/normal/bbfeaaf00538813af7a14b6c423e8ce0.png
Loaded modules from: /tmp/.mount_XRYINK/usr/bin
INFO app: ------------------------------------------------
INFO app:             Mon Jun 20 23:23:23 2022            
INFO app:               Starting new session              
INFO app: ------------------------------------------------
INFO app:             OpenShot (version 2.6.1)            
INFO app: ------------------------------------------------
INFO app: openshot-qt version: 2.6.1
INFO app: libopenshot version: 0.2.7
INFO app: platform: Linux-5.15.0-39-generic-x86_64-with-Ubuntu-22.04-jammy
INFO app: processor: x86_64
INFO app: machine: x86_64
INFO app: python version: 3.6.9
INFO app: qt5 version: 5.9.5
INFO app: pyqt5 version: 5.10.1
INFO app: Frozen version info from build server:
{
    "build_name": "OpenShot-v2.6.1-release-candidate-8238-59878784-d588dbd6",
    "date": "2021-09-04 23:49",
    "libopenshot": {
        "CI_COMMIT_REF_NAME": "release-20210904",
        "CI_COMMIT_SHA": "59878784732fa399c47ac5d282bfc9dfe470d0dc",
        "CI_JOB_ID": "27417",
        "CI_PIPELINE_ID": "8237",
        "CI_PROJECT_NAME": "libopenshot",
        "SO": "21",
        "VERSION": "0.2.7"
    },
    "libopenshot-audio": {
        "CI_COMMIT_REF_NAME": "release-20210904",
        "CI_COMMIT_SHA": "d588dbd6057f71c987dc6d8448322aa6b6e86f1a",
        "CI_JOB_ID": "27412",
        "CI_PIPELINE_ID": "8236",
        "CI_PROJECT_NAME": "libopenshot-audio",
        "SO": "8",
        "VERSION": "0.2.2"
    },
    "openshot-qt": {
        "CI_COMMIT_REF_NAME": "release-20210904",
        "CI_COMMIT_SHA": "11f8e5050bd95c7731beccda28a01fbb481fcf7d",
        "CI_JOB_ID": "27422",
        "CI_PIPELINE_ID": "8238",
        "CI_PROJECT_NAME": "openshot-qt",
        "SO": null,
        "VERSION": "2.6.1"
    }
}
INFO project_data: Setting default profile to HDV 720 24p
INFO language: Qt Detected Languages: ['en-US']
INFO language: LANG Environment Variable: en_US.UTF-8
INFO language: LOCALE Environment Variable: 
INFO language: OpenShot Preference Language: Default
INFO logger_libopenshot: Connecting to libopenshot with debug port: 5556
INFO app: Setting font to /tmp/.mount_XRYINK/usr/bin/images/fonts/Ubuntu-R.ttf
INFO app: Setting custom dark theme
INFO ui_util: Initializing UI for MainWindow
Installed Qt WebEngine locales directory not found at location /tmp/.mount_XRYINK/usr/bin/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /tmp/.mount_XRYINK/usr/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/dogmatic69/.openshot'
[0620/232325.947018:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
/tmp/.mount_XRYINK/usr/bin/QtWebEngineProcess: /tmp/.mount_XRYINK/usr/bin/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
/tmp/.mount_XRYINK/usr/bin/QtWebEngineProcess: /tmp/.mount_XRYINK/usr/bin/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
Installed Qt WebEngine locales directory not found at location /tmp/.mount_XRYINK/usr/bin/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /tmp/.mount_XRYINK/usr/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/dogmatic69/.QtWebEngineProcess'
[0620/232326.538530:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
INFO thumbnail: Starting thumbnail server listening on port 55627
INFO webengine: WebEngine backend initializing
INFO transition_model: updating transitions model.
INFO version: Found current version: {'trans_rate_unstable': 0.001, 'error_rate_stable': 0.16, 'error_rate_unstable': 0.05, 'openshot_version': '2.6.1', 'trans_rate_stable': 0.01}
INFO effects_model: updating effects model.
INFO emoji_model: updating emoji model.
INFO sentry: Sentry initialized with 0.16 error reporting rate (production)
INFO main_window: InitCacheSettings
INFO main_window: cache-mode: CacheMemory
INFO main_window: cache-limit-mb: 250
INFO main_window: Creating CacheMemory object with 262144000 byte limit
INFO main_window: Clear all thumbnails: /home/dogmatic69/.openshot_qt/thumbnail
INFO preview_thread: QThread Start Method Invoked
INFO main_window: Clear all animations: /home/dogmatic69/.openshot_qt/blender
INFO main_window: Clear all titles: /home/dogmatic69/.openshot_qt/title
INFO main_window: updateStatusChanged
INFO main_window: recover_backup
INFO project_data: Setting default profile to HDV 720 24p
INFO preview_thread: player Position(): 1
INFO video_widget: Load: Set video widget display aspect ratio to: 1.7777777910232544
INFO video_widget: Set video widget pixel aspect ratio to: 1.0
INFO main_window: updateStatusChanged
INFO preview_thread: player Position(): 1
INFO timeline: Adjusting max size of preview image: PyQt5.QtCore.QSize(608, 342)
INFO preview_thread: player Position(): 1
WARNING webengine: WebEngine backend still not ready after 5 retries.
WARNING webengine: WebEngine backend still not ready after 5 retries.
WARNING webengine: WebEngine backend still not ready after 5 retries.
WARNING webengine: WebEngine backend still not ready after 5 retries.
... this carries on endlessly ....
WARNING webengine: WebEngine backend still not ready after 1055 retries.
WARNING webengine: WebEngine backend still not ready after 1050 retries.
WARNING webengine: WebEngine backend still not ready after 1055 retries.
WARNING webengine: WebEngine backend still not ready after 1055 retries.

Without the --no-sandbox there is no errors in the UI but the timeline does not "load".
image

@dogmatic69
Copy link

dogmatic69 commented Jun 20, 2022

The logs with --no-sandbox ("fixes" timeline on both linux machines)

$ ~/Apps/OpenShot-v2.6.1-x86_64.AppImage --no-sandbox
sh: 0: getcwd() failed: No such file or directory
Copying icon thumbnails to cache
ICONFILE = /home/dogmatic69/.cache/thumbnails/normal/bbfeaaf00538813af7a14b6c423e8ce0.png
Loaded modules from: /tmp/.mount_FFjl8S/usr/bin
INFO app: ------------------------------------------------
INFO app:             Mon Jun 20 23:27:41 2022            
INFO app:               Starting new session              
INFO app: ------------------------------------------------
INFO app:             OpenShot (version 2.6.1)            
INFO app: ------------------------------------------------
INFO app: openshot-qt version: 2.6.1
INFO app: libopenshot version: 0.2.7
INFO app: platform: Linux-5.15.0-39-generic-x86_64-with-Ubuntu-22.04-jammy
INFO app: processor: x86_64
INFO app: machine: x86_64
INFO app: python version: 3.6.9
INFO app: qt5 version: 5.9.5
INFO app: pyqt5 version: 5.10.1
INFO app: Frozen version info from build server:
{
    "build_name": "OpenShot-v2.6.1-release-candidate-8238-59878784-d588dbd6",
    "date": "2021-09-04 23:49",
    "libopenshot": {
        "CI_COMMIT_REF_NAME": "release-20210904",
        "CI_COMMIT_SHA": "59878784732fa399c47ac5d282bfc9dfe470d0dc",
        "CI_JOB_ID": "27417",
        "CI_PIPELINE_ID": "8237",
        "CI_PROJECT_NAME": "libopenshot",
        "SO": "21",
        "VERSION": "0.2.7"
    },
    "libopenshot-audio": {
        "CI_COMMIT_REF_NAME": "release-20210904",
        "CI_COMMIT_SHA": "d588dbd6057f71c987dc6d8448322aa6b6e86f1a",
        "CI_JOB_ID": "27412",
        "CI_PIPELINE_ID": "8236",
        "CI_PROJECT_NAME": "libopenshot-audio",
        "SO": "8",
        "VERSION": "0.2.2"
    },
    "openshot-qt": {
        "CI_COMMIT_REF_NAME": "release-20210904",
        "CI_COMMIT_SHA": "11f8e5050bd95c7731beccda28a01fbb481fcf7d",
        "CI_JOB_ID": "27422",
        "CI_PIPELINE_ID": "8238",
        "CI_PROJECT_NAME": "openshot-qt",
        "SO": null,
        "VERSION": "2.6.1"
    }
}
INFO project_data: Setting default profile to HDV 720 24p
INFO language: Qt Detected Languages: ['en-US']
INFO language: LANG Environment Variable: en_US.UTF-8
INFO language: LOCALE Environment Variable: 
INFO language: OpenShot Preference Language: Default
INFO logger_libopenshot: Connecting to libopenshot with debug port: 5556
INFO app: Setting font to /tmp/.mount_FFjl8S/usr/bin/images/fonts/Ubuntu-R.ttf
INFO app: Setting custom dark theme
INFO ui_util: Initializing UI for MainWindow
Installed Qt WebEngine locales directory not found at location /tmp/.mount_FFjl8S/usr/bin/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /tmp/.mount_FFjl8S/usr/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/dogmatic69/.openshot'
[0620/232743.502332:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
/tmp/.mount_FFjl8S/usr/bin/QtWebEngineProcess: /tmp/.mount_FFjl8S/usr/bin/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
/tmp/.mount_FFjl8S/usr/bin/QtWebEngineProcess: /tmp/.mount_FFjl8S/usr/bin/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
Installed Qt WebEngine locales directory not found at location /tmp/.mount_FFjl8S/usr/bin/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /tmp/.mount_FFjl8S/usr/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/dogmatic69/.QtWebEngineProcess'
[0620/232744.078841:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
INFO thumbnail: Starting thumbnail server listening on port 47915
INFO webengine: WebEngine backend initializing
INFO transition_model: updating transitions model.
INFO effects_model: updating effects model.
INFO emoji_model: updating emoji model.
INFO version: Found current version: {'trans_rate_unstable': 0.001, 'error_rate_stable': 0.16, 'error_rate_unstable': 0.05, 'openshot_version': '2.6.1', 'trans_rate_stable': 0.01}
INFO sentry: Sentry initialized with 0.16 error reporting rate (production)
INFO main_window: InitCacheSettings
INFO main_window: cache-mode: CacheMemory
INFO main_window: cache-limit-mb: 250
INFO main_window: Creating CacheMemory object with 262144000 byte limit
INFO main_window: Clear all thumbnails: /home/dogmatic69/.openshot_qt/thumbnail
INFO preview_thread: QThread Start Method Invoked
INFO main_window: Clear all animations: /home/dogmatic69/.openshot_qt/blender
INFO main_window: Clear all titles: /home/dogmatic69/.openshot_qt/title
INFO main_window: updateStatusChanged
INFO app: Process command-line arguments: ['/tmp/.mount_FFjl8S/usr/bin/openshot-qt', '--no-sandbox']
INFO project_data: Setting default profile to HDV 720 24p
INFO preview_thread: player Position(): 1
INFO video_widget: Load: Set video widget display aspect ratio to: 1.7777777910232544
INFO video_widget: Set video widget pixel aspect ratio to: 1.0
INFO main_window: updateStatusChanged
WARNING files_model: Failed to import --no-sandbox: No Reader has been initialized for this Clip.  Call Reader(*reader) before calling this method.
INFO preview_thread: player Position(): 1
INFO timeline: Adjusting max size of preview image: PyQt5.QtCore.QSize(608, 342)
INFO preview_thread: player Position(): 1
INFO webengine: Registering WebChannel connection with WebEngine
Property 'modal'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'windowModality'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'enabled'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'geometry'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'frameGeometry'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'normalGeometry'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'x'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'y'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'pos'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'frameSize'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'size'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'width'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'height'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'rect'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'childrenRect'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'childrenRegion'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'sizePolicy'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'minimumSize'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'maximumSize'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'minimumWidth'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'minimumHeight'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'maximumWidth'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'maximumHeight'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'sizeIncrement'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'baseSize'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'palette'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'font'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'cursor'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'mouseTracking'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'tabletTracking'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'isActiveWindow'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'focusPolicy'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'focus'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'contextMenuPolicy'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'updatesEnabled'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'visible'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'minimized'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'maximized'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'fullScreen'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'sizeHint'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'minimumSizeHint'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'acceptDrops'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'windowOpacity'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'windowModified'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'toolTip'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'toolTipDuration'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'statusTip'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'whatsThis'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'accessibleName'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'accessibleDescription'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'layoutDirection'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'autoFillBackground'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'styleSheet'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'locale'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'windowFilePath'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'inputMethodHints'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'title'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'url'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'selectedText'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'hasSelection'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'zoomFactor'' of object 'TimelineWebView' has no notify signal and is not constant, value updates in HTML will be broken!
INFO webview: Qt Ready
INFO webview: Angular Ready

Works but with this error / notice:
image

@dogmatic69
Copy link

If you want more, just give me some specific commands / places to colled logs 👌🏻

@JacksonRG
Copy link
Collaborator

@dogmatic69
Looking at those log files, have you updated to a recent daily build? Looks like you're on 2.6.1 "release candidate".

This fix is in our daily builds, but hasn't made it to our release version yet.

You can get daily builds here: https://www.openshot.org/download/

@dogmatic69
Copy link

no, not used a daily build the release has been unstable enough :D

When's the next release?

@JacksonRG
Copy link
Collaborator

I can't say for certain. We've got a few more big improvements that we'd like to finish before we release again.

@AntonOfTheWoods
Copy link

I can confirm that this specific issues appears to be fixed with the latest Daily at the moment I am posting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WARNING webengine: WebEngine backend still not ready after # retries.
4 participants