Bug 158268 - General input/output error on LO draw with .cdr file (CorelDraw file) FILEOPEN
Summary: General input/output error on LO draw with .cdr file (CorelDraw file) FILEOPEN
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libcdr (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, haveBacktrace, regression
Depends on:
Blocks:
 
Reported: 2023-11-18 21:15 UTC by k73
Modified: 2023-12-29 16:14 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Affected cdr file (255.04 KB, application/vnd.corel-draw)
2023-11-18 21:16 UTC, k73
Details
gdb bt (10.32 KB, text/plain)
2023-11-19 19:42 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description k73 2023-11-18 21:15:05 UTC
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
Comment 1 k73 2023-11-18 21:16:23 UTC
Created attachment 190903 [details]
Affected cdr file
Comment 2 Rainer Bielefeld Retired 2023-11-19 15:14:30 UTC
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"
Comment 3 Julien Nabet 2023-11-19 19:42:11 UTC
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.
Comment 4 Julien Nabet 2023-11-19 19:42:55 UTC
Fridrich: thought you might be interested in this one since it's related to libcdr.
Comment 5 Buovjaga 2023-12-29 16:14:54 UTC
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