Bug 359147 - Ark process hangs if no plugin could be found to create a new archive
Summary: Ark process hangs if no plugin could be found to create a new archive
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (other bugs)
Version First Reported In: 15.12.1
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-08 19:21 UTC by Elvis Angelaccio
Modified: 2016-02-09 15:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elvis Angelaccio 2016-02-08 19:21:39 UTC
See below.

Reproducible: Always

Steps to Reproduce:
1. Make sure that e.g. 'rar' is not installed
2. ark --changetofirstpath --add --autofilename rar foo.txt

Actual Results:  
Ark process hangs after displaying the error message.

Expected Results:  
Ark process should quit after displaying the error message.
Comment 1 Elvis Angelaccio 2016-02-09 15:04:02 UTC
Git commit 302f86db350aa270094f8db73c3eda8451fc2811 by Elvis Angelaccio.
Committed on 09/02/2016 at 14:58.
Pushed by elvisangelaccio into branch 'Applications/15.12'.

Properly finish AddToArchive jobs

Currently Ark hangs when AddToArchive::slotStartJob() returns before having
started the underlying AddJob.
Calling emitResult() before calling 'return' fixes the issue.
FIXED-IN: 15.12.2

M  +6    -4    kerfuffle/addtoarchive.cpp

http://commits.kde.org/ark/302f86db350aa270094f8db73c3eda8451fc2811