Git Product home page Git Product logo

qt5platform-plugins's Introduction

qt5platform-plugins

qt5platform-plugins is the Qt platform integration plugin for Deepin Desktop Environment.

Dependencies

Build dependencies

  • pkg-config
  • mtdev
  • xcb-xkb
  • xcb-render-util
  • xcb-image
  • xcb-icccm4
  • xcb-keysyms1-dev
  • egl1-mesa
  • xkbcommon-x11
  • dbus-1
  • udev
  • xrender
  • xi
  • sm
  • xcb-xinerama
  • fontconfig
  • freetype6
  • glib2.0
  • xcb-damage
  • xcb-composite
  • cairo2
  • Qt5 (>= 5.6)
    • Qt5-Core
    • Qt5-Gui
    • Qt5-OpenGL
    • Qt5-X11extras
    • Qt5-Core-Private

Installation

Build from source code

  1. Make sure you have installed all dependencies.

  2. Build:

Support disabling some modules, add CONFIG+= when executing qmake.

val:

  • DISABLE_WAYLAND
  • DISABLE_XCB
mkdir build
cd build
qmake ..
make
  1. Install:
$ sudo make install

Usage

To be done.

Getting help

You may also find these channels useful if you encounter any other issues:

Getting involved

We encourage you to report issues and contribute changes

License

qt5platform-plugins is licensed under LGPL-3.0-or-later.

Environment variable

  • DXCB_PRINT_WINDOW_CREATE: Print the information of the QWindow when the local window is created
  • DXCB_PAINTENGINE_DISABLE_FEATURES: Specify the qpaintengine:: paintenginefeatures to disable, which is only valid for the QPainter drawing system
  • DXCB_FAKE_PLATFORM_NAME_XCB: Force the value of qguiapplication:: platformname property to be "xcb"
  • DXCB_DISABLE_HOOK_CURSOR: It is prohibited to use the value of qwindow:: devicepixelratio to automatically scale the size of the cursor on this window
  • DXCB_REDIRECT_CONTENT: Set whether to allow XDamage to redirect the content drawn in the window with dxcb mode enabled. "true" indicates that it is allowed, and "false" indicates that it is not allowed. Otherwise, the value set by the window itself will be used. If the window does not set any value, the redirection mode will be enabled when the surface type of the window is QSurface:: OpenGLSurface. Otherwise, it will not be enabled
  • DXCB_REDIRECT_CONTENT_WITH_NO_COMPOSITE: It is mandatory to allow the content drawn in the XDamage redirected window in the mode without window effects. If it is not set or the value is empty, the content drawn in the XDamage redirected window will not be used if the window manager does not support Composite

qt5platform-plugins's People

Contributors

18202781743 avatar 993381 avatar asterwyx avatar chaojiangluo avatar decodetalkers avatar deepin-bot[bot] avatar deepin-ci-robot avatar deepinzhangshuang avatar dragondjf avatar feiwang1119 avatar felixonmars avatar gs342 avatar hillwoodroc avatar hualet avatar hudeng-go avatar iceyer avatar justforlxz avatar kegechen avatar laplac2 avatar leaeasy avatar mhduiy avatar reionwong avatar sbwtw avatar sonald avatar ssk-wh avatar tsic404 avatar whale107 avatar wineee avatar zccrs avatar zeno-sole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qt5platform-plugins's Issues

Build error: no names found

I cloned this repo, and was trying to make a fresh build using
mkdir build && cd build && qmake .. && make

but I got "no names found" fatal error. I'm using Deepin 15.7/Qt 5.10.1.
The detailed error message is :

cd platformplugin/ && ( test -e Makefile.qt5platform-plugin || /usr/lib/qt5/bin/qmake -o Makefile.qt5platform-plugin /home/deepin/Projects/qt5dxcb-plugin/platformplugin/qt5platform-plugin.pro ) && make -f Makefile.qt5platform-plugin 
fatal: No names found, cannot describe anything.
Project MESSAGE: /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
make[1]: Entering directory '/home/deepin/Projects/qt5dxcb-plugin/build/platformplugin'
make[1]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libQt5EdidSupport.a', needed by '../../bin/plugins/platforms/libdxcb.so'.  Stop.
make[1]: Leaving directory '/home/deepin/Projects/qt5dxcb-plugin/build/platformplugin'
make: *** [Makefile:45: sub-platformplugin-qt5platform-plugin-pro-make_first] Error 2

What does it do?

Please explain

the Qt platform integration plugin for Deepin Desktop Environment

What does it do?

Segfault in libdxcb.so when trying to open Rapid Photo Downloader

Rapid Photo Downloader crashes every time when I launch it if deepin platform plugin is installed on the system.

       Message: Process 2671 (rapid-photo-dow) of user 1000 dumped core.
                
                Stack trace of thread 2671:
                #0  0x00007f953ac60ef5 raise (libc.so.6 + 0x3cef5)
                #1  0x00007f953ac60f80 __restore_rt (libc.so.6 + 0x3cf80)
                #2  0x00007f9530912908 _ZN22deepin_platform_plugin8DHighDpi10logicalDpiEP10QXcbScreen (libdxcb.so + 0x52908)
                #3  0x00007f953479f6c2 n/a (libQt5Gui.so.5 + 0x1636c2)
                #4  0x00007f953474d9e3 _ZN22QWindowSystemInterface17handleScreenAddedEP15QPlatformScreenb (libQt5Gui.so.5 + 0x1119e3)
                #5  0x00007f95307ef8a1 _ZN14QXcbConnection17initializeScreensEv (libQt5XcbQpa.so.5 + 0x618a1)
                #6  0x00007f95307ca378 _ZN14QXcbConnectionC2EP19QXcbNativeInterfacebjPKc (libQt5XcbQpa.so.5 + 0x3c378)
                #7  0x00007f95307cd12d _ZN15QXcbIntegrationC2ERK11QStringListRiPPc (libQt5XcbQpa.so.5 + 0x3f12d)
                #8  0x00007f953090cf91 _ZN22deepin_platform_plugin20DPlatformIntegrationC2ERK11QStringListRiPPc (libdxcb.so + 0x4cf91)
                #9  0x00007f953090c6a7 _ZN26DPlatformIntegrationPlugin6createERK7QStringRK11QStringListRiPPc (libdxcb.so + 0x4c6a7)
                #10 0x00007f953476c627 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x130627)
                #11 0x00007f953476dae1 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x131ae1)
                #12 0x00007f95399cc476 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2bd476)
                #13 0x00007f9534770b20 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x134b20)
                #14 0x00007f95339f46ba _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x15f6ba)
                #15 0x00007f95342a6b6a n/a (QtWidgets.abi3.so + 0x37db6a)
                #16 0x00007f95342a6c4a n/a (QtWidgets.abi3.so + 0x37dc4a)
                #17 0x00007f9536f33d10 n/a (sip.cpython-39-x86_64-linux-gnu.so + 0x18d10)
                #18 0x00007f953b00121b n/a (libpython3.9.so.1.0 + 0x21021b)
                #19 0x00007f953af3c9af PyObject_Call (libpython3.9.so.1.0 + 0x14b9af)
                #20 0x00007f953af1d7ef _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x12c7ef)
                #21 0x00007f953af199dd n/a (libpython3.9.so.1.0 + 0x1289dd)
                #22 0x00007f953af2bb8e _PyFunction_Vectorcall (libpython3.9.so.1.0 + 0x13ab8e)
                #23 0x00007f953af3870e n/a (libpython3.9.so.1.0 + 0x14770e)
                #24 0x00007f953af23f1b _PyObject_MakeTpCall (libpython3.9.so.1.0 + 0x132f1b)
                #25 0x00007f953af1f673 _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x12e673)
                #26 0x00007f953af2b9ea _PyFunction_Vectorcall (libpython3.9.so.1.0 + 0x13a9ea)
                #27 0x00007f953af1af15 _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x129f15)
                #28 0x00007f953af199dd n/a (libpython3.9.so.1.0 + 0x1289dd)
                #29 0x00007f953af193a1 _PyEval_EvalCodeWithName (libpython3.9.so.1.0 + 0x1283a1)
                #30 0x00007f953afdc0d3 PyEval_EvalCode (libpython3.9.so.1.0 + 0x1eb0d3)
                #31 0x00007f953afec24d n/a (libpython3.9.so.1.0 + 0x1fb24d)
                #32 0x00007f953afe7f6b n/a (libpython3.9.so.1.0 + 0x1f6f6b)
                #33 0x00007f953ae8938b n/a (libpython3.9.so.1.0 + 0x9838b)
                #34 0x00007f953ae887b4 PyRun_SimpleFileExFlags (libpython3.9.so.1.0 + 0x977b4)
                #35 0x00007f953affddea Py_RunMain (libpython3.9.so.1.0 + 0x20cdea)
                #36 0x00007f953afcf149 Py_BytesMain (libpython3.9.so.1.0 + 0x1de149)
                #37 0x00007f953ac4bb25 __libc_start_main (libc.so.6 + 0x27b25)
                #38 0x000055a59c71c04e _start (python3.9 + 0x104e)

Package versions:

  • deepin-qt5platform-plugins 5.0.21
  • qt5-base 5.15.2+kde+r192
  • python-pyqt5 5.15.4
  • rapid-photo-downloader 0.9.26

Distribution: Arch Linux

Build failure on Qt 5.14+

In file included from /usr/include/qt/QtCore/qnamespace.h:43,
                 from /usr/include/qt/QtCore/qpoint.h:43,
                 from /usr/include/qt/QtCore/QPointF:1,
                 from dhighdpi.h:26,
                 from dhighdpi.cpp:21:
vtablehook.h: In instantiation of ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(quintptr*, Fun1, Fun2, bool) [with Fun1 = double (QPlatformScreen::*)() const; Fun2 = double (*)(QXcbScreen*); quintptr = long long unsigned int]’:
vtablehook.h:226:32:   required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(Fun1, Fun2) [with Class = QPlatformScreen; Fun1 = double (QPlatformScreen::*)() const; Fun2 = double (*)(QXcbScreen*)]’
vtablehook.h:233:59:   required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(Fun1, Fun2) [with Fun1 = double (QPlatformScreen::*)() const; Fun2 = double (*)(QXcbScreen*)]’
dhighdpi.cpp:66:82:   required from here
vtablehook.h:174:9: error: static assertion failed: Function1 and Function2 arguments are not compatible.
  174 |         Q_STATIC_ASSERT_X((CheckCompatibleArguments<typename FunctionPointer<Fun1>::Arguments, typename FunInfo2::Arguments>::value),
      |         ^~~~~~~~~~~~~~~~~
windoweventhook.cpp: At global scope:
windoweventhook.cpp:391:13: warning: ‘bool deepin_platform_plugin::focusInPeeker(QXcbConnection*, xcb_generic_event_t*)’ defined but not used [-Wunused-function]
  391 | static bool focusInPeeker(QXcbConnection *connection, xcb_generic_event_t *event)
      |             ^~~~~~~~~~~~~
make[1]: *** [Makefile.qt5platform-plugin:613: dhighdpi.o] Error 1

pixelDensity is gone in https://code.qt.io/cgit/qt/qtbase.git/commit/src/plugins/platforms/xcb/qxcbscreen.h?h=5.14.2&id=900f2cb6f7070b4d426f3b83787ac489b8a2e827

Related QTBUG: https://bugreports.qt.io/browse/QTBUG-53022

ld fail

https://copr.fedorainfracloud.org/coprs/mosquito/deepin/build/821174/

System: Fedora 29
Build requires:

gcc-c++-8.2.1
qt5-qtbase-devel-5.11.1
libxkbcommon-devel-0.8.2
libXi-devel-1.7.9
libxcb-devel-1.13.1
xcb-util-renderutil-devel-0.3.9
xcb-util-image-devel-0.4.0
xcb-util-wm-devel-0.4.1
xcb-util-keysyms-devel-0.4.0
libSM-devel-1.2.3
mtdev-devel-1.1.5
cairo-devel-1.16.0
dbus-devel-1:1.12.10
g++ -Wl,-O1 -shared -o libdxcb.so windoweventhook.o xcbnativeeventfilter.o utility_x11.o dxcbwmsupport.o dforeignplatformwindow_x11.o main.o dplatformintegration.o vtablehook.o dplatformnativeinterfacehook.o dhighdpi.o dframewindow.o dplatformwindowhelper.o dplatformbackingstorehelper.o dplatformopenglcontexthelper.o qrc_cursor.o moc_dxcbwmsupport.o moc_dframewindow.o moc_dplatformwindowhelper.o 
  -lQt5XcbQpa -lxcb-render-util -lxcb-render -ldbus-1 -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lxcb-xkb -lxcb-composite -lxkbcommon-x11
 -lxkbcommon -lxcb-damage -lmtdev -lEGL -lcairo -lxcb-xinerama -lQt5OpenGL -lQt5Widgets -lQt5X11Extras -lQt5Gui -lQt5EdidSupport -lQt5Core -lGL -lpthread -lX11-xcb -lX11 -lXi -lSM -lICE -lxcb  
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libQt5X11Extras.so:(*IND*+0x0): multiple definition of `__bss_start'
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libQt5X11Extras.so:(*IND*+0x0): multiple definition of `_end'
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libQt5X11Extras.so:(*IND*+0x0): multiple definition of `_edata'
collect2: 错误:ld 返回 1
make[1]: *** [Makefile.qt5platform-plugin:207:../bin/plugins/platforms/libdxcb.so] 错误 1
make[1]: 离开目录“/home/mosquito/qt5dxcb-plugin/platformplugin”
make: *** [Makefile:45:sub-platformplugin-qt5platform-plugin-pro-make_first] 错误 2

@felixonmars

New build failures under Qt 5.15

In file included from /usr/include/qt/QtGui/qmatrix.h:45,
                 from /usr/include/qt/QtGui/qtransform.h:43,
                 from /usr/include/qt/QtGui/qimage.h:48,
                 from /usr/include/qt/QtGui/5.15.0/QtGui/qpa/qplatformscreen.h:61,
                 from /usr/include/qt/QtGui/5.15.0/QtGui/qpa/qplatformintegration.h:54,
                 from /usr/include/qtxcb-private/qxcbintegration.h:44,
                 from dplatformintegration.h:26,
                 from dxcbwmsupport.cpp:19:
/usr/include/qt/QtGui/qregion.h:125:20: note: declared here
  125 |     QVector<QRect> rects() const;
      |                    ^~~~~
In file included from main.cpp:6:
qtwayland-dev/QtWaylandClient/private/qwaylandwindow_p.h:207:10: error: ‘bool QtWaylandClient::QWaylandWindow::startSystemMove(const QPoint&)’ marked ‘override’, but does not override
  207 |     bool startSystemMove(const QPoint &pos) override;
      |          ^~~~~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/qcborcommon.h:45,
                 from /usr/include/qt/QtCore/qcborvalue.h:45,
                 from /usr/include/qt/QtCore/qjsonvalue.h:46,
                 from /usr/include/qt/QtCore/qjsonobject.h:43,
                 from /usr/include/qt/QtCore/qplugin.h:46,
                 from qtwayland-dev/QtWaylandClient/private/qwaylandshellintegrationplugin_p.h:56,
                 from main.cpp:3:
/usr/include/qt/QtCore/qdebug.h:227:23: error: ambiguous overload for ‘operator<<’ (operand types are ‘QDebug’ and ‘const QPointer<QtWaylandClient::QWaylandWindow>’)
  227 |         debug << ", " << *it;
      |         ~~~~~~~~~~~~~~^~~~~~
windoweventhook.cpp: In static member function ‘static void deepin_platform_plugin::WindowEventHook::handleFocusInEvent(QXcbWindowEventListener*, const xcb_focus_in_event_t*)’:
windoweventhook.cpp:362:5: error: ‘xcbWindow’ was not declared in this scope; did you mean ‘xcb_window’?
  362 |     xcbWindow->connection()->focusInTimer().stop();
      |     ^~~~~~~~~
      |     xcb_window

Segfault in libdxcb.so when trying to open Krita on Manjaro/DDE

Issue description

When trying to open Krita in a Deepin Desktop Environment on Manjaro 20.0.1., the application throws a segfault and refuses to start.

Steps to reproduce the issue

  1. Open a terminal (zsh in my case)
  2. type krita

What's the expected result?

  • a running application

What's the actual result?

segmentation fault (core dumped) krita

and in the dmesg log:

traps: krita[212953] general protection fault ip:7f129c74a324 sp:7fff31ef3380 error:0 in libdxcb.so[7f129c73a000+3b000]

Additional details

qmake --version

QMake version 3.1
Using Qt version 5.14.2 in /usr/lib

pacman -Qe krita

krita 4.2.9-2

pacman -Qe deepin-qt5dxcb-plugin

deepin-qt5dxcb-plugin 5.0.11-1

pacman -Qe `pacman -Qg qt | awk '{print $2}'`

qt5-translations 5.14.2-1

pacman -Qe `pacman -Qg deepin | awk '{print $2}'`

deepin-account-faces 1.0.11-1.1
deepin-anything 5.0.1-2
deepin-api 5.1.11.1-1
deepin-calendar 5.6.2-1
deepin-control-center 5.1.0.5-1
deepin-daemon 5.10.0.1-1
deepin-desktop-base 3:2019.07.10-1
deepin-dock 5.1.0.9-1
deepin-file-manager 1:5.1.1.25-1
deepin-gtk-theme 17.10.11-1
deepin-image-viewer 5.6.3.2-1
deepin-launcher 5.1.0099.0-1
deepin-menu 5.0.1-1
deepin-network-utils 5.1.0.0-1
deepin-polkit-agent-ext-gnomekeyring 0.1.0-1
deepin-qt5dxcb-plugin 5.0.11-1
deepin-qt5integration 5.1.0.1-2
deepin-screensaver 0.0.10-1
deepin-session-shell 5.0.0098.0-2
deepin-session-ui 5.1.0099.4-1
deepin-shortcut-viewer 5.0.2-1
deepin-sound-theme 15.10.4-1
deepin-system-monitor 5.6.1-1
deepin-turbo 0.0.3-1
startdde 5.3.0.1-2

编译错误,xcp-xinput库未定义,但已经安装了

cd xcb/ && ( test -e Makefile || /home/thepoy/Qt/5.15.2/gcc_64/bin/qmake -o Makefile /home/thepoy/Apps/qt5platform-plugins/xcb/xcb.pro ) && make -f Makefile 
Project MESSAGE: /home/thepoy/Qt/5.15.2/gcc_64/plugins/platforms
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
Project ERROR: Library 'xcb-xinput' is not defined.
make: *** [Makefile:48:sub-xcb-xcb-pro-make_first] 错误 3

goverlay crash with libdxcb.so

Workaround is to remove libdxcb.so from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/

Steps to reproduce:

  1. Install mangohud and goverlay
  2. Extract goverlay and cd ~/Downloads/goverlay_0_6_2/
  3. Run mangohud --dlsym ./goverlay

Logs:

marcin@marcin-PC:~/Downloads/goverlay_0_6_2$ mangohud --dlsym gdb -ex=r ./goverlay 
GNU gdb (Uos 8.2.1.1-1+security) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./goverlay...done.
Starting program: /home/marcin/Downloads/goverlay_0_6_2/goverlay 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff725f535 in __GI_abort () at abort.c:79
#2  0x00007ffff2ef62af in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libdxcb.so
#3  0x00007ffff2ef7b19 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libdxcb.so
#4  0x00007ffff7fe43fa in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffcb88, env=env@entry=0x7fffffffcb98)
    at dl-init.c:72
#5  0x00007ffff7fe44f6 in call_init (env=0x7fffffffcb98, argv=0x7fffffffcb88, argc=1, l=<optimized out>) at dl-init.c:30
#6  _dl_init (main_map=main_map@entry=0x113c150, argc=1, argv=0x7fffffffcb88, env=0x7fffffffcb98) at dl-init.c:119
#7  0x00007ffff7fe8353 in dl_open_worker (a=a@entry=0x7fffffffbf70) at dl-open.c:517
#8  0x00007ffff7371c8f in __GI__dl_catch_exception (exception=<optimized out>, operate=<optimized out>, args=<optimized out>)
    at dl-error-skeleton.c:196
#9  0x00007ffff7fe7c3a in _dl_open (file=0x1138828 "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libdxcb.so", mode=-2147479551, 
    caller_dlopen=0x7ffff5e43024, nsid=<optimized out>, argc=1, argv=0x7fffffffcb88, env=0x7fffffffcb98) at dl-open.c:599
#10 0x00007ffff79d8256 in dlopen_doit (a=a@entry=0x7fffffffc190) at dlopen.c:66
#11 0x00007ffff7371c8f in __GI__dl_catch_exception (exception=exception@entry=0x7fffffffc130, operate=<optimized out>, args=<optimized out>)
    at dl-error-skeleton.c:196
#12 0x00007ffff7371d1f in __GI__dl_catch_error (objname=0x111fca0, errstring=0x111fca8, mallocedp=0x111fc98, operate=<optimized out>, 
    args=<optimized out>) at dl-error-skeleton.c:215
#13 0x00007ffff79d8975 in _dlerror_run (operate=operate@entry=0x7ffff79d8200 <dlopen_doit>, args=args@entry=0x7fffffffc190) at dlerror.c:163
#14 0x00007ffff79d82e6 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#15 0x00007ffff5e43024 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007ffff5e3c7f5 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007ffff5e3cdb3 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff5e3d138 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007ffff5e32d8e in QFactoryLoader::instance(int) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007ffff640e7f9 in QPlatformIntegrationFactory::create(QString const&, QStringList const&, int&, char**, QString const&) ()
   from /lib/x86_64-linux-gnu/libQt5Gui.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#21 0x00007ffff641cc25 in QGuiApplicationPrivate::createPlatformIntegration() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007ffff641dc0d in QGuiApplicationPrivate::createEventDispatcher() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007ffff5e4df66 in QCoreApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007ffff641ffaf in QGuiApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#25 0x00007ffff6af7d19 in QApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007ffff78ac771 in QApplication_Create () from /lib/x86_64-linux-gnu/libQt5Pas.so.1
#27 0x00000000005f6b25 in CREATE (this=0x7ffff34ebff0, vmt=0x1) at qtobject.inc:31
#28 0x000000000044b8fa in CREATEWIDGETSET (AWIDGETSETCLASS=0x8f48b8) at forms.pp:2223
#29 0x000000000044a773 in INTERFACES_$$_init$ () at interfaces.pp:36
#30 0x000000000043a1dc in fpc_initializeunits ()
#31 0x00007fffffffcb80 in ?? ()
#32 0x0000000000423f10 in ?? ()
#33 0x0000000000857f10 in __dso_handle ()
#34 0x0000000000423fa9 in main () at goverlay.lpr:16
(gdb) 

Distro: Deepin 20

For some reason i keep getting this

This application failed to start because it could not find or load the Qt platform plugin "dxcb"
in "".

Available platform plugins are: wayland-org.kde.kwin.qpa, dxcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Reinstalling the application may fix this problem.
[1] 20458 abort (core dumped) deepin-movie

1.1.8.5 fails to build

Under Solus, using Qt 5.10, 1.1.8.4 builds okay, but 1.1.8.5 does not, failing with:

../../platformplugin/dplatformwindowhelper.cpp: In member function ‘virtual bool deepin_platform_plugin::DPlatformWindowHelper::eventFilter(QObject*, QEvent*)’:
../../platformplugin/dplatformwindowhelper.cpp:597:86: error: invalid user-defined conversion from ‘Qt::WindowStates {aka QFlags<Qt::WindowState>}’ to ‘Qt::WindowState’ [-fpermissive]
             Qt::WindowState old_state = qt_window_private(m_nativeWindow->window())->windowState;
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/QtCore/qglobal.h:1177:0,
                 from /usr/include/QtCore/QtGlobal:1,
                 from ../../platformplugin/dplatformwindowhelper.h:21,
                 from ../../platformplugin/dplatformwindowhelper.cpp:18:
/usr/include/QtCore/qflags.h:137:29: note: candidate is: constexpr QFlags<T>::operator QFlags<T>::Int() const [with Enum = Qt::WindowState; QFlags<T>::Int = unsigned int] <near match>
     Q_DECL_CONSTEXPR inline operator Int() const Q_DECL_NOTHROW { return i; }
                             ^~~~~~~~
/usr/include/QtCore/qflags.h:137:29: note:   no known conversion from ‘QFlags<Qt::WindowState>::Int {aka unsigned int}’ to ‘Qt::WindowState’
../../platformplugin/dplatformwindowhelper.cpp:617:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
             e->p -= m_frameWindow->contentOffsetHint();
             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../platformplugin/dplatformwindowhelper.cpp:619:9: note: here
         case QEvent::DragLeave:
         ^~~~
make[1]: *** [Makefile.qt5platform-plugin:658: dplatformwindowhelper.o] Error 1

Segfault in libdxcb.so when trying to open vokoscreenNG

vokoscreenNG crashes every time when I launch it if deepin platform plugin is installed on the system.

       Message: Process 2032 (vokoscreenNG) of user 1000 dumped core.
                
                Stack trace of thread 2032:
                #0  0x00007fc2903cba34 _ZNK7QScreen4nameEv (libQt5Gui.so.5 + 0x163a34)
                #1  0x00007fc28bb29a96 _ZN22deepin_platform_pluginL20watchScreenDPIChangeEP7QScreen (libdxcb.so + 0x4da96)
                #2  0x00007fc28fe7cb76 n/a (libQt5Core.so.5 + 0x2edb76)
                #3  0x00007fc290394143 _ZN15QGuiApplication11screenAddedEP7QScreen (libQt5Gui.so.5 + 0x12c143)
                #4  0x000055d37449e084 _ZN13QvkMainWindowC2EP7QWidget (vokoscreenNG + 0x34084)
                #5  0x000055d37448bfd7 main (vokoscreenNG + 0x21fd7)
                #6  0x00007fc28f7f0b25 __libc_start_main (libc.so.6 + 0x27b25)
                #7  0x000055d37448cd1e _start (vokoscreenNG + 0x22d1e)

Package versions:

  • deepin-qt5platform-plugins 5.0.21
  • qt5-base 5.15.2+kde+r192
  • vokoscreen 3.0.8

Distribution: Arch Linux

megasync segfault

Hi there,
It seems that deepin v20 beta is not compatible with some qt5 applications. In my case, megasync, the Linux client for mega.co.nz segfaults on libdxcb.so. Deepin 15.11 worked fine with megasync.

gdb output:

Starting program: /usr/bin/megasync 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffec2c2700 (LWP 64838)]
[Detaching after fork from child process 64839]
[Thread 0x7fffec2c2700 (LWP 64838) exited]
Setting QT_SCREEN_SCALE_FACTORS= "DP-4=1.5"
[New Thread 0x7fffec2c2700 (LWP 64843)]

Thread 1 "megasync" received signal SIGSEGV, Segmentation fault.
0x00007fffec787320 in deepin_platform_plugin::DXcbXSettings::setting(QByteArray const&) const () from /usr/lib/qt/plugins/platforms/libdxcb.so
(gdb) thread apply all bt

Thread 3 (Thread 0x7fffec2c2700 (LWP 64843)):
#0  0x00007ffff3526abf in poll () at /usr/lib/libc.so.6
#1  0x00007fffecdc663b in  () at /usr/lib/libxcb.so.1
#2  0x00007fffecdc837b in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fffec64ce01 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007ffff3a2edd6 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007ffff394a46f in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff35313d3 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fffecabcd00 (LWP 64830)):
#0  0x00007fffec787320 in deepin_platform_plugin::DXcbXSettings::setting(QByteArray const&) const () at /usr/lib/qt/plugins/platforms/libdxcb.so
#1  0x00007fffec793d77 in deepin_platform_plugin::DNativeSettings::metaCall(QMetaObject::Call, int, void**) () at /usr/lib/qt/plugins/platforms/libdxcb.so
#2  0x00007ffff3c16c45 in QMetaProperty::read(QObject const*) const () at /usr/lib/libQt5Core.so.5
#3  0x00007ffff3c3c276 in QObject::property(char const*) const () at /usr/lib/libQt5Core.so.5
#4  0x00007fffeb96add6 in Dtk::Gui::DNativeSettings::getSetting(QByteArray const&) const () at /usr/lib/libdtkgui.so.5
#5  0x00007fffeb97be77 in Dtk::Gui::DPlatformTheme::themeName() const () at /usr/lib/libdtkgui.so.5
#6  0x00007fffeb97630b in Dtk::Gui::DGuiApplicationHelper::fetchPalette(Dtk::Gui::DPlatformTheme const*) () at /usr/lib/libdtkgui.so.5
#7  0x00007fffeb977005 in Dtk::Gui::DGuiApplicationHelper::applicationPalette() const () at /usr/lib/libdtkgui.so.5
#8  0x00007fffeba338d1 in QDeepinTheme::palette(QPlatformTheme::Palette) const () at /usr/lib/qt/plugins/platformthemes/libqdeepin.so
#9  0x00007ffff4219f22 in  () at /usr/lib/libQt5Gui.so.5
#10 0x00007ffff4221fcb in QGuiApplicationPrivate::init() () at /usr/lib/libQt5Gui.so.5
#11 0x00007ffff4222e38 in QGuiApplication::QGuiApplication(int&, char**, int) () at /usr/lib/libQt5Gui.so.5
#12 0x0000555555924987 in  ()
#13 0x00005555556051be in  ()
#14 0x00007ffff3459023 in __libc_start_main () at /usr/lib/libc.so.6
#15 0x000055555560610e in  ()
(gdb) 

Crash On ArchLinux

Core was generated by `/usr/bin/dde-lock'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f9a9c73c353 in deepin_platform_plugin::WindowEventHook::handleXIEnterLeave(QXcbWindow*, xcb_ge_event_t*) () from /usr/lib/qt/plugins/platforms/libdxcb.so
[Current thread is 1 (Thread 0x7f9a9f132d80 (LWP 2168))]
(gdb) bt
#0  0x00007f9a9c73c353 in deepin_platform_plugin::WindowEventHook::handleXIEnterLeave(QXcbWindow*, xcb_ge_event_t*) () at /usr/lib/qt/plugins/platforms/libdxcb.so
#1  0x00007f9a9bf060c7 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib/libQt5XcbQpa.so.5
#2  0x00007f9a9bf0a4c0 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5XcbQpa.so.5
#3  0x00007f9a9bf2e8c8 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f9aa011682b in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#5  0x00007f9aa016dcc9 in  () at /usr/lib/libglib-2.0.so.0
#6  0x00007f9aa01150e2 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#7  0x00007f9aa04d8c6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#8  0x00007f9aa04866ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#9  0x00007f9aa0491219 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#10 0x000056400539a50f in  ()
#11 0x00007f9a9f63c790 in  () at /usr/lib/libc.so.6
#12 0x00007f9a9f63c84a in __libc_start_main () at /usr/lib/libc.so.6
#13 0x00005640053a55e5 in  ()
(gdb) 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.