Description: When opening the file, the error window comes up. Please see the attached file. (I tested on windows and linux) Steps to Reproduce: 1. Open the .cdr file 2. The draw window comes up 3. The I/O error is displayed Actual Results: File cannot be opened/imported Expected Results: File can be opened/imported Reproducible: Always User Profile Reset: No Additional Info: Version: 7.6.2.1 (X86_64) / LibreOffice Community Build ID: 60(Build:1) CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US 7.6.2-3 Calc: threaded
Created attachment 190903 [details] Affected cdr file
REPRODUCIBLE with Server Installation of Version: 24.2.0.0.alpha0+ (X86_64) Build ID: 7fff4e2ca6739928f72e5f0d2eb5820823916769 CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: default; VCL: win Locale: Locale: de-DE (de_DE); UI: de-DE; Theme: Colibre Calc: CL threaded – normal Test Profile created from 7.6 Might indeed be LibO-Probem / Regression. a) File opens fine with a1) zamzar.com a2) LibO 6.0.7.3 (x64) 4.0.0 b) Already Reproducible in LibO 7.5.0.0 Server Installation of Version Version: 7.0.0.1 (x64), Build ID: 04ba7e3f1e51af6c5d653e543a620e36719083fd CPU-Threads: 12; BS: Windows 10.0 Build 19044; UI-Render: Skia/Vulkan; VCL: win Locale: de-DE (de_DE); UI: de-DE | Calc: CL | Colibri Theme c) But it also might be a problem with the file. irfanview also indicates "Can't read file header"
Created attachment 190913 [details] gdb bt On pc Debian x86-64 with master sources updated today, I could reproduce this. I attached bt with some gdb and console logs.
Fridrich: thought you might be interested in this one since it's related to libcdr.
Bibisected with linux-64-7.0 to 85dc497f1556ebc53f482e382f48e98b9560b983 upload libcdr 0.1.6 Looking at the log https://git.libreoffice.org/libcdr/+log/bd969c36b580f5de0cc30fe1badf4f1b8361c05d the possible changes are bd969c3 Fix txsm for version 15 by Fridrich Štrba · 4 years ago libcdr-0.1.6 496e288 improve readFild for versions 13 and up by Fridrich Štrba · 4 years ago 4b28c1a CDROutputElementList::draw: Micro perfomance improvement by Albert Astals Cid · 4 years, 3 months ago 012bce6 Fix -Wdeprecated-copy warnings by Albert Astals Cid · 4 years, 3 months ago 5da3e01 Avoid UB converting from double to int via unsigned by Stephan Bergmann · 4 years, 6 months ago d89355e Fix too small loop variables by Miklos Vajna · 5 years ago 00c4b33 Add missing include by Miklos Vajna · 5 years ago 10211e9 fix conditional by David Tardon · 5 years ago