[krfb] [Bug 472453] New: krfb-virtualmonitor asserts when a client connects

2023-07-20 Thread Santiago Cézar
https://bugs.kde.org/show_bug.cgi?id=472453

Bug ID: 472453
   Summary: krfb-virtualmonitor asserts when a client connects
Classification: Applications
   Product: krfb
   Version: 23.04.3
  Platform: Archlinux
OS: Linux
Status: REPORTED
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: grundleb...@googlemail.com
  Reporter: santiagocezar2...@gmail.com
  Target Milestone: ---

SUMMARY
krfb-virtualmonitor crashes right after a client connects, no image is send to
the client.


STEPS TO REPRODUCE
1. run `bin/krfb-virtualmonitor --name "banana" --resolution 1200x400
--password  --port 5900`
2. connect from another device (using bVNC on Android in this case)
3. boom

OBSERVED RESULT
the program crashes when a new client connects

EXPECTED RESULT
the program should make a virtual monitor and display it on the client

SOFTWARE/OS VERSIONS
Linux: 6.4.3-arch1-2
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

Graphics: Mesa Intel® UHD Graphics 620
Commit: ce562e82bb6524b558ca9f41ac81758d6c3d34e4

terminal output:
```
new client request
/usr/include/c++/13.1.1/optional:477: constexpr _Tp&
std::_Optional_base_impl<_Tp, _Dp>::_M_get() [with _Tp = PipeWireCursor; _Dp =
std::_Optional_base]: Assertion
'this->_M_is_engaged()' failed.
fish: Job 1, 'bin/krfb-virtualmonitor --name …' terminated by signal SIGABRT
(Abort)
```

```
#0  __pthread_kill_implementation (threadid=,
signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x75e9f2d3 in __pthread_kill_internal (signo=6, threadid=) at pthread_kill.c:78
#2  0x75e4fa08 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3  0x75e38538 in __GI_abort () at abort.c:79
#4  0x760dd3b2 in std::__glibcxx_assert_fail(char const*, int, char
const*, char const*)
(file=file@entry=0x7fffe805b2e0 "/usr/include/c++/13.1.1/optional",
line=line@entry=477, function=function@entry=0x7fffe805b248 "constexpr _Tp&
std::_Optional_base_impl<_Tp, _Dp>::_M_get() [with _Tp = PipeWireCursor; _Dp =
std::_Optional_base]",
condition=condition@entry=0x7fffe805b000 "this->_M_is_engaged()") at
/usr/src/debug/gcc/gcc/libstdc++-v3/src/c++11/debug.cc:61
#5  0x7fffe804fa5c in std::_Optional_base_impl >::_M_get() (this=) at /usr/include/c++/13.1.1/optional:477
#6  std::_Optional_base_impl >::_M_get() (this=) at /usr/include/c++/13.1.1/optional:475
#7  std::optional::operator->() (this=) at
/usr/include/c++/13.1.1/optional:966
#8  PWFrameBuffer::cursorPosition() (this=) at
/usr/src/debug/krfb/krfb-23.04.3/framebuffers/pipewire/pw_framebuffer.cpp:546
#9  0x55568abd in RfbServerManager::updateScreens()
(this=0x555846b0 <(anonymous
namespace)::Q_QGS_s_instance::innerFunction()::holder>) at
/home/santi/Cositas/Contrib/krfb/krfb/rfbservermanager.cpp:148
#10 0x5556b8a9 in QtPrivate::FunctorCall,
QtPrivate::List<>, void, void (RfbServerManager::*)()>::call(void
(RfbServerManager::*)(), RfbServerManager*, void**)
(f=(void (RfbServerManager::*)(class RfbServerManager * const))
0x55568a5a , o=0x555846b0
<(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder>,
arg=0x7fffd440)
at /usr/include/qt/QtCore/qobjectdefs_impl.h:152
#11 0x5556b51b in QtPrivate::FunctionPointer::call, void>(void
(RfbServerManager::*)(), RfbServerManager*, void**)
(f=(void (RfbServerManager::*)(class RfbServerManager * const))
0x55568a5a , o=0x555846b0
<(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder>,
arg=0x7fffd440)
at /usr/include/qt/QtCore/qobjectdefs_impl.h:185
#12 0x5556ae67 in QtPrivate::QSlotObject, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*,
void**, bool*)
(which=1, this_=0x5572b810, r=0x555846b0 <(anonymous
namespace)::Q_QGS_s_instance::innerFunction()::holder>, a=0x7fffd440,
ret=0x0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:418
#13 0x766d1237 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7fffd440, r=, this=0x5572b810, this=, r=, a=)
at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate(QObject*, int, void**) (sender=0x556daee0,
signal_index=3, argv=0x7fffd440) at kernel/qobject.cpp:3925
#15 0x766d2d6f in QTimer::timeout(QTimer::QPrivateSignal)
(this=, _t1=...) at .moc/moc_qtimer.cpp:205
#16 0x766c3cee in QObject::event(QEvent*) (this=0x556daee0,
e=0x7fffd5b0) at kernel/qobject.cpp:1324
#17 0x7737893f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=, receiver=0x556daee0, e=0x7fffd5b0) at
kernel/qapplication.cpp:3640
#18 0x7669c2f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x556daee0, event=0x7fffd5b0) at
kernel/qcoreapplication.cpp:1064
#19 0x766ea9bb in 

[kwin] [Bug 420160] Session crashes when monitor goes into standby

2021-05-07 Thread Santiago Cézar
https://bugs.kde.org/show_bug.cgi?id=420160

--- Comment #28 from Santiago Cézar  ---
Here is the info I got from coredumpctl for plasmashell

   PID: 53482 (plasmashell)
   UID: 1002 (santi)
   GID: 1002 (santi)
Signal: 6 (ABRT)
 Timestamp: Thu 2021-05-06 17:16:29 -03 (7min ago)
  Command Line: plasmashell -d -n
Executable: /usr/bin/plasmashell
 Control Group:
/user.slice/user-1002.slice/user@1002.service/app.slice/app-org.kde.konsole-c7898390fcab48f4a33a7b08fc3b0fb5.scope
  Unit: user@1002.service
 User Unit: app-org.kde.konsole-c7898390fcab48f4a33a7b08fc3b0fb5.scope
 Slice: user-1002.slice
 Owner UID: 1002 (santi)
   Boot ID: a7fa3af3286c470485bf9405b9833b2a
Machine ID: 82ad6e578fd041e19a9ca05f32db1210
  Hostname: mini
   Storage:
/var/lib/systemd/coredump/core.plasmashell.1002.a7fa3af3286c470485bf9405b9833b2a.53482.162033218900.zst
(present)
 Disk Size: 14.1M
   Message: Process 53482 (plasmashell) of user 1002 dumped core.

Stack trace of thread 53482:
#0  0x7f54c1a2b292 raise (libc.so.6 + 0x3d292)
#1  0x7f54c1a148a4 abort (libc.so.6 + 0x268a4)
#2  0x7f54c1e8f42d _ZNK14QMessageLogger5fatalEPKcz
(libQt5Core.so.5 + 0xb142d)
#3  0x7f54bfd9b4d4
_ZNK15QtWaylandClient15QWaylandDisplay10checkErrorEv (libQt5WaylandClient.so.5
+ 0x804d4)
#4  0x7f54bfd9b6ea
_ZN15QtWaylandClient15QWaylandDisplay13flushRequestsEv
(libQt5WaylandClient.so.5 + 0x806ea)
#5  0x7f54bfda8ace
_ZN15QtWaylandClient14QWaylandWindow10setVisibleEb.part.0
(libQt5WaylandClient.so.5 + 0x8dace)
#6  0x7f54c24a2aab _ZN14QWindowPrivate10setVisibleEb
(libQt5Gui.so.5 + 0x172aab)
#7  0x55d8f59fb755 _ZN11ShellCorona20primaryOutputChangedEv
(plasmashell + 0x44755)
#8  0x7f54c208d4b0 _Z10doActivateILb0EEvP7QObjectiPPv
(libQt5Core.so.5 + 0x2af4b0)
#9  0x7f54c248b606
_ZN15QGuiApplication20primaryScreenChangedEP7QScreen (libQt5Gui.so.5 +
0x15b606)
#10 0x7f54c24bb9bf _ZN7QScreenD1Ev (libQt5Gui.so.5 +
0x18b9bf)
#11 0x7f54c24bbc7d _ZN7QScreenD0Ev (libQt5Gui.so.5 +
0x18bc7d)
#12 0x7f54c2478d0b
_ZN22QWindowSystemInterface19handleScreenRemovedEP15QPlatformScreen
(libQt5Gui.so.5 + 0x148d0b)
#13 0x7f54bfd9e8c6
_ZN15QtWaylandClient15QWaylandDisplay22registry_global_removeEj
(libQt5WaylandClient.so.5 + 0x838c6)
#14 0x7f54c04a0c04 ffi_call_unix64 (libffi.so.6 + 0x6c04)
#15 0x7f54c04a0107 ffi_call (libffi.so.6 + 0x6107)
#16 0x7f54c1929d10 wl_closure_invoke.constprop.0
(libwayland-client.so.0 + 0x6d10)
#17 0x7f54c192a42b dispatch_event.isra.0
(libwayland-client.so.0 + 0x742b)
#18 0x7f54c192a61c wl_display_dispatch_queue_pending
(libwayland-client.so.0 + 0x761c)
#19 0x7f54bfd9b6d3
_ZN15QtWaylandClient15QWaylandDisplay13flushRequestsEv
(libQt5WaylandClient.so.5 + 0x806d3)
#20 0x7f54c208d4fd _Z10doActivateILb0EEvP7QObjectiPPv
(libQt5Core.so.5 + 0x2af4fd)
#21 0x7f54c208fb3a
_ZN15QSocketNotifier9activatedE17QSocketDescriptorNS_4TypeENS_14QPrivateSignalE
(libQt5Core.so.5 + 0x2b1b3a)
#22 0x7f54c20902d4 _ZN15QSocketNotifier5eventEP6QEvent
(libQt5Core.so.5 + 0x2b22d4)
#23 0x7f54c2ccbe73
_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 +
0x1ade73)
#24 0x7f54c205cf48
_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 +
0x27ef48)
#25 0x7f54c20aa17f
_ZL28socketNotifierSourceDispatchP8_GSourcePFiPvES1_ (libQt5Core.so.5 +
0x2cc17f)
#26 0x7f54c05314cf g_main_context_dispatch
(libglib-2.0.so.0 + 0x554cf)
#27 0x7f54c05854e8 g_main_context_iterate.constprop.0
(libglib-2.0.so.0 + 0xa94e8)
#28 0x7f54c052ec03 g_main_context_iteration
(libglib-2.0.so.0 + 0x52c03)
#29 0x7f54c20a96f8
_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(libQt5Core.so.5 + 0x2cb6f8)
#30 0x7f54c205b9b2
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 +
0x27d9b2)
#31 0x7f54c2063544 _ZN16QCoreApplication4execEv
(libQt5Core.so.5 + 0x285544)
#32 0x55d8f59ddfd1 main (plasmashell + 0x26fd1)
#33 0x7f54c1a15b75 __libc_start_main (libc.so.6 + 0x27b75)
#34 0x55d8f59de3ee _start (plasmashell + 0x273ee)

Stack trace of thread 53483:
#0  0x7f54c1ae39ff __poll (libc.so.6 + 0xf59ff)
#1  0x7f54c058547c g_main_context_iterate.constprop.0
(libglib-2.0.so.0 + 0xa947c

[kwin] [Bug 420160] Session crashes when monitor goes into standby

2021-05-05 Thread Santiago Cézar
https://bugs.kde.org/show_bug.cgi?id=420160

--- Comment #27 from Santiago Cézar  ---
> I just tried to turn off my monitor and after this i successfully returned
> back, only plasmashell is gone

I've recently tried running Plasma on Wayland again and had exactly this
behaviour

> with plasma from master, on stable its still a crash probably

I've installed Plasma 5.21.4 from Fedora 34 repositories

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

[systemsettings] [Bug 432712] Aurorae window decoration icon themes using .svgz files do not work in GTK apps with client side decorations

2021-02-27 Thread Santiago Cézar
https://bugs.kde.org/show_bug.cgi?id=432712

Santiago Cézar  changed:

   What|Removed |Added

 CC||santiagocezar2...@gmail.com

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

[kwin] [Bug 420160] Session crashes when monitor goes into standby

2021-01-24 Thread Santiago Cézar
https://bugs.kde.org/show_bug.cgi?id=420160

Santiago Cézar  changed:

   What|Removed |Added

 CC||santiagocezar2...@gmail.com

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