Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeSnip crashes after resume from hibernation #70

Open
delphidabbler opened this issue Dec 11, 2022 · 4 comments
Open

CodeSnip crashes after resume from hibernation #70

delphidabbler opened this issue Dec 11, 2022 · 4 comments
Assignees
Labels
accepted Accepted for implementation / fixing bug Bug report needs investigation Investigation required to confirm problem

Comments

@delphidabbler
Copy link
Owner

When CodeSnip is running and Windows is hibernated and resumed CodeSnip crashes with an unrecoverable exception.

Selecting "Terminate" sometimes results in an endless loop and the process has to be killed with task manager.

@delphidabbler delphidabbler self-assigned this Dec 11, 2022
@delphidabbler delphidabbler added accepted Accepted for implementation / fixing bug Bug report needs investigation Investigation required to confirm problem labels Dec 11, 2022
@delphidabbler
Copy link
Owner Author

delphidabbler commented Dec 11, 2022

This is a long standing, intractable bug. Dunno why it didn't make it into issues until now.

I suspect it's something to do with the web browser control, but haven't confirmed it. (❌😊 probably not see #70 (comment))

@delphidabbler
Copy link
Owner Author

Just tried 5 hibernations with CodeSnip running from the Delphi XE debugger and stand-alone and not a single crash.

⚠️ This is going to be hard to track down!

@delphidabbler
Copy link
Owner Author

Crash happened today while debugging.

A stack trace indicates that that exception is a fault reading a zero pointer in the Overview pane. The culprit would appear to be an IView (non)instance.

I think I'd never selected anything in the Overview pane before the crash, which could explain the null pointer exception.

@delphidabbler
Copy link
Owner Author

Had another crash under the debugger.

Crash is reported as occurring in line

Result := ViewItem.IsUserDefined;

Stack trace is (method followed by indented line in method, where available), with method raising exception listed at top:

TOverviewFrame.TTVDraw.IsUserDefinedNode
    Result := ViewItem.IsUserDefined;
TSnippetsTVDraw.CustomDrawItem
    TV.Canvas.Font.Color :=
      Preferences.DBHeadingColours[IsUserDefinedNode(Node)];
TCustomTreeView.CustomDrawItem
TCustomTreeView.CNNotify
TControl.WndProc
TWinControl.WndProc
TCustomTreeView.WndProc
DoControlMsg
TWinControl.WndProc
TWinControl.MainWndProc
StdWndProc
{various calls into user32 & common controls library}
TWinControl.DefaultHandler
TWinControl.WndProc
TCustomTreeView.WndProc
StdWinProc
{various calls into user32}
TTreeNode.SetText
TTreeNodes.ReadNodeData
TCustomTreeView.CreateWnd
TWinControl.CreateHandle
TWinControl.UpdateControlState
TWinControl.CMRecreateWnd
TControl.WndProc
TWinControl.WndProc
TCustomTreeView.WndProc
TWinControl.RecreateWnd
TWinControl.WndProc
TCustomTreeView.WndProc

@delphidabbler delphidabbler moved this to To do in CodeSnip May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Accepted for implementation / fixing bug Bug report needs investigation Investigation required to confirm problem
Projects
Status: Accepted
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant