adamws/keyboard-tools

Unable to load the website after generating a layout

Closed this issue · 4 comments

mrwm commented

I made a long layout located in this gist, and was able to upload it to the website, but it timed out and gave an error saying something along the lines of being unable to receive build status of the project.

Attempting to reload brings up this error in firefox:
mrwm commented

I just tried again, and this error occurs

Traceback (most recent call last):
File "/kicad/src/tasks.py", line 71, in generate_kicad_project
log_path = kicad.new_pcb(task_id, task_request, __update_percentage)
File "/kicad/src/kicad.py", line 280, in new_pcb
generate_pcb_file(project_full_path, project_name)
File "/kicad/src/kicad.py", line 122, in generate_pcb_file
raise Exception(f"Generate .kicad_pcb from netlist failed: details: {log}")
Exception: Generate .kicad_pcb from netlist failed: details: ./kicad/pcbnew/action_plugin.cpp(163): assert "PgmOrNull()" failed in register_action().
Unable to find footprint Stabilizer_Cherry_MX_2u in /kicad/e57f1ae3-3e5d-421e-866b-2b0dc980e875/keyboard/libs/keyswitch-kicad-library/footprints/Mounting_Keyboard_Stabilizer.pretty
Unable to find footprint Stabilizer_Cherry_MX_2u in /kicad/e57f1ae3-3e5d-421e-866b-2b0dc980e875/keyboard/libs/keyswitch-kicad-library/footprints/Mounting_Keyboard_Stabilizer.pretty
Unable to find footprint Stabilizer_Cherry_MX_2u in /kicad/e57f1ae3-3e5d-421e-866b-2b0dc980e875/keyboard/libs/keyswitch-kicad-library/footprints/Mounting_Keyboard_Stabilizer.pretty
Unable to find footprint Stabilizer_Cherry_MX_2u in /kicad/e57f1ae3-3e5d-421e-866b-2b0dc980e875/keyboard/libs/keyswitch-kicad-library/footprints/Mounting_Keyboard_Stabilizer.pretty
Unable to find footprint Stabilizer_Cherry_MX_2u in /kicad/e57f1ae3-3e5d-421e-866b-2b0dc980e875/keyboard/libs/keyswitch-kicad-library/footprints/Mounting_Keyboard_Stabilizer.pretty
Unable to find footprint Stabilizer_Cherry_MX_6u in /kicad/e57f1ae3-3e5d-421e-866b-2b0dc980e875/keyboard/libs/keyswitch-kicad-library/footprints/Mounting_Keyboard_Stabilizer.pretty

This is with the following options and using the layout in the gist linked above:

  • Matrix: Automatic
  • Footprints: MX
  • Routing: Full / Disabled (Both make the same error)
  • Controller circuit: None

  • After playing around with the options a bit, the error above only occurs when I try to use MX footprints by itself. There's no issue with using Alp and Alp/MX hybrid.
  • The issue on my first comment, only happens when I try to upload a long layout. It does not happen with the preset 60% layouts and such on the keyboard editor. However, I didn't play around with the footprint options in this testing, so I'm not sure if there's a correlation with the layout and footprint erroring out.
adamws commented

thank you for reporting, based on the log it is related to #10 issue
something is definitively buggy, I will have a look in my spare time

adamws commented

@mrwm Give it a try now, I just deployed v0.3

There were two problems you encountered:

  • wrong stabilizer footprint name for MX switches (6fa7c87)
  • poor performance. Some big layouts could hog server. I'm running this on 1CPU 1GB RAM machine. I found out that one of the dependencies were consuming a lot of resources - in worst case scenario it could even crash server. It should be better now (2186925)

I've run your layout (from first message) and it succeed.
It would fail if you try to use Controller circuit: ATmega32U4 option but that is an issue for another day.

mrwm commented

I just tried it out, and I don't see any errors anymore. I didn't realize that long layouts could become a form of stress test, haha 😅