[konsole] [Bug 475687] konsole crashes when changing input methods in ibus-typing-booster

2023-10-19 Thread Mike FABIAN
https://bugs.kde.org/show_bug.cgi?id=475687

--- Comment #4 from Mike FABIAN  ---
https://codereview.qt-project.org/c/qt/qtbase/+/464846/3/src/gui/platform/unix/qxkbcommon.cpp

-- 
You are receiving this mail because:
You are watching all bug changes.

[konsole] [Bug 475687] konsole crashes when changing input methods in ibus-typing-booster

2023-10-19 Thread Mike FABIAN
https://bugs.kde.org/show_bug.cgi?id=475687

--- Comment #3 from Mike FABIAN  ---
It is a Qt bug actually, this commit fixed it:

$ git show e68a0da0b90
commit e68a0da0b907af7980481a3cf30f6b4b97c06b6e
Author: Alexander Volkov 
Date:   Mon Mar 6 18:10:34 2023 +0300

Avoid crash when keysymToQtKey(keysym, Qt::ControlModifier) is called

For example when Ctrl+Home is sent by virtual keyboard on Wayland.

Pick-to: 6.6 6.5 6.2 5.15
Change-Id: I41f1d2a28c9091efa621d5826a3b9e3e0e481ceb
Reviewed-by: Liang Qi 

diff --git a/src/gui/platform/unix/qxkbcommon.cpp
b/src/gui/platform/unix/qxkbcommon.cpp
index d254aeecdc..162ba90efe 100644
--- a/src/gui/platform/unix/qxkbcommon.cpp
+++ b/src/gui/platform/unix/qxkbcommon.cpp
@@ -731,6 +731,8 @@ xkb_keysym_t QXkbCommon::lookupLatinKeysym(xkb_state
*state, xkb_keycode_t keyco
 {
 xkb_layout_index_t layout;
 xkb_keysym_t sym = XKB_KEY_NoSymbol;
+if (!state)
+return sym;
 xkb_keymap *keymap = xkb_state_get_keymap(state);
 const xkb_layout_index_t layoutCount =
xkb_keymap_num_layouts_for_key(keymap, keycode);
 // Look at user layouts in the order in which they are defined in system

-- 
You are receiving this mail because:
You are watching all bug changes.

[konsole] [Bug 475687] New: konsole crashes when changing input methods in ibus-typing-booster

2023-10-16 Thread Mike FABIAN
https://bugs.kde.org/show_bug.cgi?id=475687

Bug ID: 475687
   Summary: konsole crashes when changing input methods in
ibus-typing-booster
Classification: Applications
   Product: konsole
   Version: 23.08.1
  Platform: Fedora RPMs
OS: Linux
Status: REPORTED
  Keywords: drkonqi
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: konsole-de...@kde.org
  Reporter: mfab...@redhat.com
  Target Milestone: ---

Application: konsole (23.08.1)

Qt Version: 5.15.10
Frameworks Version: 5.110.0
Operating System: Linux 6.5.5-300.fc39.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 39 (Workstation Edition)
DrKonqi: 5.27.8 [KCrashBackend]

-- Information about the crash:
Use ibus-typing-booster in konsole and switch to the next input methods in
ibus-typing-booster with Control+Down

The crash can be reproduced every time.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault

[KCrash Handler]
#4  0x7f3876ad8e64 in xkb_state_get_keymap () at /lib64/libxkbcommon.so.0
#5  0x7f3875363363 in QXkbCommon::lookupLatinKeysym(xkb_state*, unsigned
int) () at
/usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
#6  0x7f3875363f69 in QXkbCommon::keysymToQtKey(unsigned int,
QFlags) () at
/usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
#7  0x7f38753588b1 in QIBusPlatformInputContext::forwardKeyEvent(unsigned
int, unsigned int, unsigned int) () at
/usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
#8  0x7f387b8e8678 in void doActivate(QObject*, int, void**) () at
/lib64/libQt5Core.so.5
#9  0x7f387535ef00 in QIBusInputContextProxy::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) () at
/usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
#10 0x7f387535f38a in
QIBusInputContextProxy::qt_metacall(QMetaObject::Call, int, void**) () at
/usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
#11 0x7f387a60338b in QDBusConnectionPrivate::deliverCall(QObject*, int,
QDBusMessage const&, QVector const&, int) () at /lib64/libQt5DBus.so.5
#12 0x7f387b8ded9b in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#13 0x7f387c5aeb75 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib64/libQt5Widgets.so.5
#14 0x7f387b8b4218 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /lib64/libQt5Core.so.5
#15 0x7f387b8b76c5 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () at /lib64/libQt5Core.so.5
#16 0x7f387b906c6f in postEventSourceDispatch(_GSource*, int (*)(void*),
void*) () at /lib64/libQt5Core.so.5
#17 0x7f3879a56e1c in g_main_context_dispatch_unlocked.lto_priv () at
/lib64/libglib-2.0.so.0
#18 0x7f3879ab1d78 in g_main_context_iterate_unlocked.isra () at
/lib64/libglib-2.0.so.0
#19 0x7f3879a54a93 in g_main_context_iteration () at
/lib64/libglib-2.0.so.0
#20 0x7f387b906759 in
QEventDispatcherGlib::processEvents(QFlags) ()
at /lib64/libQt5Core.so.5
#21 0x7f387b8b2bdb in
QEventLoop::exec(QFlags) () at
/lib64/libQt5Core.so.5
#22 0x7f387b8bae6b in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#23 0x56281c3339e4 in main ()
[Inferior 1 (process 63952) detached]

Reported using DrKonqi

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 403580] Formats only offers invalid locales for German (en_DE)

2019-02-13 Thread Mike FABIAN
https://bugs.kde.org/show_bug.cgi?id=403580

--- Comment #4 from Mike FABIAN  ---
(In reply to Andreas Schneider from comment #2)
> The issue probably is that KDE sets LANG or LC_* variables to locales which
> don't exist. So all terminal tools like 'ls', 'git' etc. are printing
> warnings that I use locales which don't exist.

KDE/Qt5 apparently uses the locale support in libicu. The list of locales
libicu supports is different from the locales glibc supports, there is
considerable overlap between the list of locales supported by libicu and glibc,
but the lists are not equal.

If the user chooses a locale in KDE which does not exist in glibc, it makes not
sense setting the LANG or LC_* variables to such a locale.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 403580] Formats only offers invalid locales for German (en_DE)

2019-02-13 Thread Mike FABIAN
https://bugs.kde.org/show_bug.cgi?id=403580

Mike FABIAN  changed:

   What|Removed |Added

 CC||mfab...@redhat.com

--- Comment #3 from Mike FABIAN  ---
(In reply to Andreas Schneider from comment #1)
> It looks like that Qt uses cldr, however glibc doesn't support all locales
> of cldr. Also it is strange that it doesn't offer de_DE which is the only
> supported locale by glibc.

Yes, de_DE is also a valid locale for CLDR/libicu.  The list KDE
offers is very incomplete.

-- 
You are receiving this mail because:
You are watching all bug changes.