marcolivierarsenault / moonraker-home-assistant

Home Assistant integration for Moonraker, Klipper and Mainsail
https://moonraker-home-assistant.readthedocs.io
MIT License
265 stars 28 forks source link

LOTS of log messages #283

Closed chelming closed 7 months ago

chelming commented 9 months ago

Version of the moonraker integration

1.1.0

Describe your setup

Cura, Klipper, Moonraker, Mainsail

Describe the bug

Logs are full of JSON dumps. 1,800+ occurrences since yesterday.

Moonraker Logs

This error originated from a custom integration.

Logger: custom_components.moonraker
Source: custom_components/moonraker/__init__.py:222
Integration: Moonraker (documentation, issues)
First occurred: February 19, 2024 at 11:12:08 PM (1800 occurrences)
Last logged: 2:11:42 PM

gcode {{'size': 580124, 'modified': 1708374710.238283, 'uuid': 'e7c12585-0b99-4d2f-9ba5-1e3b820fd1ba', 'slicer': 'Cura', 'slicer_version': '5.5.0', 'gcode_start_byte': 235, 'gcode_end_byte': 579243, 'layer_count': 18, 'object_height': 3.6, 'estimated_time': 2113.0, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 200.0, 'first_layer_bed_temp': 60.0, 'filament_total': 1525.5, 'print_start_time': 1708393343.1803148, 'job_id': '00001C', 'filename': 'CE3S1_tagreader sandwich 2 color lid.gcode'}}
gcode {{'size': 1099471, 'modified': 1708369667.4296691, 'uuid': '94e445ce-3a79-4499-9e8a-d75f8649f19d', 'slicer': 'Cura', 'slicer_version': '5.5.0', 'gcode_start_byte': 224, 'gcode_end_byte': 1098663, 'layer_count': 68, 'object_height': 13.6, 'estimated_time': 3490.0, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 210.0, 'first_layer_bed_temp': 60.0, 'filament_total': 2604.5600000000004, 'print_start_time': 1708434358.9717994, 'job_id': '00001D', 'filename': 'CE3S1_sandwich-updated.gcode'}}
gcode {{'size': 1099471, 'modified': 1708369667.4296691, 'uuid': '94e445ce-3a79-4499-9e8a-d75f8649f19d', 'slicer': 'Cura', 'slicer_version': '5.5.0', 'gcode_start_byte': 224, 'gcode_end_byte': 1098663, 'layer_count': 68, 'object_height': 13.6, 'estimated_time': 3490.0, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 210.0, 'first_layer_bed_temp': 60.0, 'filament_total': 2604.5600000000004, 'print_start_time': 1708443036.8973012, 'job_id': '00001E', 'filename': 'CE3S1_sandwich-updated.gcode'}}
This error originated from a custom integration.

Logger: custom_components.moonraker
Source: custom_components/moonraker/__init__.py:221
Integration: Moonraker (documentation, issues)
First occurred: February 19, 2024 at 11:12:08 PM (1800 occurrences)
Last logged: 2:11:42 PM

Query Object {{'filename': 'CE3S1_tagreader sandwich 2 color lid.gcode'}}
Query Object {{'filename': 'CE3S1_sandwich-updated.gcode'}}
This error originated from a custom integration.

Logger: custom_components.moonraker
Source: custom_components/moonraker/__init__.py:220
Integration: Moonraker (documentation, issues)
First occurred: February 19, 2024 at 11:12:08 PM (1800 occurrences)
Last logged: 2:11:42 PM

failed to get thumbnails {'thumbnails'}
poudenes commented 9 months ago

I have also lots of log lines:

Version 1.1.1

2024-02-23 10:48:54.434 ERROR (MainThread) [custom_components.moonraker] Query Object {{'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:48:54.435 ERROR (MainThread) [custom_components.moonraker] gcode {{'size': 3029142, 'modified': 1708671453.8888667, 'uuid': '08e9d5c3-cdc4-49e8-bf09-8d002669e37b', 'slicer': 'SuperSlicer', 'slicer_version': '2.5.59.8', 'gcode_start_byte': 599, 'gcode_end_byte': 3012139, 'layer_count': 245, 'object_height': 31.6, 'estimated_time': 10486, 'nozzle_diameter': 0.4, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 195.0, 'first_layer_bed_temp': 51.0, 'chamber_temp': 0.0, 'filament_name': 'Custom_Settings', 'filament_type': 'PLA', 'filament_total': 8610.64, 'filament_weight_total': 25.68, 'print_start_time': 1708671459.958588, 'job_id': '000025', 'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:49:24.499 ERROR (MainThread) [custom_components.moonraker] failed to get thumbnails  {'thumbnails'}
2024-02-23 10:49:24.500 ERROR (MainThread) [custom_components.moonraker] Query Object {{'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:49:24.500 ERROR (MainThread) [custom_components.moonraker] gcode {{'size': 3029142, 'modified': 1708671453.8888667, 'uuid': '08e9d5c3-cdc4-49e8-bf09-8d002669e37b', 'slicer': 'SuperSlicer', 'slicer_version': '2.5.59.8', 'gcode_start_byte': 599, 'gcode_end_byte': 3012139, 'layer_count': 245, 'object_height': 31.6, 'estimated_time': 10486, 'nozzle_diameter': 0.4, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 195.0, 'first_layer_bed_temp': 51.0, 'chamber_temp': 0.0, 'filament_name': 'Custom_Settings', 'filament_type': 'PLA', 'filament_total': 8610.64, 'filament_weight_total': 25.68, 'print_start_time': 1708671459.958588, 'job_id': '000025', 'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:49:54.586 ERROR (MainThread) [custom_components.moonraker] failed to get thumbnails  {'thumbnails'}
2024-02-23 10:49:54.587 ERROR (MainThread) [custom_components.moonraker] Query Object {{'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:49:54.587 ERROR (MainThread) [custom_components.moonraker] gcode {{'size': 3029142, 'modified': 1708671453.8888667, 'uuid': '08e9d5c3-cdc4-49e8-bf09-8d002669e37b', 'slicer': 'SuperSlicer', 'slicer_version': '2.5.59.8', 'gcode_start_byte': 599, 'gcode_end_byte': 3012139, 'layer_count': 245, 'object_height': 31.6, 'estimated_time': 10486, 'nozzle_diameter': 0.4, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 195.0, 'first_layer_bed_temp': 51.0, 'chamber_temp': 0.0, 'filament_name': 'Custom_Settings', 'filament_type': 'PLA', 'filament_total': 8610.64, 'filament_weight_total': 25.68, 'print_start_time': 1708671459.958588, 'job_id': '000025', 'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:50:24.432 ERROR (MainThread) [custom_components.moonraker] failed to get thumbnails  {'thumbnails'}
2024-02-23 10:50:24.433 ERROR (MainThread) [custom_components.moonraker] Query Object {{'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:50:24.433 ERROR (MainThread) [custom_components.moonraker] gcode {{'size': 3029142, 'modified': 1708671453.8888667, 'uuid': '08e9d5c3-cdc4-49e8-bf09-8d002669e37b', 'slicer': 'SuperSlicer', 'slicer_version': '2.5.59.8', 'gcode_start_byte': 599, 'gcode_end_byte': 3012139, 'layer_count': 245, 'object_height': 31.6, 'estimated_time': 10486, 'nozzle_diameter': 0.4, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 195.0, 'first_layer_bed_temp': 51.0, 'chamber_temp': 0.0, 'filament_name': 'Custom_Settings', 'filament_type': 'PLA', 'filament_total': 8610.64, 'filament_weight_total': 25.68, 'print_start_time': 1708671459.958588, 'job_id': '000025', 'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:50:54.508 ERROR (MainThread) [custom_components.moonraker] failed to get thumbnails  {'thumbnails'}
2024-02-23 10:50:54.509 ERROR (MainThread) [custom_components.moonraker] Query Object {{'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
2024-02-23 10:50:54.510 ERROR (MainThread) [custom_components.moonraker] gcode {{'size': 3029142, 'modified': 1708671453.8888667, 'uuid': '08e9d5c3-cdc4-49e8-bf09-8d002669e37b', 'slicer': 'SuperSlicer', 'slicer_version': '2.5.59.8', 'gcode_start_byte': 599, 'gcode_end_byte': 3012139, 'layer_count': 245, 'object_height': 31.6, 'estimated_time': 10486, 'nozzle_diameter': 0.4, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 195.0, 'first_layer_bed_temp': 51.0, 'chamber_temp': 0.0, 'filament_name': 'Custom_Settings', 'filament_type': 'PLA', 'filament_total': 8610.64, 'filament_weight_total': 25.68, 'print_start_time': 1708671459.958588, 'job_id': '000025', 'filename': 'rpi4-mount_2h55m_0.20mm_205C_PLA_ENDER3.gcode'}}
marcolivierarsenault commented 9 months ago

Yeah looks like the thumbnail is not compatible with the default format of SuperSlicer

chelming commented 9 months ago

holler if you want me to test anything (patches or modifying code) or provide any more info

marcolivierarsenault commented 8 months ago

can you try #308

chelming commented 6 months ago

Hey @marcolivierarsenault. Some of the log messages have started showing up again. Do you want me to create a new issue for those? Looks like it's happening about twice a minute. I would guess that it's the parens but I have some other gcode that also has parens and those don't seem to be throwing an error.

This error originated from a custom integration.

Logger: custom_components.moonraker
Source: custom_components/moonraker/__init__.py:225
integration: Moonraker (documentation, issues)
First occurred: 9:20:51 AM (16 occurrences)
Last logged: 9:28:21 AM

gcode {{'size': 1040540, 'modified': 1715367589.9919448, 'uuid': '41399270-2c10-4d99-a4dc-f1e45afa5a5f', 'slicer': 'Cura', 'slicer_version': '5.5.0', 'gcode_start_byte': 237, 'gcode_end_byte': 1039658, 'layer_count': 85, 'object_height': 17.0, 'estimated_time': 2417.0, 'layer_height': 0.2, 'first_layer_height': 0.2, 'first_layer_extr_temp': 200.0, 'first_layer_bed_temp': 60.0, 'filament_total': 1255.47, 'print_start_time': 1715367590.1246657, 'job_id': '000038', 'filename': 'CE3S1_Presence case (3).gcode'}}
This error originated from a custom integration.

Logger: custom_components.moonraker
Source: custom_components/moonraker/__init__.py:224
integration: Moonraker (documentation, issues)
First occurred: 9:20:51 AM (16 occurrences)
Last logged: 9:28:21 AM

Query Object {{'filename': 'CE3S1_Presence case (3).gcode'}}
This error originated from a custom integration.

Logger: custom_components.moonraker
Source: custom_components/moonraker/__init__.py:223
integration: Moonraker (documentation, issues)
First occurred: 9:20:51 AM (19 occurrences)
Last logged: 9:29:51 AM

failed to get thumbnails {'thumbnails'}
chelming commented 6 months ago

image