elementary / elementary/applications-menu

[Crash]Wingpanel is crashed if `<Alt><number>` pressed in GridView where `<number>` exceeds number of pages

Open
#576 0 comments 0 reactions 0 assignees View on GitHub
Confirmed
Dominant language
Vala
Stars
103
Forks
40
Avg merge
32m
Merged PRs (30d)
2

Description

### What Happened?

Opened Applications Menu in GridView. Pressed `5`. Applications Menu crashes and wingpanel crashes/closes (restarts automatically).

### Steps to Reproduce

1. Open Applications Menu (in GridView)
2. Press `2`
3. GridView scrolls to page 2
4. Press `` where exceeds number of pages in GridView
5. Observe crash

### Expected Behavior

Invalid GridView page shortcuts should be ignored.

### OS Version

7.x (Horus)

### Software Version

Latest release (I have run all updates)

### Log Output

```shell
(switchboard-plugin:11662): Gtk-CRITICAL **: 11:36:53.478: gtk_style_context_add_provider_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
**
ERROR:../src/Views/GridView.vala:137:slingshot_widgets_grid_get_page: assertion failed: (number > 0 && number <= get_n_pages ())
Bail out! ERROR:../src/Views/GridView.vala:137:slingshot_widgets_grid_get_page: assertion failed: (number > 0 && number <= get_n_pages ())

```
```

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.