workbenchdev / workbenchdev/Workbench

Adding a NotebookPage without child crashes

Open
#998 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
844
Forks
91
Avg merge
7h 12m
Merged PRs (30d)
1

Description

Tested with version v47.1. (Current HEAD of development branch).

When adding a NotebookPage inside a Notebook,
the application crashes.

(re.sonny.Workbench.Devel:5521): Gtk-CRITICAL **: 15:48:11.837: gtk_stack_add_named: assertion 'GTK_IS_WIDGET (child)' failed

Working:

using Gtk 4.0;

Notebook {
  NotebookPage {
    child: Label {
      label: _("Test");
    };
  }
}

Broken:

using Gtk 4.0;

Notebook {
  NotebookPage {

  }
}

This occurs, while writing normally. The blueprint file needs to be manually modified to prevent the application from crashing on load.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is identified. Reproduce the crash with the empty NotebookPage Blueprint snippet and compare it with the working child example; done means loading an empty NotebookPage no longer triggers the GTK critical error or crashes the application.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.