Bug 485440

Summary: Data loss error dialog when "Align B and C for 3 input files" preference is checked
Product: [Applications] kdiff3 Reporter: Max Vohlken <max.vohlken>
Component: applicationAssignee: michael <reeves.87>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.8.4   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: input file a
input file b
input file c
screen capture of the error dialog

Description Max Vohlken 2024-04-12 15:26:48 UTC
Created attachment 168421 [details]
input file a

SUMMARY
Data loss error dialog is displayed when comparing 3 files and the "Align B and C for 3 input files" preference is checked.

STEPS TO REPRODUCE
1. download the 3 input file that are attached. These file will demonstrate the problem.
2. open kdiff3, go into the kdiff3 settings and check the "Align B and C for 3 input files" option in the Diff Settings tab
3. diff the 3 files by running: kdiff3 a b c

OBSERVED RESULT
a Severe Internal Error dialog will pop-up saying:
Data loss error:
If it is reproducible please contact the author."

My removing line 3 from file c the issue will go away. 

EXPECTED RESULT
I expected kdiff3 to open normally and display the differences between the 3 files

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Red Hat Enterprise Linux release 8.9 (Ootpa)
KDE Plasma Version: 
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
$ dnf info kdiff3
Installed Packages
Name         : kdiff3
Version      : 1.8.4
Release      : 1.el8
Architecture : x86_64
Size         : 5.8 M
Source       : kdiff3-1.8.4-1.el8.src.rpm
Repository   : @System
From repo    : epel
Summary      : Compare + merge 2 or 3 files or directories
URL          : https://github.com/KDE/kdiff3
Comment 1 Max Vohlken 2024-04-12 15:27:20 UTC
Created attachment 168422 [details]
input file b
Comment 2 Max Vohlken 2024-04-12 15:27:42 UTC
Created attachment 168423 [details]
input file c
Comment 3 Max Vohlken 2024-04-12 15:28:08 UTC
Created attachment 168424 [details]
screen capture of the error dialog