Skip to content

[BUG] Guarded dereferencing of window and scene pointers - #381

Merged
najlkin merged 2 commits into
masterfrom
fix-wnd-deref
Oct 28, 2026
Merged

najlkin merged 2 commits into
masterfrom
fix-wnd-deref

Conversation

@najlkin

@najlkin najlkin commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

The current horrible design of aux_vis.cpp 🤢 assumes that wnd and locscene pointers are set before any global functions are called. For example, this is not true in glvis live, where the page calls resizing before initialization of the wasm canvas is finished leading to dereferencing of null as reported in GLVis/web#26 . Only reasonable occurrences are fixed here. Much better design would be a window object as proposed in #170 .

@najlkin
najlkin requested review from camierjs and tzanio October 22, 2026 00:52
@najlkin najlkin self-assigned this Oct 22, 2026
@najlkin najlkin added the bug label Oct 22, 2026
@najlkin

najlkin commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

Ahh, CI is broken because of:

  • old version of Python
  • this weird hack in hypre 2.19 in Euclid 🤪 (which I do not see later there)
#if defined(__cplusplus)
#else
typedef HYPRE_Int bool;
#define true   1
#define false  0
#endif

@tzanio tzanio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @najlkin

This was referenced Oct 22, 2026
@najlkin

najlkin commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

ping @camierjs

@najlkin
najlkin merged commit e68ad57 into master Oct 28, 2026
10 checks passed
@najlkin
najlkin deleted the fix-wnd-deref branch October 28, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants