INTI-CMNB / kicad_auto_test

KiCad on Debian + automation + test tools used to test kicad_auto
Apache License 2.0
1 stars 1 forks source link

[BUG] Blender output does not create a PNG #1

Closed Informaticore closed 1 year ago

Informaticore commented 1 year ago

Describe the bug Render Blender PNG is missing. In my yaml file I am using:

outputs:
  - name: 'Blender 3D Image'
    type: 'blender_export'
    dir: 'Generated/render'
    options:
      point_of_view:
        rotate_x: 45
        rotate_y: 45
        rotate_z: 75
      pcb3d:
        download: true
      render_options:
        samples: 100
        transparent_background: true
      outputs:
        type: render

the container I am using is: container: ghcr.io/inti-cmnb/kicad7_auto_full:latest

I have not touched the config since a while and with my commit some time ago it was generating that PNG

This job was running 3 weeks ago and the PNG was created: https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/5831095589

With this job today it did not generate the PNG: https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210

Informaticore commented 1 year ago

@set-soft what else do you need? the output which is supposed to generate a PNG is not generating a PNG anymore. The project is there, what else can I tell you?

this is the yaml: https://github.com/open-thngs/so-dimm-esp32-cm/blob/main/esp-cm3.kibot.yaml this is the action: https://github.com/open-thngs/so-dimm-esp32-cm/blob/main/.github/workflows/kibot.yml

set-soft commented 1 year ago

I'll try to look at your files later, you can provide the debug output, if Blender is failing you'll see the Blender error there.

Informaticore commented 1 year ago

This is the output from the action:

Run kibot -b "pcb/so-dimm-esp3[2](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:2)-cm.kicad_pcb"
  kibot -b "pcb/so-dimm-esp32-cm.kicad_pcb"
  shell: sh -e {0}
Using config file: esp-cm[3](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:3).kibot.yaml
- Updating BoM in XML format
WARNING:(W058) Missing KiCad main config file /github/home/.config/kicad/7.0/kicad_common.json (eeschema_do - misc.py:200) (kibot - kiplot.py:132)
- Running the ERC
WARNING:(W058) [4](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:5) ERC warnings detected (eeschema_do - eeschema_do:986) (kibot - kiplot.py:132)
WARNING:(W0[5](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:6)8) (multiple_net_names) Both +3V3 and E2_A0 are attached to the same items; +3V3 will be used in the netlist
    @(140.9700 mm, 100.3300 mm): Symbol #PWR0128 Hidden pin 1 [+3V3, Power input, Line]
    @(180.3400 mm, 119.3800 mm): Label 'E2_A0' (eeschema_do.kiauto.file_util - file_util.py:153) (kibot - kiplot.py:132)
WARNING:(W058) (multiple_net_names) Both GND and E2_A1 are attached to the same items; GND will be used in the netlist
    @(190.5000 mm, 127.0000 mm): Symbol #PWR0121 Hidden pin 1 [GND, Power input, Line]
    @(180.3400 mm, 121.9200 mm): Label 'E2_A1' (eeschema_do.kiauto.file_util - file_util.py:153) (kibot - kiplot.py:132)
WARNING:(W058) (lib_symbol_issues) The current configuration does not include the library 'PCM_Espressif'
    @(207.0100 mm, 73.[6](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:7)600 mm): Symbol U2 [ESP32-S2-SOLO] (eeschema_do.kiauto.file_util - file_util.py:153) (kibot - kiplot.py:132)
WARNING:(W058) (multiple_net_names) Both EN and ESP_EN{slash}CM_RUN are attached to the same items; EN will be used in the netlist
    @(120.6500 mm, [7](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:8)3.6600 mm): Label 'EN'
    @(40.6400 mm, 67.3100 mm): Hierarchical Label 'ESP_EN/CM_RUN' (eeschema_do.kiauto.file_util - file_util.py:153) (kibot - kiplot.py:132)
WARNING:(W009) KiCad config without environment.vars section (kibot - config.py:356)
WARNING:(W010) Unable to find KiCad 3D models (kibot - config.py:431)
- Running the DRC
WARNING:(W05[8](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:9)) Retrying KiCad exit (pcbnew_do - interposer.py:607) (kibot - kiplot.py:132)
ERROR:Can't exit KiCad (pcbnew_do - interposer.py:604) (kibot - kiplot.py:12[9](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:10))
- '' (Blender 3D Image) [blender_export]
ERROR:Unable to expand `KICAD6_3DMODEL_DIR` in `${KICAD6_3DMODEL_DIR}/Capacitor_SMD.3dshapes/C_0603_1608Metric.wrl` (kibot - config.py:113)
WARNING:(W098)  5 3D models downloaded or cached (kibot - out_base_3d.py:516)
- '' (Gerber Files) [gerber]
- '' (Gerber Drill Files) [gerb_drill]
- '' (iBOM) [ibom]
- 'Bill of Materials in CSV format' (bom_csv) [bom]
- '' (Schematics) [pdf_sch_print]
- '' (Pick and Place) [position]
- '' (3D STEP) [step]
Found [10](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:11) unique warning/s ([12](https://github.com/open-thngs/so-dimm-esp32-cm/actions/runs/6047189057/job/16410157210#step:4:13) total)

There is one error: ERROR:Unable to expand KICAD6_3DMODEL_DIR in ${KICAD6_3DMODEL_DIR}/Capacitor_SMD.3dshapes/C_0603_1608Metric.wrl (kibot - config.py:113) but in a different issue I think you described this as not an issue if I am correct.

set-soft commented 1 year ago

Hi @Informaticore ! In order to get the debug information you must use -v, or -vvvv for even more details. I think I found the problem, while I find a solution you can try changing latest by dev (1.6.4 development) or 1.6.3-1_k7.0.5.1_d11.6_b3.4 (1.6.3 release using KiCad 7.0.5 and Blender 3.4, assuming your project can be loaded by KiCad 7.0.5). The problem seems to be related to the pcb2blender upgrade.

Informaticore commented 1 year ago

Hi @Informaticore ! In order to get the debug information you must use -v, or -vvvv for even more details. I think I found the problem, while I find a solution you can try changing latest by dev (1.6.4 development) or 1.6.3-1_k7.0.5.1_d11.6_b3.4 (1.6.3 release using KiCad 7.0.5 and Blender 3.4, assuming your project can be loaded by KiCad 7.0.5). The problem seems to be related to the pcb2blender upgrade.

KiCad 7.0.5 should work just fine, I am using 7.0.6 currently. I changed it to dev and it took a while (14min compared to 2) but I guess thats fine and might be related to actually render the things. Now it created the PNG

set-soft commented 1 year ago

Yes, the render for your board is slow. Most probably because of the ESP32 module.

set-soft commented 1 year ago

Ok, now latest should work.

I'm moving this issue to kicad_auto_test because this isn't a problem on KiBot, but in the versions mixed inside the docker images (v1.6.3 doesn't support pcb2blender 2.6 without a small patch, the author renamed a parameter)

set-soft commented 1 year ago

The 2d7a7395a31fd5e6a5a95c00e3f55a6f93d9c7b9 and 91a84f037ce15db73cc4ad4fb9d6cd2b5f761adf commits patches v1.6.3 to work with pcb2blender 2.6