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

Speech Note instantly crashes when opened on KDE Plasma. #132

Open
nPrevail opened this issue May 11, 2024 · 4 comments
Open

Speech Note instantly crashes when opened on KDE Plasma. #132

nPrevail opened this issue May 11, 2024 · 4 comments

Comments

@nPrevail
Copy link

nPrevail commented May 11, 2024

I've installed speech note on other desktops, with the same configuration with NixOS, but with different Desktop Environments on different systems: KDE Plasma and GNOME.

Speech Note crashes when I use KDE Plasma 5.27 as my DE. On GNOME, Speech Note seems to work perfectly fine. I've tried Plasma and Speech note on two different desktops, and they both crash. GNOME doesn't seem to have an issue with Speech Note.

I've tried running net.mkiol.speechnote via terminal, and it shows me:

ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)

GNOME shows:

qt.qpa.qgnomeplatform: Could not find color scheme  ""
ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)

Yet GNOME is able to properly run Speech Note, with no sudden crashes at start.

@mkiol
Copy link
Owner

mkiol commented May 12, 2024

Hi. Thanks for the report.

Could you try start the app like this:

$ flatpak run --command=sh net.mkiol.SpeechNote 
[📦 net.mkiol.SpeechNote ~]$ dsnote --verbose

Interesting are a few last log lines before crash.

You may also try to start app in a debugger, like this:

$ flatpak run --command=sh net.mkiol.SpeechNote 
[📦 net.mkiol.SpeechNote ~]$ gdb --args dsnote --verbose
Enable debuginfod for this session? (y or [n])  n
(gdb) run

after crash:

(gdb)  bt
(gdb)  quit
exit

@nPrevail
Copy link
Author

$ flatpak run --command=sh net.mkiol.SpeechNote
[📦 net.mkiol.SpeechNote ~]$ dsnote --verbose

Here's my output:

flatpak run --command=sh net.mkiol.SpeechNote 
[📦 net.mkiol.SpeechNote ~]$ dsnote --verbose
[I] 12:04:13.673 0x7f374b816d00 init:49 - logging to stderr enabled
[D] 12:04:13.673 0x7f374b816d00 () - version: 4.4.0
[D] 12:04:13.674 0x7f374b816d00 parse_cpuinfo:117 - cpu flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust sgx bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp vnmi md_clear flush_l1d arch_capabilities
[D] 12:04:13.674 0x7f374b816d00 parse_cpuinfo:125 - cpuinfo: processor-count=8, flags=[avx, avx2, fma, f16c, ]
[D] 12:04:13.674 0x7f374b816d00 () - translation: "en_US"
[W] 12:04:13.674 0x7f374b816d00 () - failed to install translation
[D] 12:04:13.674 0x7f374b816d00 () - starting standalone app
[D] 12:04:13.675 0x7f374b816d00 () - app: net.mkiol dsnote
[D] 12:04:13.675 0x7f374b816d00 () - config location: "/home/nprevail/.var/app/net.mkiol.SpeechNote/config"
[D] 12:04:13.675 0x7f374b816d00 () - data location: "/home/nprevail/.var/app/net.mkiol.SpeechNote/data/net.mkiol/dsnote"
[D] 12:04:13.675 0x7f374b816d00 () - cache location: "/home/nprevail/.var/app/net.mkiol.SpeechNote/cache/net.mkiol/dsnote"
[D] 12:04:13.675 0x7f374b816d00 () - settings file: "/home/nprevail/.var/app/net.mkiol.SpeechNote/config/net.mkiol/dsnote/settings.conf"
[D] 12:04:13.675 0x7f374b816d00 () - platform: "wayland"
[D] 12:04:13.675 0x7f374b816d00 () - enforcing num threads: 0
[D] 12:04:13.911 0x7f374b816d00 () - supported audio input devices:
ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
[D] 12:04:13.928 0x7f374b816d00 () - "pulse"
[D] 12:04:13.946 0x7f374b816d00 () - "default"
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
[D] 12:04:13.950 0x7f374b816d00 () - "alsa_input.pci-0000_00_1f.3.analog-stereo"
[D] 12:04:13.950 0x7f374b816d00 () - "alsa_input.usb-0c76_USB_PnP_Audio_Device-00.mono-fallback"
[D] 12:04:13.950 0x7f374b816d00 () - "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
[D] 12:04:13.987 0x7f374b816d00 () - starting service: app-standalone
[D] 12:04:13.990 0x7f374b816d00 () - mbrola dir: "/app/bin"
[D] 12:04:13.990 0x7f374b816d00 () - espeak dir: "/app/bin"
[D] 12:04:13.990 0x7f372f200600 loop:75 - py executor loop started
[D] 12:04:14.7 0x7f3739200600 () - config version: 65 65
[D] 12:04:14.13 0x7f374b816d00 () - module already unpacked: "rhvoicedata"
[D] 12:04:14.14 0x7f374b816d00 () - module already unpacked: "rhvoiceconfig"
[D] 12:04:14.37 0x7f374b816d00 () - module already unpacked: "espeakdata"
[D] 12:04:14.38 0x7f374b816d00 () - default stt model not found: "en_vosk_large"
[D] 12:04:14.38 0x7f374b816d00 () - default tts model not found: "en"
[D] 12:04:14.38 0x7f374b816d00 () - default mnt lang not found: "en"
[D] 12:04:14.38 0x7f374b816d00 () - new default mnt lang: "en"
[D] 12:04:14.38 0x7f374b816d00 () - service refresh status, new state: busy
[D] 12:04:14.38 0x7f374b816d00 () - service state changed: unknown => busy
[D] 12:04:14.38 0x7f374b816d00 () - delaying features availability
[D] 12:04:14.41 0x7f374b816d00 () - runtime prefix: "/app"
[D] 12:04:14.42 0x7f374b816d00 () - available styles: ("Default", "Fusion", "Imagine", "Material", "org.kde.breeze", "org.kde.desktop", "Plasma", "Universal")
[D] 12:04:14.42 0x7f374b816d00 () - style paths: ("/usr/lib/qml/QtQuick/Controls.2")
[D] 12:04:14.42 0x7f374b816d00 () - import paths: ("/usr/lib/qml", "/app/bin", "qrc:/qt-project.org/imports")
[D] 12:04:14.42 0x7f374b816d00 () - library paths: ("/usr/share/runtime/lib/plugins", "/usr/lib/plugins", "/app/bin")
[D] 12:04:14.42 0x7f374b816d00 () - using auto qt style
[D] 12:04:14.42 0x7f374b816d00 () - XDG_CURRENT_DESKTOP: KDE
[D] 12:04:14.42 0x7f374b816d00 () - switching to style: "org.kde.desktop"
[D] 12:04:14.70 0x7f372f200600 libs_availability:61 - checking: torch cuda
[D] 12:04:14.128 0x7f3739200600 () - models changed
[D] 12:04:14.968 0x7f374b816d00 () - starting app: app-standalone
[D] 12:04:14.968 0x7f374b816d00 () - app service state: unknown => busy
[W] 12:04:14.969 0x7f374b816d00 () - hot keys are supported only under x11
logger error: invalid format string
qrc:/qml/main.qml:340:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
logger error: invalid format string
qrc:/qml/main.qml:331:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
logger error: invalid format string
qrc:/qml/Notepad.qml:24:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
logger error: invalid format string
qrc:/qml/Translator.qml:29:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
logger error: invalid format string
qrc:/qml/MainToolBar.qml:282:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[D] 12:04:15.148 0x7f374b816d00 onCompleted:180 - default font pixel size: 13
[D] 12:04:15.168 0x7f374b816d00 () - default tts model not found: "en"
[D] 12:04:15.168 0x7f374b816d00 () - default mnt lang not found: "en"
[D] 12:04:15.168 0x7f374b816d00 () - new default mnt lang: "en"
[D] 12:04:15.168 0x7f374b816d00 () - service refresh status, new state: busy
[D] 12:04:15.168 0x7f374b816d00 () - service refresh status, new state: busy
[D] 12:04:15.195 0x7f374b816d00 () - trying features availability update: false
[D] 12:04:15.196 0x7f374b816d00 () - stt models changed
[D] 12:04:15.198 0x7f374b816d00 () - update listen
[D] 12:04:15.198 0x7f374b816d00 () - app stt configured: false => true
[D] 12:04:15.199 0x7f374b816d00 () - app active stt model: "" => "en_vosk_large"
[D] 12:04:15.199 0x7f374b816d00 () - update listen
[D] 12:04:15.199 0x7f374b816d00 () - tts models changed
[D] 12:04:15.199 0x7f374b816d00 () - update listen
[W] 12:04:15.199 0x7f374b816d00 () - no available tts models for in mnt
[W] 12:04:15.199 0x7f374b816d00 () - no available tts models for out mnt
[D] 12:04:15.199 0x7f374b816d00 () - ttt models changed
[D] 12:04:15.204 0x7f374b816d00 () - mnt langs changed
[D] 12:04:15.205 0x7f374b816d00 () - update listen
[W] 12:04:15.205 0x7f374b816d00 () - no available mnt langs
[W] 12:04:15.205 0x7f374b816d00 () - no available mnt out langs
[D] 12:04:15.853 0x7f374b816d00 () - trying features availability update: false
[D] 12:04:16.853 0x7f374b816d00 () - trying features availability update: false
[D] 12:04:17.748 0x7f372f200600 libs_availability:69 - checking: coqui tts
[D] 12:04:17.750 0x7f372f200600 libs_availability:77 - checking: faster-whisper
[D] 12:04:17.853 0x7f374b816d00 () - trying features availability update: false
[D] 12:04:18.853 0x7f374b816d00 () - trying features availability update: false
[D] 12:04:18.894 0x7f372f200600 libs_availability:85 - checking: transformers
[D] 12:04:18.894 0x7f372f200600 libs_availability:87 - checking: accelerate

I'm unable to run gdb on NixOS. It doesn't seem to be configured on my current system.

@mkiol
Copy link
Owner

mkiol commented May 13, 2024

I'm unable to run gdb on NixOS. It doesn't seem to be configured on my current system.

Sorry, my mistake - please add also --devel option. The debugger is included in flatpak runtime, so you don't need to install it separately.

Updated command:

$ flatpak run --command=sh --devel net.mkiol.SpeechNote 
[📦 net.mkiol.SpeechNote ~]$ gdb --args dsnote --verbose
Enable debuginfod for this session? (y or [n])  n
(gdb) run

after crash:

(gdb)  bt
(gdb)  quit
exit

It looks that app crashes in python library accelerate check. You may try to disable any python support with --py-scan-off option:

flatpak run net.mkiol.SpeechNote --verbose --py-scan-off

@gbodley
Copy link

gbodley commented Jun 22, 2024

I've installed speech note on other desktops, with the same configuration with NixOS, but with different Desktop Environments on different systems: KDE Plasma and GNOME.

Speech Note crashes when I use KDE Plasma 5.27 as my DE. On GNOME, Speech Note seems to work perfectly fine. I've tried Plasma and Speech note on two different desktops, and they both crash. GNOME doesn't seem to have an issue with Speech Note.

I've tried running net.mkiol.speechnote via terminal, and it shows me:

ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)

GNOME shows:

qt.qpa.qgnomeplatform: Could not find color scheme  ""
ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)

Yet GNOME is able to properly run Speech Note, with no sudden crashes at start.

I'm running it on this system, seemingly without problem:
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-35-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 6800U with Radeon Graphics
Memory: 29.1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Micro Computer (HK) Tech Limited
Product Name: Mercury series
System Version: Version 1.0

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

3 participants