Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File - Open causes segfault #4747

Closed
jpecar opened this issue Mar 27, 2022 · 1 comment
Closed

File - Open causes segfault #4747

jpecar opened this issue Mar 27, 2022 · 1 comment
Labels
stale This issue has not had any activity in 60 days :(

Comments

@jpecar
Copy link

jpecar commented Mar 27, 2022

I installed openshot stable some months ago. I couldn't use it as clicking the Open icon would crash it. I then installed nightly build and the issue persisted. I waited for a couple of months, updating daily build and the issue still exists so I'm now reporting it.

Steps to reproduce the behavior:

  1. Go to File
  2. Click on Open
  3. Crash.

Expected behavior:
I expect some form of file selector box to appear.

System Details:

  • OpenShot Version daily (currently at 2.6.1+dfsg2+1536+202203221934~ubuntu20.04.1)
  • Operating System / Distro: XUbuntu 20.04

Log Files:
On fresh profile, openshot-qt.log does not even get created when this crash happens. However libopenshot.log contains the stack trace. Below is the console output in full.

Exception / Stacktrace:
$ openshot-qt
Loaded modules from: /usr/lib/python3/dist-packages/openshot_qt
INFO app: ------------------------------------------------
INFO app: Sun Mar 27 17:23:00 2022
INFO app: Starting new session
INFO app: ------------------------------------------------
INFO app: OpenShot (version 2.6.1-dev)
INFO app: ------------------------------------------------
INFO app: openshot-qt version: 2.6.1-dev
INFO app: libopenshot version: 0.2.7-dev
INFO app: platform: Linux-5.4.0-100-generic-x86_64-with-glibc2.29
INFO app: processor: x86_64
INFO app: machine: x86_64
INFO app: python version: 3.8.10
INFO app: qt5 version: 5.12.8
INFO app: pyqt5 version: 5.14.1
INFO project_data: Setting default profile to HD 720p 30 fps
INFO project_data: Apply default audio playback settings: 48000, 2 channels
Screen DisplayPort-0
devicePixelRatio: 1.0
logicalDotsPerInch: 96.0
physicalDotsPerInch: 159.85571234152283
availableSizes: PyQt5.QtCore.QSize(3840, 2160)
Screen DisplayPort-1
devicePixelRatio: 1.0
logicalDotsPerInch: 96.0
physicalDotsPerInch: 163.33129935391244
availableSizes: PyQt5.QtCore.QSize(3840, 2160)
Screen DisplayPort-3
devicePixelRatio: 1.0
logicalDotsPerInch: 96.0
physicalDotsPerInch: 42.30501672240803
availableSizes: PyQt5.QtCore.QSize(1920, 1080)
INFO language: Qt Detected Languages: ['en']
INFO language: LANG Environment Variable: en_US.UTF-8
INFO language: LOCALE Environment Variable:
INFO language: OpenShot Preference Language: Default
INFO app: Setting font to /usr/lib/python3/dist-packages/openshot_qt/images/fonts/Ubuntu-R.ttf
INFO logger_libopenshot: Connecting to libopenshot with debug port: 5556
INFO app: Setting custom dark theme
INFO ui_util: Initializing UI for MainWindow
INFO thumbnail: Starting thumbnail server listening on port 49037
INFO webengine: WebEngine backend initializing
INFO transition_model: updating transitions model.
INFO version: Found current version: {'trans_rate_unstable': 0.001, 'trans_rate_stable': 0.01, 'openshot_version': '2.6.1', 'error_rate_unstable': 0.05, 'error_rate_stable': 0.16}
INFO effects_model: updating effects model.
INFO emoji_model: updating emoji model.
INFO main_window: InitCacheSettings
INFO main_window: cache-mode: CacheMemory
INFO main_window: cache-limit-mb: 1024
INFO main_window: Creating CacheMemory object with 1073741824 byte limit
INFO main_window: Cleared temporary files: /home/USER/.openshot_qt/thumbnail
INFO main_window: Cleared temporary files: /home/USER/.openshot_qt/blender
INFO main_window: Cleared temporary files: /home/USER/.openshot_qt/title
INFO preview_thread: QThread Start Method Invoked
INFO main_window: updateStatusChanged
INFO main_window: recover_backup
INFO project_data: Setting default profile to HD 720p 30 fps
INFO project_data: Apply default audio playback settings: 48000, 2 channels
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 sentry: Sentry initialized for 'unstable': 0.05 sample rate, 0.001 transaction rate
INFO preview_thread: Detected default audio device sample rate: 44100
WARNING preview_thread: Your sample rate (44100) does not match OpenShot (48000). This can potentially play audio too fast/slow if not fixed. Adjust your 'Preferences->Preview->Default Sample Rate to match your system rate: 44100, and restart OpenShot.
INFO preview_thread: player Position(): 1
INFO timeline: Adjusting max size of preview image: PyQt5.QtCore.QSize(620, 348)
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
INFO sentry: Sentry initialized for 'unstable': 0.05 sample rate, 0.001 transaction rate
INFO ui_util: Initializing UI for dlgPreferences
Hardware decoding device number: 0
Hardware decoding device number: 0
Hardware decoding device number: 0
Hardware decoding device number: 0
Hardware decoding device number: 1
Hardware decoding device number: 1
Hardware decoding device number: 0
Hardware decoding device number: 0
Hardware decoding device number: 1
Hardware decoding device number: 1
OpenType support missing for "Ubuntu", script 11
OpenType support missing for "Ubuntu", script 12
OpenType support missing for "Mukti Narrow", script 12
OpenType support missing for "Ubuntu", script 13
OpenType support missing for "Ubuntu", script 16
OpenType support missing for "Ubuntu", script 17
OpenType support missing for "Ubuntu", script 18
OpenType support missing for "Lohit Kannada", script 18
OpenType support missing for "Ubuntu", script 19
OpenType support missing for "Ubuntu", script 20
INFO preferences: Setting debug-mode to True
INFO main_window: Preferences add cancelled
Caught signal 11 (SIGSEGV)
---- Unhandled Exception: Stack Trace ----
/lib/x86_64-linux-gnu/libX11.so.6 ( XrmQGetResource + 0x4f ) [0x7ff4a719051f]
/lib/x86_64-linux-gnu/libX11.so.6 ( XGetDefault + 0xda ) [0x7ff4a716bcaa]
/lib/x86_64-linux-gnu/libcairo.so.2 ( + 0x9f1a8) [0x7ff4a404e1a8]
/lib/x86_64-linux-gnu/libcairo.so.2 ( + 0xa1c44) [0x7ff4a4050c44]
/lib/x86_64-linux-gnu/libcairo.so.2 ( cairo_surface_get_font_options + 0x79 ) [0x7ff4a4026f99]
/lib/x86_64-linux-gnu/libcairo.so.2 ( + 0x2e502) [0x7ff4a3fdd502]
/lib/x86_64-linux-gnu/libcairo.so.2 ( + 0x31605) [0x7ff4a3fe0605]
/lib/x86_64-linux-gnu/libcairo.so.2 ( cairo_show_glyphs + 0x26 ) [0x7ff4a40357d6]
/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 ( + 0xac1b) [0x7ff4a0c21c1b]
/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 ( + 0xae3d) [0x7ff4a0c21e3d]
/lib/x86_64-linux-gnu/libpango-1.0.so.0 ( pango_renderer_draw_glyph_item + 0x43 ) [0x7ff4a0bf7e13]
/lib/x86_64-linux-gnu/libpango-1.0.so.0 ( pango_renderer_draw_layout_line + 0x459 ) [0x7ff4a0bf8939]
/lib/x86_64-linux-gnu/libpango-1.0.so.0 ( pango_renderer_draw_layout + 0x134 ) [0x7ff4a0bf8d04]
/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 ( + 0xb208) [0x7ff4a0c22208]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( gtk_render_layout + 0x186 ) [0x7ff49da6a836]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x238040) [0x7ff49d9e3040]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x182491) [0x7ff49d92d491]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x18733c) [0x7ff49d93233c]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x2352e5) [0x7ff49d9e02e5]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x39ca94) [0x7ff49db47a94]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( gtk_container_propagate_draw + 0x1eb ) [0x7ff49d92811b]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x17d1ed) [0x7ff49d9281ed]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x12deb8) [0x7ff49d8d8eb8]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x182491) [0x7ff49d92d491]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x18733c) [0x7ff49d93233c]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x1307d5) [0x7ff49d8db7d5]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x39ca94) [0x7ff49db47a94]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( gtk_container_propagate_draw + 0x1eb ) [0x7ff49d92811b]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x17d1ed) [0x7ff49d9281ed]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x1ccbc0) [0x7ff49d977bc0]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x39ca94) [0x7ff49db47a94]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( gtk_container_propagate_draw + 0x1eb ) [0x7ff49d92811b]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x17d1ed) [0x7ff49d9281ed]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x2c5edc) [0x7ff49da70edc]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x39ca94) [0x7ff49db47a94]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( gtk_container_propagate_draw + 0x1eb ) [0x7ff49d92811b]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x17d1ed) [0x7ff49d9281ed]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x2433a9) [0x7ff49d9ee3a9]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x182491) [0x7ff49d92d491]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x18733c) [0x7ff49d93233c]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x242ff9) [0x7ff49d9edff9]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x39ca94) [0x7ff49db47a94]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( gtk_container_propagate_draw + 0x1eb ) [0x7ff49d92811b]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x17d1ed) [0x7ff49d9281ed]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x242090) [0x7ff49d9ed090]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x182491) [0x7ff49d92d491]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x18733c) [0x7ff49d93233c]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x242fd9) [0x7ff49d9edfd9]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x39ca94) [0x7ff49db47a94]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( gtk_container_propagate_draw + 0x1eb ) [0x7ff49d92811b]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x17d1ed) [0x7ff49d9281ed]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x2a2b22) [0x7ff49da4db22]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x38d709) [0x7ff49db38709]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x182491) [0x7ff49d92d491]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x18733c) [0x7ff49d93233c]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x38e441) [0x7ff49db39441]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x39ca94) [0x7ff49db47a94]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( gtk_container_propagate_draw + 0x1eb ) [0x7ff49d92811b]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x17d1ed) [0x7ff49d9281ed]
/lib/x86_64-linux-gnu/libgtk-3.so.0 ( + 0x2d156d) [0x7ff49da7c56d]
---- End of Stack Trace ----

Running it under gdb shows that sigsegv happens at:
(gdb) bt
#0 __GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:67
#1 0x00007fd8dc16a51f in XrmQGetResource () at /lib/x86_64-linux-gnu/libX11.so.6
#2 0x00007fd8dc145caa in XGetDefault () at /lib/x86_64-linux-gnu/libX11.so.6
#3 0x00007fd8d90281a8 in () at /lib/x86_64-linux-gnu/libcairo.so.2
#4 0x00007fd8d902ac44 in () at /lib/x86_64-linux-gnu/libcairo.so.2
#5 0x00007fd8d9000f99 in cairo_surface_get_font_options () at /lib/x86_64-linux-gnu/libcairo.so.2
I can include all 170 lines of gdb backtrace but they mostly look the same as above.

Let me know if you need any additional information to fix this.

Thanks.

@stale
Copy link

stale bot commented Oct 1, 2022

Thank you so much for submitting an issue to help improve OpenShot Video Editor. We are sorry about this, but this particular issue has gone unnoticed for quite some time. To help keep the OpenShot GitHub Issue Tracker organized and focused, we must ensure that every issue is correctly labelled and triaged, to get the proper attention.

This issue will be closed, as it meets the following criteria:

  • No activity in the past 180 days
  • No one is assigned to this issue

We'd like to ask you to help us out and determine whether this issue should be reopened.

  • If this issue is reporting a bug, please can you attempt to reproduce on the latest daily build to help us to understand whether the bug still needs our attention.
  • If this issue is proposing a new feature, please can you verify whether the feature proposal is still relevant.

Thanks again for your help!

@stale stale bot added the stale This issue has not had any activity in 60 days :( label Oct 1, 2022
@stale stale bot closed this as completed Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue has not had any activity in 60 days :(
Projects
None yet
Development

No branches or pull requests

1 participant