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

Right Clicking A Text Document In Deepin Editor Causes The Program To Close #678

Closed
ghost opened this issue Nov 19, 2018 · 9 comments
Closed
Assignees

Comments

@ghost
Copy link

ghost commented Nov 19, 2018

I just installed deepin-editor-1.1-1 package available from the Arch repos. I find that right clicking a text document after opening it using the Deepin Editor causes the Editor to close. Due to this bug, I am not able to copy-paste from text documents.

@BLumia
Copy link
Member

BLumia commented Nov 20, 2018

Try launch deepin-editor from terminal and reproduce the bug you've found, and paste the output from terminal you got?

@ghost
Copy link
Author

ghost commented Nov 20, 2018

Try launch deepin-editor from terminal and reproduce the bug you've found, and paste the output from terminal you got?

[praveen@Archlinux ~]$ deepin-editor "dtkwidget2" can not find qm files "deepin-editor" can not find qm files 2018-11-20, 08:57:59.142 [Debug ] [qsettingbackend.cpp Dtk::Core::QSettingBackend::QSettingBackend 54] create config "/home/praveen/.config/deepin/deepin-editor/config.conf" 2018-11-20, 08:57:59.182 [Debug ] [ 0] Create blank file: "/home/praveen/.local/share/deepin/deepin-editor/blank-files/blank_file_2018-11-20_08-57-59-182" No appenders assotiated with category org.kde.ksyntaxhighlighting [Error ] <> Repository got deleted while a highlighter is still active! Segmentation fault (core dumped)

@BLumia
Copy link
Member

BLumia commented Nov 20, 2018

After it crash, try coredumpctl gdb and enter bt after it loads, paste the stacktrace you got. thx.

@ghost
Copy link
Author

ghost commented Nov 20, 2018

[praveen@Archlinux Desktop]$ coredumpctl gdb
PID: 1023 (deepin-editor)
UID: 1000 (praveen)
GID: 985 (users)
Signal: 11 (SEGV)
Timestamp: Tue 2018-11-20 11:06:10 IST (6s ago)
Command Line: deepin-editor
Executable: /usr/bin/deepin-editor
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice
Session: 1
Owner UID: 1000 (praveen)
Boot ID: 85465d494d2b4d19b99594f7112ed98d
Machine ID: a82b354ab51c497196acc583c37d9be3
Hostname: Archlinux
Storage: /var/lib/systemd/coredump/core.deepin-editor.1000.85465d494d2b4d19b99594f7112ed98d.1023.1542692170000000.lz4
Message: Process 1023 (deepin-editor) of user 1000 dumped core.

            Stack trace of thread 1023:
            #0  0x00007f2ed66954ba _ZN7QWidget12insertActionEP7QActionS1_ (libQt5Widgets.so.5)
            #1  0x00007f2ed67d34c3 _ZN5QMenu9addActionERK7QString (libQt5Widgets.so.5)
            #2  0x000056252399d11c n/a (deepin-editor)
            #3  0x00007f2ed669e658 _ZN7QWidget5eventEP6QEvent (libQt5Widgets.so.5)
            #4  0x00007f2ed6744cef _ZN6QFrame5eventEP6QEvent (libQt5Widgets.so.5)
            #5  0x00007f2ed5ce694b _ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent (libQt5Core.so.5)
            #6  0x00007f2ed665ee04 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
            #7  0x00007f2ed6666b90 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
            #8  0x00007f2ed6ee3b19 _ZN3Dtk6Widget12DApplication6notifyEP7QObjectP6QEvent (libdtkwidget.so.2)
            #9  0x00007f2ed5ce6c39 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
            #10 0x00007f2ed66ba194 n/a (libQt5Widgets.so.5)
            #11 0x00007f2ed66bc5d5 n/a (libQt5Widgets.so.5)
            #12 0x00007f2ed665ee14 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
            #13 0x00007f2ed66666e1 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
            #14 0x00007f2ed6ee3b19 _ZN3Dtk6Widget12DApplication6notifyEP7QObjectP6QEvent (libdtkwidget.so.2)
            #15 0x00007f2ed5ce6c39 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
            #16 0x00007f2ed608f0dc _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE (libQt5Gui.so.5)
            #17 0x00007f2ed6091066 _ZN22QGuiApplicationPrivate24processWindowSystemEventEPN29QWindowSystemInterfacePrivate17WindowSystemEventE (libQt5Gui.so.5)
            #18 0x00007f2ed606aa3c _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Gui.so.5)
            #19 0x00007f2ecf018dad n/a (libQt5XcbQpa.so.5)
            #20 0x00007f2ed5ce58cc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
            #21 0x00007f2ed5cedbc6 _ZN16QCoreApplication4execEv (libQt5Core.so.5)
            #22 0x00005625239942bd main (deepin-editor)
            #23 0x00007f2ed55a5223 __libc_start_main (libc.so.6)
            #24 0x00005625239946fe n/a (deepin-editor)
            
            Stack trace of thread 1031:
            #0  0x00007f2ed5671c21 __poll (libc.so.6)
            #1  0x00007f2ed45eeee0 n/a (libglib-2.0.so.0)
            #2  0x00007f2ed45eefce g_main_context_iteration (libglib-2.0.so.0)
            #3  0x00007f2ed45ef022 n/a (libglib-2.0.so.0)
            #4  0x00007f2ed45b83eb n/a (libglib-2.0.so.0)
            #5  0x00007f2ed4260a9d start_thread (libpthread.so.0)
            #6  0x00007f2ed567cb23 __clone (libc.so.6)
            
            Stack trace of thread 1034:
            #0  0x00007f2ed5671c21 __poll (libc.so.6)
            #1  0x00007f2ed45eeee0 n/a (libglib-2.0.so.0)
            #2  0x00007f2ed45eefce g_main_context_iteration (libglib-2.0.so.0)
            #3  0x00007f2ed5d39fc9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
            #4  0x00007f2ed5ce58cc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
            #5  0x00007f2ed5b2eeb9 _ZN7QThread4execEv (libQt5Core.so.5)
            #6  0x00007f2ed6c77ba6 n/a (libQt5DBus.so.5)
            #7  0x00007f2ed5b38f65 n/a (libQt5Core.so.5)
            #8  0x00007f2ed4260a9d start_thread (libpthread.so.0)
            #9  0x00007f2ed567cb23 __clone (libc.so.6)
            
            Stack trace of thread 1030:
            #0  0x00007f2ed5671c21 __poll (libc.so.6)
            #1  0x00007f2ed46bf630 n/a (libxcb.so.1)
            #2  0x00007f2ed46c12db xcb_wait_for_event (libxcb.so.1)
            #3  0x00007f2ecef82c5a n/a (libQt5XcbQpa.so.5)
            #4  0x00007f2ed5b38f65 n/a (libQt5Core.so.5)
            #5  0x00007f2ed4260a9d start_thread (libpthread.so.0)
            #6  0x00007f2ed567cb23 __clone (libc.so.6)
            
            Stack trace of thread 1038:
            #0  0x00007f2ed5671c21 __poll (libc.so.6)
            #1  0x00007f2ed45eeee0 n/a (libglib-2.0.so.0)
            #2  0x00007f2ed45eefce g_main_context_iteration (libglib-2.0.so.0)
            #3  0x00007f2ed5d39fc9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
            #4  0x00007f2ed5ce58cc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
            #5  0x00007f2ed5b2eeb9 _ZN7QThread4execEv (libQt5Core.so.5)
            #6  0x00007f2ed5b38f65 n/a (libQt5Core.so.5)
            #7  0x00007f2ed4260a9d start_thread (libpthread.so.0)
            #8  0x00007f2ed567cb23 __clone (libc.so.6)
            
            Stack trace of thread 1033:
            #0  0x00007f2ed5671c21 __poll (libc.so.6)
            #1  0x00007f2ed45eeee0 n/a (libglib-2.0.so.0)
            #2  0x00007f2ed45eff62 g_main_loop_run (libglib-2.0.so.0)
            #3  0x00007f2ed3725c28 n/a (libgio-2.0.so.0)
            #4  0x00007f2ed45b83eb n/a (libglib-2.0.so.0)
            #5  0x00007f2ed4260a9d start_thread (libpthread.so.0)
            #6  0x00007f2ed567cb23 __clone (libc.so.6)
            
            Stack trace of thread 1032:
            #0  0x00007f2ed5671c21 __poll (libc.so.6)
            #1  0x00007f2ed45eeee0 n/a (libglib-2.0.so.0)
            #2  0x00007f2ed45eefce g_main_context_iteration (libglib-2.0.so.0)
            #3  0x00007f2ecd340bde n/a (libdconfsettings.so)
            #4  0x00007f2ed45b83eb n/a (libglib-2.0.so.0)
            #5  0x00007f2ed4260a9d start_thread (libpthread.so.0)
            #6  0x00007f2ed567cb23 __clone (libc.so.6)
            
            Stack trace of thread 1039:
            #0  0x00007f2ed4266afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
            #1  0x00007f2ebdaeb1ac n/a (i965_dri.so)
            #2  0x00007f2ebdaeaee8 n/a (i965_dri.so)
            #3  0x00007f2ed4260a9d start_thread (libpthread.so.0)
            #4  0x00007f2ed567cb23 __clone (libc.so.6)

GNU gdb (GDB) 8.2
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-pc-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 for more, q to quit, c to continue without paging--bt
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/deepin-editor...(no debugging symbols found)...done.
[New LWP 1023]
[New LWP 1031]
[New LWP 1034]
[New LWP 1030]
[New LWP 1038]
[New LWP 1033]
[New LWP 1032]
[New LWP 1039]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `deepin-editor'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f2ed66954ba in QWidget::insertAction(QAction*, QAction*) () from /usr/lib/libQt5Widgets.so.5
[Current thread is 1 (Thread 0x7f2ecf428b40 (LWP 1023))]
(gdb) bt
#0 0x00007f2ed66954ba in QWidget::insertAction(QAction*, QAction*) () at /usr/lib/libQt5Widgets.so.5
#1 0x00007f2ed67d34c3 in QMenu::addAction(QString const&) () at /usr/lib/libQt5Widgets.so.5
#2 0x000056252399d11c in ()
#3 0x00007f2ed669e658 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#4 0x00007f2ed6744cef in QFrame::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#5 0x00007f2ed5ce694b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#6 0x00007f2ed665ee04 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#7 0x00007f2ed6666b90 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#8 0x00007f2ed6ee3b19 in Dtk::Widget::DApplication::notify(QObject*, QEvent*) () at /usr/lib/libdtkwidget.so.2
#9 0x00007f2ed5ce6c39 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#10 0x00007f2ed66ba194 in () at /usr/lib/libQt5Widgets.so.5
#11 0x00007f2ed66bc5d5 in () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f2ed665ee14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f2ed66666e1 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007f2ed6ee3b19 in Dtk::Widget::DApplication::notify(QObject*, QEvent*) () at /usr/lib/libdtkwidget.so.2
#15 0x00007f2ed5ce6c39 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#16 0x00007f2ed608f0dc in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#17 0x00007f2ed6091066 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
at /usr/lib/libQt5Gui.so.5
#18 0x00007f2ed606aa3c in QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) () at /usr/lib/libQt5Gui.so.5
#19 0x00007f2ecf018dad in () at /usr/lib/libQt5XcbQpa.so.5
#20 0x00007f2ed5ce58cc in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () at /usr/lib/libQt5Core.so.5
#21 0x00007f2ed5cedbc6 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#22 0x00005625239942bd in main ()

@reionwong
Copy link

this has been fixed, please update to the latest version.

@ghost
Copy link
Author

ghost commented Nov 20, 2018

this has been fixed, please update to the latest version.

Latest version already installed..

[praveen@Archlinux Desktop]$ pacman -Qi deepin-editor
Name : deepin-editor
Version : 1.1-1
Description : Simple editor for Deepin
Architecture : x86_64
URL : https://github.com/linuxdeepin/deepin-editor
Licenses : GPL3
Groups : deepin-extra
Provides : None
Depends On : deepin-qt5integration dtkwm syntax-highlighting kcodecs
polkit-qt5
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 1821.00 KiB
Packager : Felix Yan [email protected]
Build Date : Sun 14 Oct 2018 05:24:41 PM IST
Install Date : Mon 19 Nov 2018 08:13:59 PM IST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

@reionwong
Copy link

@felixonmars

@Phraqzy
Copy link

Phraqzy commented Dec 16, 2018

Can reproduce, right click causes the program to crash with the same error.

@ghost ghost closed this as completed May 9, 2019
@ghost
Copy link
Author

ghost commented May 9, 2019

Closing the thread because the issue is not present on a fresh Arch Linux installation with Deepin DE. Keep up the good work guys.

This issue was closed.
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

No branches or pull requests

4 participants