Bug 382468 - Delete audio file from audio cd and mixed mode cd projects sometimes causes crash
Summary: Delete audio file from audio cd and mixed mode cd projects sometimes causes c...
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: Audio Project (show other bugs)
Version: 17.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-18 15:03 UTC by Patrick Silva
Modified: 2017-08-12 16:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2017-07-18 15:03:40 UTC
start an audio cd or mixed mode cd project, add some audio files to it
right click on any file from your project (incorrect menu appears),
right click on another file from your project (correct menu appears now)
select "delete" from the menu.
after delete the file, another file from your project is highlighted, right click on this file, select "delete" from menu. 
K3b crashes.
Comment 1 Leslie Zhai 2017-07-19 02:13:09 UTC
Hi Dr. Chapatin,

I can not reproduce it, could you compile it debug gdb:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr    \
    -DKDE_INSTALL_LIBDIR=lib    \
    -DKDE_INSTALL_LIBEXECDIR=lib    \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON   \
    -DK3B_BUILD_API_DOCS=ON \
    -DK3B_ENABLE_PERMISSION_HELPER=ON   \
    -DK3B_DEBUG=ON

then gdb build/src/k3b, please paste the bt info, thanks!

Regards,
Leslie Zhai
Comment 2 Patrick Silva 2017-07-19 02:51:32 UTC
Sorry, I dont know compile software.
Comment 3 Leslie Zhai 2017-07-19 03:20:26 UTC
(In reply to Dr. Chapatin from comment #2)
> Sorry, I dont know compile software.

or you could run k3b under konsole, and paste the output.
Comment 4 Patrick Silva 2017-07-19 03:45:09 UTC
terminal output when the crash happens

K3b::AudioTrack(0x563c3aabb360)
deleting sources.
(K3bMad) cleanup at offset:  Input file at:  2442   Input file size:  11637507   stream pos:  2441

Segmentation fault (core dumped)
Comment 5 Leslie Zhai 2017-07-19 04:04:59 UTC
Git commit 7e3be0cafe6f747f4dbfea3b3ff11e69e7177380 by Leslie Zhai.
Committed on 19/07/2017 at 04:04.
Pushed by lesliezhai into branch 'master'.

Robust K3bMad's cleanup

M  +13   -9    plugins/decoder/mp3/k3bmad.cpp

https://commits.kde.org/k3b/7e3be0cafe6f747f4dbfea3b3ff11e69e7177380
Comment 6 Leslie Zhai 2017-07-19 04:09:52 UTC
Git commit c9a9b4faa1acdc889b620bbe08e6e1149249edc6 by Leslie Zhai.
Committed on 19/07/2017 at 04:08.
Pushed by lesliezhai into branch 'master'.

Keep quite for Release

M  +10   -7    plugins/decoder/mp3/k3bmad.cpp

https://commits.kde.org/k3b/c9a9b4faa1acdc889b620bbe08e6e1149249edc6
Comment 7 Patrick Silva 2017-08-12 16:26:59 UTC
This crash is solved on Arch running K3b 17.08 beta.