"libinput record" aborts after selecting the event number
In relation to #46 (closed) I have discovered a bug in
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.