Bug 508348 - SubtitleComposer does not start with Wayland
Summary: SubtitleComposer does not start with Wayland
Status: RESOLVED FIXED
Alias: None
Product: subtitlecomposer
Classification: Applications
Component: general (other bugs)
Version First Reported In: 0.8.1
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Mladen Milinkovic, Max
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-16 15:28 UTC by arjenbalfoort
Modified: 2025-08-23 09:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Valgrind log file (10.92 KB, text/x-log)
2025-08-16 15:28 UTC, arjenbalfoort
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arjenbalfoort 2025-08-16 15:28:45 UTC
Created attachment 184148 [details]
Valgrind log file

SUMMARY
In Debian 13 (Trixie) with Kde Plasma running default Wayland and proprietary latest Nvidia drivers SubtitleComposer does not start.


STEPS TO REPRODUCE
1. Open a terminal
2. Run: subtitlecomposer
3. See the error

OBSERVED RESULT
Crashes before opening the window.

EXPECTED RESULT
SubtitleComposer opened.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Debian: 13 (Trixie)
Kernel: 6.12.41+deb13-amd64
Nvidia Driver version: 580.76.05

ERROR
valgrind -s --log-file=subtitlecomposer.log subtitlecomposer
GL API: OpenGL Desktop 4.6 (compiled for OpenGL Desktop)
OpenGL version: 4.6.0 NVIDIA 580.76.05
GLSL version: 4.60 NVIDIA
Loaded SpeechPlugin "PocketSphinx" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/pocketsphinxasr.so"
wp_linux_drm_syncobj_surface_v1#123: error 4: explicit sync is used, but no acquire point is set
The Wayland connection experienced a fatal error: Protocol error
Comment 1 Mladen Milinkovic, Max 2025-08-17 19:45:25 UTC
I cannot reproduce it here.
From stack trace it does seem to be a nvidia driver bug.
Have you tried different nvidia driver version?
Comment 2 arjenbalfoort 2025-08-18 12:39:18 UTC
(In reply to Mladen Milinkovic, Max from comment #1)
> I cannot reproduce it here.
> From stack trace it does seem to be a nvidia driver bug.
> Have you tried different nvidia driver version?

Yes, downgraded to 570, but that has the same result/error.

Are you sure it is not a Wayland issue?
"The Wayland connection experienced a fatal error: Protocol error"
Comment 3 Mladen Milinkovic, Max 2025-08-18 16:50:22 UTC
There are some wayland related fixes in subtitlecomposer on master branch.
Can you try subtitlecomposer-git or appimage from here: https://subtitlecomposer.kde.org/download.html
Comment 4 arjenbalfoort 2025-08-19 07:48:05 UTC
(In reply to Mladen Milinkovic, Max from comment #3)
> There are some wayland related fixes in subtitlecomposer on master branch.
> Can you try subtitlecomposer-git or appimage from here:
> https://subtitlecomposer.kde.org/download.html

On Debian 13
AppImage does not start:
arjen@solydxk-main:~/Downloads$ chmod +x subtitlecomposer-git-latest-x86_64.AppImage
arjen@solydxk-main:~/Downloads$ ./subtitlecomposer-git-latest-x86_64.AppImage
open dir error: No such file or directory

Building from source:
https://invent.kde.org/multimedia/subtitlecomposer/-/wikis/Building-from-sources

I installed the packages listed under "Ubuntu Hirsuite".
Then followed the build instructions which ended in:

[ 96%] Building CXX object src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/pocketsphinxplugin.cpp.o
/home/arjen/subtitlecomposer/src/subtitlecomposer/src/speechplugins/pocketsphinx/pocketsphinxplugin.cpp: In member function ‘void SubtitleComposer::PocketSphinxPlugin::processUtterance()’:
/home/arjen/subtitlecomposer/src/subtitlecomposer/src/speechplugins/pocketsphinx/pocketsphinxplugin.cpp:104:37: error: too many arguments to function ‘ps_seg_t* ps_seg_iter(ps_decoder_t*)’
  104 |         ps_seg_t *iter = ps_seg_iter(m_psDecoder, nullptr);
      |                          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/arjen/subtitlecomposer/src/subtitlecomposer/src/speechplugins/pocketsphinx/pocketsphinxplugin.cpp:14:
/usr/include/pocketsphinx/pocketsphinx.h:451:11: note: declared here
  451 | ps_seg_t *ps_seg_iter(ps_decoder_t *ps);
      |           ^~~~~~~~~~~
make[2]: *** [src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/build.make:130: src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/pocketsphinxplugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2189: src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Comment 5 Mladen Milinkovic, Max 2025-08-19 16:04:57 UTC
try building without pocketsphinx.. it expects a specific version
Comment 6 Mladen Milinkovic, Max 2025-08-19 17:22:51 UTC
(In reply to arjenbalfoort from comment #4)
> (In reply to Mladen Milinkovic, Max from comment #3)
> > There are some wayland related fixes in subtitlecomposer on master branch.
> > Can you try subtitlecomposer-git or appimage from here:
> > https://subtitlecomposer.kde.org/download.html
> 
> On Debian 13
> AppImage does not start:
> arjen@solydxk-main:~/Downloads$ chmod +x
> subtitlecomposer-git-latest-x86_64.AppImage
> arjen@solydxk-main:~/Downloads$ ./subtitlecomposer-git-latest-x86_64.AppImage
> open dir error: No such file or directory

Also AppImage should be good again, for some reason the build system started making broken appimages.
Comment 7 arjenbalfoort 2025-08-20 07:20:56 UTC
I skipped step 4. Build/install pocketsphinx and it built just fine.

Step 8. To add it to (KDE) start menu, finder and file associations needs to be adapted, though:
Change $scpath/share/applications/subtitlecomposer.desktop to: $scpath/share/applications/org.kde.subtitlecomposer.desktop

After that, Subtitle Composer starts and functions as expected.

I also checked the new AppImage. That too starts now and functions as expected.

Thanks for your work and hopefully there will be an update in the debian repo soon.
Comment 8 Mladen Milinkovic, Max 2025-08-23 09:57:25 UTC
New release is planned in a week or so, debian will probably pick it up soon.
Thanks for the report!