elementary / applications-menu

Applications Menu for elementary OS and the Pantheon desktop environment
https://elementary.io
GNU General Public License v3.0
104 stars 35 forks source link

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

Open jeremypw opened 10 months ago

jeremypw commented 10 months ago

What Happened?

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

Steps to Reproduce

  1. Open Applications Menu (in GridView)
  2. Press <Alt>2
  3. GridView scrolls to page 2
  4. Press <Alt><number> 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

(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_