Bug 489786

Summary: Kdiff3 Context Menu: "Unknown Error"
Product: [Applications] kdiff3 Reporter: elydgolden
Component: context-menuAssignee: michael <reeves.87>
Status: RESOLVED DUPLICATE    
Severity: minor CC: elydgolden, kde-malc, sam
Priority: NOR    
Version: 1.11.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=462693
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Demo of KDiff3 bug on fresh openSUSE install

Description elydgolden 2024-07-05 12:29:27 UTC
Created attachment 171408 [details]
Demo of KDiff3 bug on fresh openSUSE install

SUMMARY

Trying to compare files using the context menu does not work. However, it does put their names into the nameboxes after the unknown error popup, after which the comparison behaves as normal.

STEPS TO REPRODUCE
1. Click on two files in Dolphin
2. Click Kdiff3 > Compare to compare the files

OBSERVED RESULT

An unknown error message pops up

EXPECTED RESULT

The files are compared as normal

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Sam James 2024-07-21 15:08:12 UTC
We had this reported downstream in Gentoo too at https://bugs.gentoo.org/935224 where in https://bugs.gentoo.org/935224#c15, it was bisected to:

commit f6aca74944482c1bf5f2df653945a2fb5d2bf660 (HEAD)
Author: Michael Reeves <reeves.87@gmail.com>
Date:   Sun Sep 24 13:06:29 2023 -0400

    Delay updateAvailabilities until focus change is competed
    
    BUG:462693
    FIXED-IN:1.10.6
Comment 2 Malcolm Lashley 2024-07-23 22:45:34 UTC
(In reply to Sam James from comment #1)
> We had this reported downstream in Gentoo too at
> https://bugs.gentoo.org/935224 where in https://bugs.gentoo.org/935224#c15,
> it was bisected to:
> 
> commit f6aca74944482c1bf5f2df653945a2fb5d2bf660 (HEAD)
> Author: Michael Reeves <reeves.87@gmail.com>
> Date:   Sun Sep 24 13:06:29 2023 -0400
> 
>     Delay updateAvailabilities until focus change is competed
>     
>     BUG:462693
>     FIXED-IN:1.10.6

I was quick off the mark with my original bisect - exposing this issue is something of a race-condition... but that also means a bisect/test (one) cycle is going to lead to the wrong commit...

I repeated the bisect and landed here:

((fb3b7e66...)|BISECTING) $ git bisect bad
fb3b7e66d097f41e1e43f9ffe3e94eb48623a48e is the first bad commit
commit fb3b7e66d097f41e1e43f9ffe3e94eb48623a48e (HEAD)
Author: Michael Reeves <reeves.87@gmail.com>
Date:   Wed May 17 23:18:50 2023 -0400

    Move InitView call to KDiff3App::completeInit

 src/kdiff3.cpp | 2 ++
 src/pdiff.cpp  | 4 +---
 2 files changed, 3 insertions(+), 3 deletions(-)

I then built the immediately preceding commit and ran 10 successful goes to prove I'm not going totally mad.

KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.3.0
QT Version: 6.7.2
Graphics Platform: X11
Comment 3 michael 2024-08-10 02:41:37 UTC
Thanks consolidating what appears to be two bugs with the same root cause found here. Though it was the information that finally helped find the cause.
Comment 4 michael 2024-08-10 02:42:07 UTC

*** This bug has been marked as a duplicate of bug 486782 ***