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

crash with foreign characters input #23

Open
itt533 opened this issue Apr 28, 2023 · 0 comments
Open

crash with foreign characters input #23

itt533 opened this issue Apr 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@itt533
Copy link

itt533 commented Apr 28, 2023

Describe the bug
with foreign characters (e.g. hindi) using ibus, inputing and running a query straight away is going fine.
If the query is being deleted up to the first character smtube will crash immetiately.

To Reproduce
Steps to reproduce the behavior:

  1. On a system running ibus, Run 'smtube' through a terminal
  2. select a foreign language input map with ibus. I used 'Hindi - inscript (m17n)'
  3. Click on the 'Search' input field and start typing a few bits
  4. deleted with the 'back' key slowly to see what's happening at the deletion of the first character
  5. See error

Expected behavior
At the deletion

Screenshots
If applicable, add screenshots to help explain your problem.

Your Enviroment

  • SMTube version: 21.10.0
    Compilé avec Qt 5.15.3 (en utilisant 5.15.3)
  • OS: slackware 64-bit 15.0

crash log
GNU gdb (GDB) 11.2
Copyright (C) 2022 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-slackware-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://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 /usr/bin/smtube...
(No debugging symbols found in /usr/bin/smtube)
�[?2004h(gdb) start
�[?2004l
Function "main" not defined.
�[?2004hMake breakpoint pending on future shared library load? (y or [n])
�[?2004l
Starting program: /usr/bin/smtube
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffece82640 (LWP 4964)]
[New Thread 0x7fffe77fa640 (LWP 4965)]
[New Thread 0x7fffe6f62640 (LWP 4967)]
[New Thread 0x7fffe673d640 (LWP 4968)]

(smtube:4960): Gtk-WARNING **: 09:55:49.551: Theme parsing error: gtk.css:7:15: Not using units is deprecated. Assuming 'px'.
Translations path: "/usr/share/smtube/translations"
[New Thread 0x7fffe5399640 (LWP 4969)]
[New Thread 0x7fffe4b98640 (LWP 4970)]
[New Thread 0x7fffcffff640 (LWP 4971)]
[New Thread 0x7fffcf7fe640 (LWP 4972)]
[New Thread 0x7fffceffd640 (LWP 4973)]
BrowserWindow::loadConfig
DesktopInfo::isInsideScreen: center point of window: QPoint(441,357)
DesktopInfo::isInsideScreen: virtual geometry: QRect(116,0 1484x900)
BrowserWindow::loadConfig: cache enabled. Location: "/home/orion/.cache/smtube"
[New Thread 0x7fffccbff640 (LWP 4974)]
Players::load
Players::availablePlayers: 0 : "/usr/bin/smplayer"
Players::availablePlayers: 1 : "/usr/bin/smplayer"
Players::availablePlayers: 2 : "/usr/bin/smplayer"
Players::availablePlayers: 3 : "/usr/bin/mplayer"
Players::availablePlayers: 4 : "/usr/bin/vlc"
Players::availablePlayers: 5 : "/usr/bin/dragon"
Sites::load
MyCookieJar::load
MyCookieJar::load: 4 cookies loaded
[New Thread 0x7fff7fffd640 (LWP 4975)]
[New Thread 0x7fff7f7fc640 (LWP 4976)]
[New Thread 0x7fff7effb640 (LWP 4977)]
[New Thread 0x7fff6de88640 (LWP 4978)]
[New Thread 0x7fff6d687640 (LWP 4979)]
[New Thread 0x7fff6ce86640 (LWP 4980)]
[New Thread 0x7fff5ffff640 (LWP 4981)]
[New Thread 0x7fff5f3ff640 (LWP 4997)]
[New Thread 0x7fff5e7ff640 (LWP 4998)]
BrowserWindow::adjustLocation: "http://www.tonvid.com/"
[New Thread 0x7fff4ffff640 (LWP 5002)]
[New Thread 0x7fff4f7fe640 (LWP 5003)]
[New Thread 0x7fff4effd640 (LWP 5004)]
MyWebView::mousePressEvent: link: ""
MyWebView::mousePressEvent: target: ""
ASSERTION FAILED: anchorType() == PositionIsOffsetInAnchor
/tmp/qtwebkit-5.212.0-alpha4/Source/WebCore/dom/Position.h(109) : int WebCore::Position::offsetInContainerNode() const
1 0x7ffff414bb87 /usr/lib64/libQt5WebKit.so.5(WTFCrash+0x17) [0x7ffff414bb87]
2 0x7ffff36fc528 /usr/lib64/libQt5WebKit.so.5(+0x604528) [0x7ffff36fc528]
3 0x7ffff37042d1 /usr/lib64/libQt5WebKit.so.5(_ZNK15QWebPageAdapter16inputMethodQueryEN2Qt16InputMethodQueryE+0x161) [0x7ffff37042d1]
4 0x7ffff7fa1a3e /usr/lib64/libQt5WebKitWidgets.so.5(_ZNK8QWebPage16inputMethodQueryEN2Qt16InputMethodQueryE+0xe) [0x7ffff7fa1a3e]
5 0x7ffff7fa9a17 /usr/lib64/libQt5WebKitWidgets.so.5(_ZNK8QWebView16inputMethodQueryEN2Qt16InputMethodQueryE+0x17) [0x7ffff7fa9a17]
6 0x7ffff7a97765 /usr/lib64/libQt5Widgets.so.5(_ZN7QWidget5eventEP6QEvent+0x355) [0x7ffff7a97765]
7 0x7ffff7a58a8f /usr/lib64/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x7f) [0x7ffff7a58a8f]
8 0x7ffff259a18a /usr/lib64/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x11a) [0x7ffff259a18a]
9 0x7fffe78096c6 /usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so(+0xe6c6) [0x7fffe78096c6]
10 0x7ffff2b3868a /usr/lib64/libQt5Gui.so.5(_ZN12QInputMethod6updateE6QFlagsIN2Qt16InputMethodQueryEE+0x2a) [0x7ffff2b3868a]
11 0x7ffff25ce47d /usr/lib64/libQt5Core.so.5(+0x2e747d) [0x7ffff25ce47d]
12 0x7ffff45424fa /usr/lib64/libQt5WebKit.so.5(+0x144a4fa) [0x7ffff45424fa]
13 0x7ffff45c31c7 /usr/lib64/libQt5WebKit.so.5(+0x14cb1c7) [0x7ffff45c31c7]
14 0x7ffff45be288 /usr/lib64/libQt5WebKit.so.5(_ZN7WebCore14FrameSelection12setSelectionERKNS_16VisibleSelectionEjNS_23AXTextStateChangeIntentENS0_19CursorAlignOnScrollENS_15TextGranularityE+0x28) [0x7ffff45be288]
15 0x7ffff45bfa21 /usr/lib64/libQt5WebKit.so.5(+0x14c7a21) [0x7ffff45bfa21]
16 0x7ffff45c75ec /usr/lib64/libQt5WebKit.so.5(+0x14cf5ec) [0x7ffff45c75ec]
17 0x7ffff45d9bd5 /usr/lib64/libQt5WebKit.so.5(+0x14e1bd5) [0x7ffff45d9bd5]
18 0x7ffff45dd04f /usr/lib64/libQt5WebKit.so.5(+0x14e504f) [0x7ffff45dd04f]
19 0x7ffff45dda96 /usr/lib64/libQt5WebKit.so.5(+0x14e5a96) [0x7ffff45dda96]
20 0x7ffff45de9de /usr/lib64/libQt5WebKit.so.5(_ZN7WebCore6Editor19deleteWithDirectionENS_18SelectionDirectionENS_15TextGranularityEbb+0xce) [0x7ffff45de9de]
21 0x7ffff45dec6f /usr/lib64/libQt5WebKit.so.5(+0x14e6c6f) [0x7ffff45dec6f]
22 0x7ffff36d3c55 /usr/lib64/libQt5WebKit.so.5(+0x5dbc55) [0x7ffff36d3c55]
23 0x7ffff4b4dcdb /usr/lib64/libQt5WebKit.so.5(+0x1a55cdb) [0x7ffff4b4dcdb]
24 0x7ffff44fee2b /usr/lib64/libQt5WebKit.so.5(+0x1406e2b) [0x7ffff44fee2b]
25 0x7ffff467042f /usr/lib64/libQt5WebKit.so.5(+0x157842f) [0x7ffff467042f]
26 0x7ffff4b46d4b /usr/lib64/libQt5WebKit.so.5(_ZN7WebCore12EventHandler8keyEventERKNS_21PlatformKeyboardEventE+0x32b) [0x7ffff4b46d4b]
27 0x7ffff36ff961 /usr/lib64/libQt5WebKit.so.5(_ZN15QWebPageAdapter14handleKeyEventEP9QKeyEvent+0x41) [0x7ffff36ff961]
28 0x7ffff7fa1381 /usr/lib64/libQt5WebKitWidgets.so.5(+0x2c381) [0x7ffff7fa1381]
29 0x7ffff7fa79a2 /usr/lib64/libQt5WebKitWidgets.so.5(_ZN8QWebPage5eventEP6QEvent+0x212) [0x7ffff7fa79a2]
30 0x7ffff7faad50 /usr/lib64/libQt5WebKitWidgets.so.5(_ZN8QWebView13keyPressEventEP9QKeyEvent+0x20) [0x7ffff7faad50]
31 0x7ffff7a9845b /usr/lib64/libQt5Widgets.so.5(_ZN7QWidget5eventEP6QEvent+0x104b) [0x7ffff7a9845b]

Thread 1 "smtube" received signal SIGSEGV, Segmentation fault.
0x00007ffff414bb8c in WTFCrash () from /usr/lib64/libQt5WebKit.so.5
�[?2004h�[?2004l
�[?2004h(gdb) quit
�[?2004l
�[?2004hA debugging session is active.

Inferior 1 [process 4960] will be killed.

Quit anyway? (y or n) y
�[?2004l

@itt533 itt533 added the bug Something isn't working label Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants