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

Profiling window crashes BasinC #19

Open
lippmaje opened this issue Feb 10, 2024 · 3 comments
Open

Profiling window crashes BasinC #19

lippmaje opened this issue Feb 10, 2024 · 3 comments

Comments

@lippmaje
Copy link

lippmaje commented Feb 10, 2024

v1.794 on Win 7 SP1

The profiling window sometimes fails to get a handle and totally messes up its window content.
This causes BasinC to lose control over all of its other windows, and trying to close BasinC results in a crash while all the windows contents remain on the screen.
The only way to end BasinC now is to shut it down by the Windows manager. Your program may get lost, depending on if you managed to click the SAVE button successfully which often fails because the 'Canvas does not allow drawing.' alert box keeps popping up permanently.
Screens below.

Steps to recreate:

  • enable profiling and run a program
  • open the profile viewer
  • scroll a bit around, close and reopen the window, bring some other window to front and then refocus the profile viewer, etc (in some random order)

The bug happened also in earlier versions, I'm just reporting it now.

screen
screen2
screen3
screen4

@ref-xx
Copy link
Owner

ref-xx commented Feb 14, 2024

I cannot replicate the bug here, but it looks like the drawing object loses the handle to draw. Added to the end of the looong bug list :)

btw, do you use any antivirus or process monitoring program?

thanks.

@lippmaje
Copy link
Author

lippmaje commented Feb 18, 2024

No, just Win 7 SP1 (classic theme). Here's a test program and another screen.
screen5
profilebug.zip

To trigger the bug I scrolled in the results, selected a line here and there, switched between editor and this window, closed/reopened/resized the window in some arbitrary order. It takes a few tries until it happens.

@ref-xx
Copy link
Owner

ref-xx commented May 7, 2024

it looks like it's an old and known Canvas bug.

https://stackoverflow.com/questions/17087929/setting-brush-color-in-listviews-oncustomdraw-functions-crashes-the-application

I'm looking for workarounds, it stops crashing if I don't change the color of blue stripes, and listview basically stack overflows because of open handles. Thank you for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants