Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

xapp_kbd_layout_controller_get_current_group assertion fails

Open
#63 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
arch-linux, c, javascript, linux

Research direction

Start by tracing xapp_kbd_layout_controller_get_current_group and the keyboard applet's _syncGroup calls in applet.js:265-269, using the reported .xsession-error output as the reproduction context. Determine why the controller becomes disabled and verify that the applet and layout-switching shortcut remain usable without assertion or undefined-item errors.

Written by the indexing model from the issue text.

Description

Hi there,

at a seemingly random point during the Cinnamon session the keyboard layout applet disappears and cannot be loaded anymore. The keyboard shortcut to switch between layouts stops working too.
I think this is due to something going wrong in xapp-kbd-layout-controller.
Here's some suspicious error log in .xsession-error:

Cjs-Message: 19:13:16.380: JS LOG: Unknown network device type, is 14
Cjs-Message: 19:13:16.392: JS LOG: Unknown network device type, is 13
Cjs-Message: 19:13:16.392: JS LOG: Unknown network device type, is 13
Cinnamon warning: Log level 8: xapp_kbd_layout_controller_get_current_group: assertion 'controller->priv->enabled' failed

(cinnamon:1043): Cjs-WARNING **: 19:13:45.953: JS ERROR: TypeError: item is undefined
_syncGroup@/usr/share/cinnamon/applets/keyboard@cinnamon.org/applet.js:265:9

Cinnamon warning: Log level 8: xapp_kbd_layout_controller_get_current_group: assertion 'controller->priv->enabled' failed

(cinnamon:1043): Cjs-WARNING **: 19:13:45.954: JS ERROR: TypeError: item is undefined
_syncGroup@/usr/share/cinnamon/applets/keyboard@cinnamon.org/applet.js:265:9

Cinnamon warning: Log level 8: xapp_kbd_layout_controller_get_current_group: assertion 'controller->priv->enabled' failed

(cinnamon:1043): Cjs-WARNING **: 19:13:45.954: JS ERROR: TypeError: item is undefined
_syncGroup@/usr/share/cinnamon/applets/keyboard@cinnamon.org/applet.js:265:9

Cinnamon warning: Log level 8: xapp_kbd_layout_controller_get_current_group: assertion 'controller->priv->enabled' failed

(cinnamon:1043): Cjs-WARNING **: 19:13:45.954: JS ERROR: TypeError: item is undefined
_syncGroup@/usr/share/cinnamon/applets/keyboard@cinnamon.org/applet.js:269:9

Cinnamon warning: Log level 8: xapp_kbd_layout_controller_get_current_group: assertion 'controller->priv->enabled' failed

(cinnamon:1043): Cjs-WARNING **: 19:13:45.954: JS ERROR: TypeError: item is undefined
_syncGroup@/usr/share/cinnamon/applets/keyboard@cinnamon.org/applet.js:269:9


(cinnamon:1043): Cjs-CRITICAL **: 19:13:47.841: JS ERROR: SyntaxError: unterminated character class @ /usr/share/cinnamon/js/misc/fileUtils.js line 210 > Function:3251

The main culprit being xapp_kbd_layout_controller_get_current_group: assertion 'controller->priv->enabled' failed. Why did that assertion fail? What can be done about it?

My configuration:

  • Linux 4.18.7-zen1-1-zen
  • Arch Linux (current, except kernel and graphic card drivers)
  • Cinnamon 4.0.8
Dominant language
C
Stars
167
Forks
49
Avg merge
5d 15h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

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.

More from linuxmint/xapp

All issues in linuxmint/xapp

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.