Skip to content

Segmentation fault (core dumped) on Linux when using the WebView example #202

@dcabrero

Description

@dcabrero

Describe the bug
On my Linux machine, when trying to run the webview example, as soon as the app launches, it crashes.

Tried running it on Python 3.10.10 on the same Machine, but its also crashing. It runs perfectly fine on Windows 10 and 11

Environment

  • OS: Ubuntu 22.04.5 LTS
  • DPI scaling: 100% (Assuming by default)
  • Python: 3.12.10 (main, Sep 22 2025, 13:14:32) [GCC 11.4.0] on linux
  • PySide6: 6.9.2
    To Reproduce
  • Just run the example code on said specs.
    Code
    I'm using exactly the same one as provided in the examples:
# coding:utf-8
import sys

from PySide6.QtWidgets import QApplication, QHBoxLayout

from qframelesswindow import FramelessWindow, TitleBar, StandardTitleBar
from qframelesswindow.webengine import FramelessWebEngineView


class Window(FramelessWindow):

    def __init__(self, parent=None):
        super().__init__(parent=parent)
        # change the default title bar if you like
        self.setTitleBar(StandardTitleBar(self))

        self.hBoxLayout = QHBoxLayout(self)

        # must replace QWebEngineView with FramelessWebEngineView
        self.webEngine = FramelessWebEngineView(self)

        self.hBoxLayout.setContentsMargins(0, self.titleBar.height(), 0, 0)
        self.hBoxLayout.addWidget(self.webEngine)

        # load web page
        self.webEngine.load("https://qfluentwidgets.com/")
        self.resize(1200, 800)

        self.titleBar.raise_()



if __name__ == "__main__":
    app = QApplication(sys.argv)
    demo = Window()
    demo.show()
    app.exec()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions