Bug 442161

Summary: kdenlive crashes using audio effects due Invalid or failed Parsing
Product: [Applications] kdenlive Reporter: Charlie Ramirez Animation Studios MX <todo.ciencia.y.electronica>
Component: Video Effects & TransitionsAssignee: Vincent PINON <vpinon>
Status: RESOLVED WORKSFORME    
Severity: critical CC: fritzibaby
Priority: NOR    
Version First Reported In: 21.08.0   
Target Milestone: ---   
Platform: Snap   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Error log from kdenlive (running on Debian 11 terminal)
Error log from kdenlive FLATPAK (running on Debian 11 terminal)
Error log from kdenlive Appimage (running on Debian 11 terminal)

Description Charlie Ramirez Animation Studios MX 2021-09-08 08:35:51 UTC
Created attachment 141379 [details]
Error log from kdenlive (running on Debian 11 terminal)

SUMMARY
Snap version of kdenlive on Debian 11 (Clean installation of system and snap) closes abruptly when modifying parameters of audio effects (Discovered with effect "sox_Echo").

When run through terminal, you can get a log of various parsing errors from the splash screen startup.

recreating the failure results in similar but final records that toggle between invalid / aborted parsing, invalid context, or double parameter

STEPS TO REPRODUCE
1. start kdenlive from terminal (this will show the semi log)
2. create a project 1 video + audio
3. Add sox_echo effect to audio, set the delay parammeter to the minimum or in gradual decrements up to 80 [eventually the closer it gets to the minimum or immediately the kdenlive is placed it will close].

OBSERVED RESULT
The terminal will return a series of registers where you can see various error messages by grouping together with some critical error messages, invalid syntax or parsing etc. until abrupt shutdown, or code aborted

the project is recoverable when opening again, but as long as the modification of the effect is repeated, the failure will be repeated (it is recommended to open again with the terminal to register or notice changes in the error lines)

EXPECTED RESULT
Apparently there is some error in the syntax of the code from the start lines of the program, which lead to secondary failures in various components such as filters and effects and the title generator,

-Among the errors, there seems to be one related to ALSA. (I don't know if it's the culprit or if it's a debian 11 bug)

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

I will attach a text document with the error messages returned by the method of running through the terminal (There is no difference between running from icon and terminal, the error is repeatable).
-The system is clean (less than a week of new installation and kdenlive with less than 2 hours so I doubt it is an error in the system files)
Comment 1 Charlie Ramirez Animation Studios MX 2021-09-08 08:49:30 UTC
I almost forgot. The system is Debian 11 (stable). Clean install from ISO CD with Plasma as the only desktop. (all updated to this day)

Software
Versión de KDE Plasma: 5.20.5
Versión de KDE Frameworks: 5.78.0
Versión de Qt: 5.15.2
Versión del kernel: 5.10.0-8-amd64
Tipo de OS: 64 bits
Comment 2 emohr 2021-09-25 09:37:54 UTC
Thank you for reporting. Please try with the official Flatpak or AppImage to see if this is a packaging issue.
Comment 3 Charlie Ramirez Animation Studios MX 2021-09-26 23:26:55 UTC
Created attachment 141937 [details]
Error log from kdenlive FLATPAK (running on Debian 11 terminal)

Log for flatpak 26 sep 2021 18:18:46 CDT
Comment 4 Charlie Ramirez Animation Studios MX 2021-09-26 23:27:58 UTC
Created attachment 141938 [details]
Error log from kdenlive Appimage (running on Debian 11 terminal)

log for Appimage Sep 26 2021 0627 CDT
Comment 5 Charlie Ramirez Animation Studios MX 2021-09-26 23:33:41 UTC
(In reply to emohr from comment #2)
> Gracias por informar. Intente con Flatpak o AppImage oficial para ver si se
> trata de un problema de empaque.

-2 Error Logs Attached one for Flatpak and another for Appimage 

Tested using Flatpak The problem Persists, immediately the Sox Echo effect is added, the program closes abruptly, but the error codes displayed by the terminal differ from the snap version  

The App Image returns even more errors apparently and Quits abruptly for Segment Violation or Floating Comma. I ran app image 2 times; in the first one it closed as soon as it began to reproduce, in the second it did not happen until I added the Sox Echo and set some parameter with a value similar to the other (in this case both in 80)

      Although at the moment I have only been able to replicate the error by adding the effect in the project, if I use another video or the same video already rendered (new project), it does not seem to happen, although the following sentence when adding the effect continues to be repeated:

[mp3 @ 0x7f356803ab40] Estimating duration from bitrate, this may be inaccurate
[mp3 @ 0x7f3568059800] Estimating duration from bitrate, this may be inaccurate                                                                            
qml: TRIM AREA ENABLED:  false
QQmlContext: Cannot set context object on invalid context.
QQmlComponent: Cannot create a component in an invalid context
QQmlContext: Cannot set context object on invalid context.
QQmlComponent: Cannot create a component in an invalid context
qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

=== REG FOCUS:  false
qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

qml: [kdenlive/effect]
qml: [kdenlive/effect]
qml: Add effect:  sox_echo
XML parsing of  "sox_echo" . found 4 parameters
QLocale: Default value is QVariant(double, 0.5) parsed: "0.5"
 = = SET EFFECT PARAM:  "gain-in"  =  0.5
QLocale: Default value is QVariant(double, 1) parsed: "1"
 = = SET EFFECT PARAM:  "gain-out"  =  1
QLocale: Default value is QVariant(double, 150) parsed: "150"
 = = SET EFFECT PARAM:  "delay"  =  150
QLocale: Default value is QVariant(double, 0.8) parsed: "0.8"
 = = SET EFFECT PARAM:  "decay"  =  0.8
END parsing of  "sox_echo" . Number of found parameters 4
// GOT CLIP STACK DATA CHANGE:  QVector(307)
// GOT CLIP STACK DATA CHANGE DONE:  QModelIndex(0,0,0x7,TimelineItemModel(0x56133cf5fce0))  =  QVector(307)
qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

-----

/ SHOW KEYFRAMES:  true
MUTEX LOCK!!!!!!!!!!!! setmodel
MUTEX UNLOCK!!!!!!!!!!!! setmodel
MUTEX LOCK!!!!!!!!!!!! loadEffects COUNT:  1
QLocale: Could not load double parameter ""
QLocale: Could not load double parameter ""
QLocale: Could not load double parameter ""
QLocale: Could not load double parameter ""
MUTEX UNLOCK!!!!!!!!!!!! loadEffects
qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!

qml: ENDING DRAG!!!!!!!!!!!!!!!!!!!!!!
=== REG FOCUS:  false
Comment 6 Bug Janitor Service 2021-10-11 04:35:45 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2021-10-26 04:35:32 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!