Bug 467654

Summary: Akr fails to open some valid rar files saying: "The archive is empty or Ark could not open its content."
Product: [Applications] ark Reporter: local10
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: REPORTED ---    
Severity: normal CC: aacid, rthomsen6
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Part 1: The output of "strace ark 2>&1 | tee strace.ark.rar.file.txt"
Part 2: The output of "strace ark 2>&1 | tee strace.ark.rar.file.txt"
Ark enabled plugins.

Description local10 2023-03-21 15:53:17 UTC
SUMMARY
Akr fails to open some valid rar fil es saying: "The archive is empty or Ark could not open its content." See the enclosed output of "strace ark 2>&1 | tee strace.ark.rar.file.txt" for details.

Running "unrar-free some.valid.rar.file.rar" unpacks the rar files without any issues.


SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-6-amd64 (64-bit)


$ aptitude show ark
Package: ark                             
Version: 4:22.12.3-1

$ aptitude show unrar-free
Package: unrar-free                      
Version: 1:0.1.3-1
Comment 1 local10 2023-03-21 15:57:24 UTC
Created attachment 157496 [details]
Part 1: The output of "strace ark 2>&1 | tee strace.ark.rar.file.txt"
Comment 2 local10 2023-03-21 15:57:59 UTC
Created attachment 157497 [details]
Part 2: The output of "strace ark 2>&1 | tee strace.ark.rar.file.txt"
Comment 3 local10 2023-03-21 16:05:14 UTC
The enclosed files show strace output when starting Ark from the command prompt and when Ark opens navigating to the "/tmp/deleteme" dir and then trying to open a valid rar file "some.valid.rar.file.rar"
Comment 4 Elvis Angelaccio 2023-05-15 17:11:59 UTC
Does it happen with all rar files or just some?

Any chance you can upload an affected file?

Also, please check which RAR plugin are you using (you can do it in the Ark settings).
Comment 5 local10 2023-05-15 18:40:28 UTC
> Does it happen with all rar files or just some?
> Any chance you can upload an affected file?

The issue only happens with some files. I can email you one of  the problem file if you provide me with an email address.

> Also, please check which RAR plugin are you using (you can do it in the Ark settings).

See the attached pic for enabled plug-ins.
Comment 6 local10 2023-05-15 18:41:32 UTC
Created attachment 158977 [details]
Ark enabled plugins.
Comment 7 local10 2023-05-15 18:51:48 UTC
> Also, please check which RAR plugin are you using (you can do it in the Ark settings).

Not sure how to do this from settings but:

$ aptitude search rar | grepci ^i
i A libkpimitinerary-data - library for Travel Reservation information - arch independent data
i A libkpimitinerary5 - library for Travel Reservation information
i  unrar-free - Unarchiver for .rar files