Page MenuHome GnuPG

Kleopatra: crash on click in certificate extension dialog
Open, NormalPublic

Description

How to replicate:

  • Open the dialog to change the validity of the certificate for one of your own keys.
  • Click in the date field and change the last digit so your date is the current date (which is not acceptable to Kleopatra, you can choose an even earlier day, too)
  • Click on the drop down triangle
  • Click OK in the upcoming error window (or close the window with click on the x)

-> Crash (after about a second)

Debugview only gives the line:

<process started at 16:47:21.671 has terminated with 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)>

The error does not occur if you click OK after entering the too early date. Then the error window comes up, too, but clicking OK then does not result in a crash. If you click on the triangle after that (without changing the date again), the error window will not come up and there is no crash.

Details

Version
Version 4.0.0.250370 (Gpg4win-5.0.0-beta125)

Event Timeline

ebo triaged this task as Normal priority.Tue, Mar 4, 5:03 PM
ebo created this task.
ebo updated the task description. (Show Details)

Not reproducible on Linux (with KF 6.11): When clicking the drop down triangle the popup briefly flashes (opens and immediately closes) before the error window is shown. Maybe the bug was fixed in the meantime. Needs to be checked.

It is KF6.9.0 in Gpg4win-5.0.0-beta125

Making some progress on understanding this:

It's somehow related to QAlphaWidget, which is something internal qt uses for some animations.
If I add app.setEffectEnabled(Qt::UI_FadeMenu, false) somewhere in the main function, the crash doesn't happen anymore.

Sounds like the animation causes/relies on a deferred destruction. Do we/KF6 delete the popup manually?