mkiol / dsnote

Speech Note Linux app. Note taking, reading and translating with offline Speech to Text, Text to Speech and Machine translation.
Mozilla Public License 2.0
468 stars 19 forks source link

Archlinux - dsnote fails to build - flatpak fails to run #81

Closed zDEFz closed 7 months ago

zDEFz commented 8 months ago
-- Installing: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/lib/libRHVoice.so.1.2.2
-- Installing: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/lib/libRHVoice.so.1
-- Set non-toolchain portion of runtime path of "/home/blu/git/dsnote/arch/git/src/dsnote/build/external/lib/libRHVoice.so.1.2.2" to ""
-- Installing: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/lib/libRHVoice.so
-- Installing: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/include/RHVoice.h
-- Installing: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/include/RHVoice_common.h
-- Installing: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/etc/RHVoice/RHVoice.conf
[ 18%] Completed 'rhvoice'
[ 18%] Built target rhvoice
[100%] Linking CXX shared library libwhisper-cublas.so
[100%] Built target whisper-cublas
[ 18%] Performing install step for 'whispercppcublas'
[100%] Built target whisper-cublas
Install the project...
-- Install configuration: "Release"
-- Installing: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/lib/libwhisper-cublas.so
-- Set non-toolchain portion of runtime path of "/home/blu/git/dsnote/arch/git/src/dsnote/build/external/lib/libwhisper-cublas.so" to "/usr/share/dsnote/lib"
-- Up-to-date: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/include/ggml.h
-- Up-to-date: /home/blu/git/dsnote/arch/git/src/dsnote/build/external/include/whisper.h
[ 18%] Completed 'whispercppcublas'
[ 18%] Built target whispercppcublas
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
flatpak run net.mkiol.SpeechNote
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 ../../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)
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)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
mkiol commented 8 months ago

Thanks for the report.

make: *** [Makefile:146: all] Error 2 ==> ERROR: A failure occurred in build().

Most likely this line is a sum up of previous error. The initial error report is somewhere far above this line. Would you be able to track it down?

flatpak run net.mkiol.SpeechNote

Could you please start flatpak with --verbose option?

flatpak run net.mkiol.SpeechNote --verbose
zDEFz commented 8 months ago

Most likely this line is a sum up of previous error. The initial error report is somewhere far above this line. Would you be able to track it down?

Not really. This is as much log as I can get for now... I am not sure if it would be better if I'd just save the stdout: https://up.tail.ws/txt/dsnote.txt

I don't know what changed. It's the very next day and now dsnote starts up successfully with the following:

130 % flatpak run net.mkiol.SpeechNote --verbose
[I] 18:39:43.7 0x7f5330260d00 init:49 - logging to stderr enabled
[D] 18:39:43.7 0x7f5330260d00 () - version: 4.3.0
[D] 18:39:43.7 0x7f5330260d00 () - translation: "en_US"
[W] 18:39:43.7 0x7f5330260d00 () - failed to install translation
[D] 18:39:43.7 0x7f5330260d00 () - starting standalone app
[D] 18:39:43.7 0x7f5330260d00 () - app: net.mkiol dsnote
[D] 18:39:43.7 0x7f5330260d00 () - config location: "/home/blu/.var/app/net.mkiol.SpeechNote/config"
[D] 18:39:43.7 0x7f5330260d00 () - data location: "/home/blu/.var/app/net.mkiol.SpeechNote/data/net.mkiol/dsnote"
[D] 18:39:43.7 0x7f5330260d00 () - cache location: "/home/blu/.var/app/net.mkiol.SpeechNote/cache/net.mkiol/dsnote"
[D] 18:39:43.7 0x7f5330260d00 () - settings file: "/home/blu/.var/app/net.mkiol.SpeechNote/config/net.mkiol/dsnote/settings.conf"
[D] 18:39:43.7 0x7f5330260d00 () - platform: "xcb"
[D] 18:39:43.149 0x7f5330260d00 () - supported audio input devices:
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 ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
[D] 18:39:43.158 0x7f5330260d00 () - "pulse"
[D] 18:39:43.202 0x7f5330260d00 () - "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] 18:39:43.204 0x7f5330260d00 () - "alsa_input.usb-R__DE_Microphones_R__DE_NT-USB_Mini_465AA087-00.mono-fallback"
[D] 18:39:43.204 0x7f5330260d00 () - "alsa_output.usb-RME_ADI-2_DAC__51080054__B0557DE7E9AE0C8-00.analog-stereo.monitor"
[D] 18:39:43.270 0x7f5330260d00 () - starting service: app-standalone
[D] 18:39:43.271 0x7f5330260d00 () - mbrola dir: "/app/bin"
[D] 18:39:43.271 0x7f5330260d00 () - espeak dir: "/app/bin"
[D] 18:39:43.271 0x7f5325be9600 loop:56 - py executor loop started
[D] 18:39:43.274 0x7f5330260d00 () - module already unpacked: "rhvoicedata"
[D] 18:39:43.274 0x7f5330260d00 () - module already unpacked: "rhvoiceconfig"
[D] 18:39:43.278 0x7f5330260d00 () - module already unpacked: "espeakdata"
[D] 18:39:43.278 0x7f5330260d00 () - default stt model not found: "en"
[D] 18:39:43.278 0x7f5330260d00 () - default tts model not found: "en"
[D] 18:39:43.278 0x7f5330260d00 () - default mnt lang not found: "en"
[D] 18:39:43.278 0x7f5330260d00 () - new default mnt lang: "en"
[D] 18:39:43.278 0x7f5330260d00 () - service refresh status, new state: busy
[D] 18:39:43.278 0x7f5330260d00 () - service state changed: unknown => busy
[D] 18:39:43.278 0x7f5330260d00 () - delaying features availability
[D] 18:39:43.279 0x7f53263ea600 () - config version: 51 51
[D] 18:39:43.280 0x7f5330260d00 () - available styles: ("Default", "Fusion", "Imagine", "Material", "org.kde.breeze", "org.kde.desktop", "Plasma", "Universal")
[D] 18:39:43.280 0x7f5330260d00 () - style paths: ("/usr/lib/qml/QtQuick/Controls.2")
[D] 18:39:43.280 0x7f5330260d00 () - import paths: ("/usr/lib/qml", "/app/bin", "qrc:/qt-project.org/imports")
[D] 18:39:43.280 0x7f5330260d00 () - library paths: ("/usr/share/runtime/lib/plugins", "/usr/lib/plugins", "/app/bin")
[D] 18:39:43.280 0x7f5330260d00 () - using auto qt style
[D] 18:39:43.280 0x7f5330260d00 () - XDG_CURRENT_DESKTOP: i3
[D] 18:39:43.280 0x7f5330260d00 () - switching to style: "org.kde.breeze"
[D] 18:39:43.292 0x7f53263ea600 () - models changed
[D] 18:39:43.796 0x7f5330260d00 () - starting app: app-standalone
[D] 18:39:43.796 0x7f5330260d00 () - app service state: unknown => busy
[W] 18:39:43.818 0x7f5330260d00 ():36 - file:///usr/lib/qml/QtQuick/Controls.2/org.kde.breeze/ScrollView.qml:36:25: QML ScrollBar: Binding loop detected for property "x"
[W] 18:39:43.823 0x7f5330260d00 ():36 - file:///usr/lib/qml/QtQuick/Controls.2/org.kde.breeze/ScrollView.qml:36:25: QML ScrollBar: Binding loop detected for property "x"
[W] 18:39:43.826 0x7f5330260d00 ():36 - file:///usr/lib/qml/QtQuick/Controls.2/org.kde.breeze/ScrollView.qml:36:25: QML ScrollBar: Binding loop detected for property "x"
logger error: invalid format string
qrc:/qml/main.qml:269: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:260:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[W] 18:39:43.848 0x7f5330260d00 virtual QVariant ModelSource::item(int) const:81 - ModelSource: Invalid role  -1 "color"
[W] 18:39:43.848 0x7f5330260d00 virtual QVariant ModelSource::item(int) const:81 - ModelSource: Invalid role  -1 "color"
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:221:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[W] 18:39:43.876 0x7f5330260d00 ():144 - qrc:/qml/MainToolBar.qml:144:21: QML MenuItem: Binding loop detected for property "__reserveSpaceForIcon"
[W] 18:39:43.876 0x7f5330260d00 ():144 - qrc:/qml/MainToolBar.qml:144:21: QML MenuItem: Binding loop detected for property "__reserveSpaceForIcon"
[W] 18:39:43.878 0x7f5330260d00 ():46 - qrc:/qml/MainToolBar.qml:46:21: QML MenuItem: Binding loop detected for property "__reserveSpaceForIcon"
[W] 18:39:43.878 0x7f5330260d00 ():46 - qrc:/qml/MainToolBar.qml:46:21: QML MenuItem: Binding loop detected for property "__reserveSpaceForIcon"
[D] 18:39:43.883 0x7f5330260d00 onCompleted:155 - default font pixel size: 12
[D] 18:39:43.891 0x7f5330260d00 () - default stt model not found: "en"
[D] 18:39:43.891 0x7f5330260d00 () - default tts model not found: "en"
[D] 18:39:43.891 0x7f5330260d00 () - default mnt lang not found: "en"
[D] 18:39:43.891 0x7f5330260d00 () - new default mnt lang: "en"
[D] 18:39:43.891 0x7f5330260d00 () - service refresh status, new state: busy
[D] 18:39:43.891 0x7f5330260d00 () - service refresh status, new state: busy
[D] 18:39:43.971 0x7f5330260d00 () - stt models changed
[D] 18:39:43.971 0x7f5330260d00 () - update listen
[D] 18:39:43.971 0x7f5330260d00 () - tts models changed
[D] 18:39:43.971 0x7f5330260d00 () - update listen
[W] 18:39:43.971 0x7f5330260d00 () - no available tts models for in mnt
[W] 18:39:43.971 0x7f5330260d00 () - no available tts models for out mnt
[D] 18:39:43.971 0x7f5330260d00 () - ttt models changed
[D] 18:39:43.975 0x7f5330260d00 () - mnt langs changed
[D] 18:39:43.975 0x7f5330260d00 () - update listen
[W] 18:39:43.975 0x7f5330260d00 () - no available mnt langs
[W] 18:39:43.975 0x7f5330260d00 () - no available mnt out langs
[D] 18:39:44.567 0x7f5330260d00 () - trying features availability update: false
[D] 18:39:45.64 0x7f5325be9600 libs_availability:171 - py libs availability: [coqui-tts=true, faster-whisper=true, mimic3-tts=true, transformers=true, unikud=true, gruut_de=true, gruut_es=true, gruut_fa=true, gruut_fr=true, gruut_nl=true, gruut_it=true, gruut_ru=true, gruut_sw=true, mecab=true, torch-cuda=false]
[D] 18:39:45.567 0x7f5330260d00 () - trying features availability update: true
[D] 18:39:45.567 0x7f5330260d00 () - features availability ready
[W] 18:39:45.568 0x7f5330260d00 has_lib:423 - failed to open libcudnn.so: libcudnn.so: cannot open shared object file: No such file or directory
[W] 18:39:45.573 0x7f5330260d00 has_hip:79 - failed to open whisper-hipblas lib: libwhisper-hipblas.so: cannot open shared object file: No such file or directory
[D] 18:39:45.576 0x7f5330260d00 () - updating model using availability
[D] 18:39:45.576 0x7f5330260d00 () - updating model using availability internal
[D] 18:39:45.578 0x7f5330260d00 () - default stt model not found: "en"
[D] 18:39:45.578 0x7f5330260d00 () - default tts model not found: "en"
[D] 18:39:45.578 0x7f5330260d00 () - default mnt lang not found: "en"
[D] 18:39:45.578 0x7f5330260d00 () - new default mnt lang: "en"
[D] 18:39:45.578 0x7f5330260d00 () - service refresh status, new state: not-configured
[D] 18:39:45.578 0x7f5330260d00 () - service state changed: busy => not-configured
[D] 18:39:45.578 0x7f5330260d00 () - scan cuda: true
[D] 18:39:45.578 0x7f5330260d00 () - scan hip: true
[D] 18:39:45.578 0x7f5330260d00 () - scan opencl: true false
[D] 18:39:45.578 0x7f5330260d00 add_cuda_devices:229 - scanning for cuda devices
[D] 18:39:45.578 0x7f5330260d00 add_cuda_devices:238 - cuda version: driver=0, runtime=0
[W] 18:39:45.578 0x7f5330260d00 add_cuda_devices:243 - cudaGetDeviceCount returned: 35
[D] 18:39:45.578 0x7f5330260d00 add_hip_devices:266 - scanning for hip devices
[W] 18:39:45.578 0x7f5330260d00 hip_api:170 - failed to open hip lib: libamdhip64.so: cannot open shared object file: No such file or directory
[D] 18:39:45.578 0x7f5330260d00 add_opencl_devices:303 - scanning for opencl devices
[D] 18:39:45.637 0x7f5330260d00 add_opencl_devices:320 - opencl number of platforms: 2
[D] 18:39:45.637 0x7f5330260d00 add_opencl_devices:345 - opencl platform: 0, name=AMD Accelerated Parallel Processing, vendor=Advanced Micro Devices, Inc.
[D] 18:39:45.637 0x7f5330260d00 add_opencl_devices:359 - opencl number of devices: 1
[D] 18:39:45.637 0x7f5330260d00 add_opencl_devices:383 - opencl device: 0, platform name=AMD Accelerated Parallel Processing, device name=gfx1030, types=[GPU, ]
[D] 18:39:45.637 0x7f5330260d00 add_opencl_devices:345 - opencl platform: 1, name=Clover, vendor=Mesa
[D] 18:39:45.637 0x7f5330260d00 add_opencl_devices:359 - opencl number of devices: 1
[D] 18:39:45.637 0x7f5330260d00 add_opencl_devices:383 - opencl device: 0, platform name=Clover, device name=AMD Radeon RX 6950 XT (radeonsi, navi21, LLVM 15.0.7, DRM 3.54, 6.6.8-2-cachyos), types=[GPU, ]
[D] 18:39:45.637 0x7f5330260d00 () - service refresh status, new state: not-configured
[D] 18:39:45.637 0x7f5330260d00 () - app service state: busy => not-configured
[W] 18:39:45.640 0x7f5330260d00 () - no available mnt langs
[W] 18:39:45.640 0x7f5330260d00 () - no available mnt out langs
[W] 18:39:45.640 0x7f5330260d00 () - no available tts models for in mnt
[W] 18:39:45.640 0x7f5330260d00 () - no available tts models for out mnt
[W] 18:39:45.640 0x7f5330260d00 () - invalid task, reseting task state
[D] 18:39:45.640 0x7f5330260d00 () - app busy: true => false
[D] 18:39:45.661 0x7f5330260d00 () - stt models changed
[D] 18:39:45.661 0x7f5330260d00 () - update listen
[D] 18:39:45.661 0x7f5330260d00 () - tts models changed
[D] 18:39:45.661 0x7f5330260d00 () - update listen
[W] 18:39:45.661 0x7f5330260d00 () - no available tts models for in mnt
[W] 18:39:45.661 0x7f5330260d00 () - no available tts models for out mnt
[D] 18:39:45.661 0x7f5330260d00 () - ttt models changed
[D] 18:39:45.664 0x7f5330260d00 () - mnt langs changed
[D] 18:39:45.664 0x7f5330260d00 () - update listen
[W] 18:39:45.664 0x7f5330260d00 () - no available mnt langs
[W] 18:39:45.664 0x7f5330260d00 () - no available mnt out langs
mkiol commented 8 months ago

I don't know what changed. It's the very next day and now dsnote starts up successfully

I'm glad it started working. Maybe the problem was in GPU driver version and after update the issue disappeared 🤔 Looks similar to https://github.com/mkiol/dsnote/issues/79.

I am not sure if it would be better if I'd just save the stdout: https://up.tail.ws/dsnote.txt

Many thanks! I should more often test AUR packages. It looks like I broke something in the build script recently. This dsnote-git is actually a "bleeding edge" package. If you want something more stable dsnote is for you.

The problem with dsnote-git should be resolved. If it isn't a problem, I would be grateful if you could one more time try to install it.

mkiol commented 7 months ago

If the problem still occurs, please re-open.