Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
L
libinput
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 88
    • Issues 88
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • libinput
  • libinput
  • Issues
  • #53

Closed
Open
Opened Jun 20, 2018 by Sergiusz M@sergiuszmContributor

"libinput record" aborts after selecting the event number

In relation to #46 (closed) I have discovered a bug in libinput-util.h.

In the commit 793c8d51 function zalloc(size_t size) was restricted to not allow to allocate more than 1MB of memory.

	/* We never need to alloc anything even near one MB so we can assume
	 * if we ever get above that something's going wrong */
	if (size > 1024 * 1024)
		abort();

However, libinput-record.c tries to allocate 136000 bytes which exceeds the new limit thus aborting the execution of libinput record.

A fix for that would be either to increase that limit to 1.5 MB or to decrease d->events_sz = 5000; in function init_device(struct record_context *ctx, char *path) from libinput-record.c.

I will make a merge request with the fix but I am not sure which of the proposed solutions is better.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: libinput/libinput#53