Irrecord segmentation fault

Yes, I am able to record a profile using irrecord and testing with irw and with the GUI.
This is how far I got, there are still a bunch of keys that I need to add:

begin remote

  name  marantz-rc003pmcd
  bits           13
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           834   935
  zero          834   935
  plead         824
  gap          113424
  min_repeat      1
#  suppress_repeat 1
#  uncomment to suppress unwanted repeats
  toggle_bit_mask 0x800
  frequency    38000

      begin codes
          KEY_POWER                0x150C
          KEY_FORWARD              0x1520
          KEY_REWIND               0x1521
          KEY_STOP                 0x1536
          KEY_PLAY                 0x1535
          KEY_PAUSE                0x1530
          KEY_OK                   0x0517
          KEY_UP                   0x0510
          KEY_DOWN                 0x0511
          KEY_RIGHT                0x0516
          KEY_LEFT                 0x0515
          KEY_BACK		   0x1529
          KEY_0                    0x1500
          KEY_1                    0x1501
          KEY_2                    0x1502
          KEY_3                    0x1503
          KEY_4                    0x1504
          KEY_5                    0x1505
          KEY_6                    0x1506
          KEY_7                    0x1507
          KEY_8                    0x1508
          KEY_9                    0x1509
          KEY_BACKSPACE            0x1531
      end codes

end remote

My main frustration now is that I don’t know how to use this lirc ecosystem thing and oftentimes it errors out while doing a recording session (or whatever you call it) with irrecord. Here’s an example, keys work, until they don’t:

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_VOLUMEUP

Now hold down button "KEY_VOLUMEUP".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_VOLUMEDOWN

Now hold down button "KEY_VOLUMEDOWN".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_INFO

Now hold down button "KEY_INFO".
Something went wrong: Cannot decode data
Please try again. (28 retries left)

Now hold down button "KEY_INFO".
Something went wrong: Cannot decode data
Please try again. (27 retries left)

Now hold down button "KEY_INFO".
Something went wrong: Cannot decode data
Please try again. (26 retries left)

Also, I’d like to use the existing config I pasted above (that works already with a subset of keys) to set the lirc “interpreter” in that way, and have it spit out numbers for each key I press, existing or new. This way I could add up all the missing keys to the config very fast. But these are already lirc questions, not osmc questions…