Crash when creating event · Issue #2605 · HeidiSQL/HeidiSQL · GitHub
Skip to content

Crash when creating event #2605

Closed
Closed

Description

@FeverBeaver

Description

Hello,

Happens on both Raspi (aarch64) and Debian x86, and judging by the message, very possibly to all the Lazarus branch.

When attempting to create an event (in the tree, Events, right click, create new, event) an error window pops up:
Exception class: EInvalidOperation
Message: Control "frmEventEditor" has no parent window.

HeidiSQL version and OS

12.21.1 Linux

Database server version

Reproduction recipe

Create new event

Error/Backtrace

Callstack:
  $0000000000681AF8
  $00000000004631C8
  $0000000000681580
  $0000000000682AE0
  $0000000000682AB8
  $0000000000682AB8
  $0000000000682AB8
  $000000000

Activity

  1. ansgarbecker commented on Oct 23, 2026

    @ansgarbecker
    Collaborator

    Here's a more complete callstack:

    Exception class: EInvalidOperation
    Message: Control "" has no parent window.
    
    Callstack:
    #0 FPC_RAISEEXCEPTION at :0
    #1 TWINCONTROL.CREATEWND(TWINCONTROL($000000000ADF5190)) at wincontrol.inc:7578
    #2 TSCROLLINGWINCONTROL.CREATEWND(TSCROLLINGWINCONTROL($000000000ADF5190)) at scrollingwincontrol.inc:31
    #3 TWINCONTROL.CREATEHANDLE(TWINCONTROL($000000000ADF5190)) at wincontrol.inc:7493
    #4 TWINCONTROL.HANDLENEEDED(TWINCONTROL($000000000ADF5190)) at wincontrol.inc:7940
    #5 TWINCONTROL.HANDLENEEDED(TWINCONTROL($00000000065D1860)) at wincontrol.inc:7934
    #6 TWINCONTROL.HANDLENEEDED(TWINCONTROL($00000000065D4A80)) at wincontrol.inc:7934
    #7 TWINCONTROL.HANDLENEEDED(TWINCONTROL($000000000ADEE4F0)) at wincontrol.inc:7934
    #8 TCONTROLCANVAS.CREATEHANDLE(TCONTROLCANVAS($000000000A2D0100)) at controlcanvas.inc:96
    #9 TCANVAS.REQUIREDSTATE(TCANVAS($000000000A2D0100), [CSHANDLEVALID, CSFONTVALID]) at canvas.inc:1709
    #10 TCANVAS.TEXTEXTENT(TCANVAS($000000000A2D0100), $000000010069F960^: '   ') at canvas.inc:1794
    #11 TCANVAS.TEXTWIDTH(TCANVAS($000000000A2D0100), $000000010069F960^: '   ') at canvas.inc:1814
    #12 TCustomComboBoxHelper.AutoSizeItemWidth(TCustomComboBox($000000000ADEE4F0)) at apphelpers.pas:3628
    #13 TfrmEventEditor.Create(TfrmEventEditor($000000000ADF5190), ^$__vtbl_ptr_type($0000000000000001), TComponent($00000000064ACE30)) at event_editor.pas:83
    #14 TMainForm.PlaceObjectEditor(TMainForm($000000000641CD10), TDBObject($00000000065ADC60)) at main.pas:12720
    #15 TMainForm.actCreateDBObjectExecute(TMainForm($000000000641CD10), TObject($000000000659AB40)) at main.pas:4641
    #16 CLASSES$_$TBASICACTION_$__$$_EXECUTE$$BOOLEAN+28 at :0
    #17 TCONTAINEDACTION.EXECUTE(TCONTAINEDACTION($000000000659AB40)) at containedaction.inc:98
    #18 TCUSTOMACTION.EXECUTE(TCUSTOMACTION($000000000659AB40)) at customaction.inc:247
    #19 CLASSES$_$TBASICACTIONLINK_$__$$_EXECUTE$TCOMPONENT$$BOOLEAN+59 at :0
    #20 TMENUITEM.CLICK(TMENUITEM($00000000066C6C30)) at menuitem.inc:86
    #21 TMENUITEM.DOCLICKED(TMENUITEM($00000000066C6C30), 0) at menuitem.inc:297
    #22 SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal+145 at :0
    #23 TWINDOWPROCHELPER.DOWINDOWPROC(TWINDOWPROCHELPER (8454504; 273; 152; 0; TMESSAGE (6; 0; 0; 0; 0; 0; TDWORDFILLER (({4 elements})); 0; 0; TDWORDFILLER (({4 elements})); 0; 0; TDWORDFILLER (({4 elements}))); $00000000013FF7B8; nil; True; False; $0000000005FCDDD0; TDOUBLEBUFFER (0; 0; 0; 0); 0; 0; TLMPAINT (0; 0; 0; nil; 0); False; 0; TLMSCROLL (0; 0; 0; 0; 0; 0; 0; 0); TLMKEY (0; 0; 0; 0; 0; 0; 0); TLMKEY (0; 0; 0; 0; 0; 0; 0); TLMMOUSE (0; 0; 0; 0; TSMALLPOINT (0; 0); 0; 0); TLMCONTEXTMENU (0; 0; 0; 0; 0; TSMALLPOINT (0; 0); 0; 0); TLMMOUSE (0; 0; 0; 0; TSMALLPOINT (0; 0); 0; 0); TLMMOUSEEVENT (0; 0; 0; 0; 0; 0; 0; 0; 0; nil; []); TLMMOVE (0; 0; 0; 0; 0; TSMALLPOINT (0; 0); 0; 0); TLMNOTIFY (0; 0; 0; nil; 0); TDRAWLISTITEMSTRUCT (0; TRECT (0; 0; 0; 0; TPOINT (0; 0); TPOINT (0; 0); TARRAY4INTEGERTYPE({4 elements})); 0; []); nil; nil)) at win32callback.inc:2155
    #24 WINDOWPROC(8454504, 273, 152, 0) at win32callback.inc:2786
    #25 user32:CallWindowProcW+1702 at :0
    #26 user32:IsWindowUnicode+525 at :0
    #27 TWIN32WIDGETSET.APPPROCESSMESSAGES(TWIN32WIDGETSET($0000000001670CF0)) at win32object.inc:421
    #28 TAPPLICATION.HANDLEMESSAGE(TAPPLICATION($00000000016114B0)) at application.inc:1306
    #29 TAPPLICATION.RUNLOOP(TAPPLICATION($00000000016114B0)) at application.inc:1449
    #30 TWIDGETSET.APPRUN(TWIDGETSET($0000000001670CF0), TAPPLICATIONMAINLOOP ($000000010004D8F0 = TAPPLICATION.RUNLOOP: TAPPLICATIONMAINLOOP; TOBJECT($00000000016114B0))) at interfacebase.inc:54
    #31 TAPPLICATION.RUN(TAPPLICATION($00000000016114B0)) at application.inc:1437
    #32 $main at heidisql.lpr:95
    #33 DEBUGEND_$P$HEIDISQL+6 at :0
    #34 SYSTEM_$$_EXE_ENTRY$TENTRYINFORMATION+80 at :0
    
    
  2. added
    confirmedIssue verified by project member
    linuxAffects Linux version (not Wine)
    macosAffects the macOS app bundle
    on Oct 23, 2026
  3. added a commit that references this issue on Oct 23, 2026
    d5ec718
  4. added this to the v12.22 milestone on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefective behaviour in HeidiSQLconfirmedIssue verified by project memberlinuxAffects Linux version (not Wine)macosAffects the macOS app bundle

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions