[konsole] [Bug 474961] [PATCH] Crash while selecting scrolling text

2023-09-29 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=474961

Charles Samuels  changed:

   What|Removed |Added

Summary|Crash while selecting   |[PATCH] Crash while
   |scrolling text  |selecting scrolling text

--- Comment #1 from Charles Samuels  ---
Backtrace with debug information:

```
#7  0x061ea0d8 in __cxa_throw () from
/lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x061e126d in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x049784b3 in std::vector,
std::allocator > >::_M_range_check (this=0xd830870,
__n=37) at /usr/include/c++/12/bits/stl_vector.h:1153
#10 0x04975109 in std::vector,
std::allocator > >::at (
this=0xd830870, __n=37) at /usr/include/c++/12/bits/stl_vector.h:1175
#11 0x0496f6d6 in Konsole::Screen::setSelectionEnd (this=0xd830860,
x=50, y=10036, trimTrailingWhitespace=false)
at /home/charles/tmp/konsole-22.12.3/src/Screen.cpp:1815
#12 0x049816b6 in Konsole::ScreenWindow::setSelectionEnd
(this=0x1d198b00, column=50, line=35, 
trimTrailingWhitespace=false) at
/home/charles/tmp/konsole-22.12.3/src/ScreenWindow.cpp:145
#13 0x04a0f77b in Konsole::TerminalDisplay::extendSelection
(this=0x1cf8f5c0, position=...)
at
/home/charles/tmp/konsole-22.12.3/src/terminalDisplay/TerminalDisplay.cpp:1469
#14 0x04a0e91e in Konsole::TerminalDisplay::mouseMoveEvent
(this=0x1cf8f5c0, ev=0x1ffefff180)
at
/home/charles/tmp/konsole-22.12.3/src/terminalDisplay/TerminalDisplay.cpp:1306
#15 0x04f45db8 in QWidget::event(QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x04a16641 in Konsole::TerminalDisplay::event (this=0x1cf8f5c0,
event=0x1ffefff180)
at
/home/charles/tmp/konsole-22.12.3/src/terminalDisplay/TerminalDisplay.cpp:2877
#17 0x04f03fae in QApplicationPrivate::notify_helper(QObject*, QEvent*)
()
   from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x04f0c552 in QApplication::notify(QObject*, QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x05e9f6f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
()
   from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x04f0a65e in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) ()
from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x04f5ebd8 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x04f61f60 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
```

Fix:
```
--- Screen.cpp.old  2023-09-29 09:26:08.557129473 -0700
+++ Screen.cpp  2023-09-29 09:26:12.257118245 -0700
@@ -1809,7 +1809,7 @@
 }

 // HACK: do not crash.
-if (_screenLines.size() < line) {
+if (_screenLines.size() <= line) {
 line = _screenLines.size() - 1;
 }
 const int length = _screenLines.at(line).count();
```

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

[konsole] [Bug 474961] New: Crash while selecting scrolling text

2023-09-27 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=474961

Bug ID: 474961
   Summary: Crash while selecting scrolling text
Classification: Applications
   Product: konsole
   Version: 22.12.3
  Platform: Debian stable
OS: Linux
Status: REPORTED
  Keywords: drkonqi
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: konsole-de...@kde.org
  Reporter: char...@derkarl.org
  Target Milestone: ---

Application: konsole (22.12.3)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.0-11-amd64 x86_64
Windowing System: X11
Distribution: Debian GNU/Linux 12 (bookworm)
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
Note: this is not https://bugs.kde.org/show_bug.cgi?id=458822, because I'm
using a version newer than v22.08.3

I can reproduce this by:

1. Run a program that generates a lot of text in Konsole:

 while true; do echo $RANDOM; sleep 0.005; done

2. Have the machine be under a lot of CPU load

3. Consider nicing +20 the konsole process

4. Start selecting text as it scrolls by, move the mouse around like a psycho.

You may need to tweak the number "0.005"

The crash can be reproduced every time.

-- Backtrace:
Application: Konsole (konsole), signal: Aborted

[KCrash Handler]
#4  __pthread_kill_implementation (threadid=,
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#5  0x7f7da74a9d9f in __pthread_kill_internal (signo=6, threadid=) at ./nptl/pthread_kill.c:78
#6  0x7f7da745af32 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#7  0x7f7da7445472 in __GI_abort () at ./stdlib/abort.c:79
#8  0x7f7da729d919 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x7f7da72a8e1a in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x7f7da72a8e85 in std::terminate() () from
/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x7f7da72a90d8 in __cxa_throw () from
/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x7f7da72a026d in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#13 0x7f7da8e9c040 in Konsole::Screen::setSelectionEnd(int, int, bool) ()
from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#14 0x7f7da8e9df4f in ?? () from
/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#15 0x7f7da8effe0c in Konsole::TerminalDisplay::extendSelection(QPoint
const&) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#16 0x7f7da8f001ca in
Konsole::TerminalDisplay::mouseMoveEvent(QMouseEvent*) () from
/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#17 0x7f7da85a4db8 in QWidget::event(QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x7f7da8562fae in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x7f7da856b552 in QApplication::notify(QObject*, QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x7f7da78b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x7f7da856965e in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) ()
from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x7f7da85bdbd8 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x7f7da85c0f60 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x7f7da8562fae in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x7f7da78b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x7f7da7d3d3ed in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
() from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#27 0x7f7da7d11cac in
QWindowSystemInterface::sendWindowSystemEvents(QFlags)
() from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#28 0x7f7da14fbeca in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#29 0x7f7da5c607a9 in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x7f7da5c60a38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x7f7da5c60acc in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x7f7da7909836 in
QEventDispatcherGlib::processEvents(QFlags) ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x7f7da78b017b in
QEventLoop::exec(QFlags) () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x7f7da78b82d6 in QCoreApplication::exec() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x55e281354e4c in ?? ()
#36 0x7f7da74461ca in __libc_start_call_main
(main=main@entry=0x55e281354690, argc=argc@entry=1,
argv=argv@entry=0x7ffed4a9f6d8) at ../sysdeps/nptl/libc_start_call_main.h:58
#37 0x7f7da7446285 in __libc_start_main_impl (main=0x55e281354690, argc=1,
argv=0x7ffed4a9f6d8, init=, fini=,
rtld_fini=, stack_end=0x7ffed4a9f6c8) at ../csu/libc-start.c:360
#38 0

[kmail2] [Bug 431921] Black square appears sometimes in KMail

2021-03-26 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=431921

--- Comment #4 from Charles Samuels  ---
The same problem appears to exist in qBittorrent
<https://github.com/qbittorrent/qBittorrent/issues/13368>

In both cases, it seems to be over a QSplitter.

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

[kmail2] [Bug 431921] Black square appears sometimes in KMail

2021-03-26 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=431921

Charles Samuels  changed:

   What|Removed |Added

 CC||char...@derkarl.org

--- Comment #3 from Charles Samuels  ---
I get it too on Debian Bullseye. I'd include a screenshot, but it's pretty much
the same.

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

[elisa] [Bug 434560] New: Tray icon is useless (patch)

2021-03-17 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=434560

Bug ID: 434560
   Summary: Tray icon is useless (patch)
   Product: elisa
   Version: unspecified
  Platform: Compiled Sources
OS: Linux
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: matthieu_gall...@yahoo.fr
  Reporter: char...@derkarl.org
  Target Milestone: ---

Created attachment 136799
  --> https://bugs.kde.org/attachment.cgi?id=136799&action=edit
Change tray behavior

I have multiple virtual desktops and sometimes Elisa lives on another virtual
desktop and I have to play "hunt the window". Also, having the tray icon only
visible when the main window is just unnecessary. It doesn't help in any way.

I think as-is, the tray icon is basically useless if you use virtual desktops.

So please apply this patch that

1. Makes the tray icon always visible
2. Clicking on the tray icon always brings the window to the front (rather than
just doing nothing if it's on another virtual desktop)

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

[plasmashell] [Bug 391991] Keyboard Layout switching stops working when ibus is installed

2019-02-16 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=391991

Charles Samuels  changed:

   What|Removed |Added

 CC||char...@derkarl.org

--- Comment #2 from Charles Samuels  ---
Also seen in Debian:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922334

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

[plasmashell] [Bug 379649] Application Launcher search box does not accept keyboard input

2019-02-16 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=379649

Charles Samuels  changed:

   What|Removed |Added

 CC||char...@derkarl.org

--- Comment #9 from Charles Samuels  ---
I reported the same bug here (workaround included): 

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922334

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

[kmail2] [Bug 382252] "On you wrote:" has wrong timezone

2017-09-15 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=382252

Charles Samuels  changed:

   What|Removed |Added

   Platform|Other   |Debian stable

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

[kmail2] [Bug 382252] New: "On you wrote:" has wrong timezone

2017-07-11 Thread Charles Samuels
https://bugs.kde.org/show_bug.cgi?id=382252

Bug ID: 382252
   Summary: "On  you wrote:" has wrong timezone
   Product: kmail2
   Version: 5.2.3
  Platform: Other
OS: Linux
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: composer
  Assignee: kdepim-b...@kde.org
  Reporter: char...@derkarl.org
  Target Milestone: ---

My machine is set to a certain timezone (EEST right now). I got an email sent
from someone in a different timezone (PDT). In my inbox, the original email
shows the correct time (i.e., the time as seen from my own timezone).

When I click "Reply", the composer appears and adds the text "On 
 you wrote:". This text has the correct date as seen from the
original author's side (i.e., it shows the date in PDT), but the timezone shows
my timezone.

* Alice writes me an email, the time is 11:00 AM PDT or 09:00 PM.
* My inbox shows Alice's email (correctly) as 09:00 EEST.
* I click "Reply"
* The composer now shows "On 11 July 2017 11:00 AM EEST". It should be either
"11:00 AM PDT" or "09:00 PM EEST"

`date` shows my computer as set to EEST correctly
The inbox is correct
The message headers are correct

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