PAM & Optimus prime - unhandled exception in when bed is "full"

Hi, I guess there's issue when "Optimus Prime" cannot find suitable space for primeline. When I have bed filled like this:
No description
8 Replies
Kmarty
Kmarty2y ago
I've got this error:
Internal error on command:"PAM"
Traceback (most recent call last):
File "/home/pi/klipper/klippy/gcode.py", line 198, in _process_commands
handler(gcmd)
File "/home/pi/klipper/klippy/gcode.py", line 135, in <lambda>
func = lambda params: origfunc(self._get_extended_params(params))
File "/home/pi/klipper/klippy/extras/pam.py", line 64, in cmd_PAM
self.set_priming_location()
File "/home/pi/klipper/klippy/extras/pam.py", line 138, in set_priming_location
self.gcode.respond_raw("Optimus Prime Location {0}".format(str(location)))
UnboundLocalError: local variable 'location' referenced before assignment
Transition to shutdown state: Internal error on command:"PAM"
Internal error on command:"PAM"
Traceback (most recent call last):
File "/home/pi/klipper/klippy/gcode.py", line 198, in _process_commands
handler(gcmd)
File "/home/pi/klipper/klippy/gcode.py", line 135, in <lambda>
func = lambda params: origfunc(self._get_extended_params(params))
File "/home/pi/klipper/klippy/extras/pam.py", line 64, in cmd_PAM
self.set_priming_location()
File "/home/pi/klipper/klippy/extras/pam.py", line 138, in set_priming_location
self.gcode.respond_raw("Optimus Prime Location {0}".format(str(location)))
UnboundLocalError: local variable 'location' referenced before assignment
Transition to shutdown state: Internal error on command:"PAM"
There's probability it is duplicate with https://discord.com/channels/582187371529764864/1100784818230403181 no issues with disabled "Optimus prime"
modern-teal
modern-teal2y ago
Yes same problem -_-
Kmarty
Kmarty2y ago
From the PAM POV, it looks like one big rectangle with no space for Optimus primeline so I believe there's only (easy) solution for this - automatic fallback to the standard RatOS primeline (probably with big warning the Optimus primeline won't be used) or something like that. Anything than unhandled exception.
miklschmidt
miklschmidt2y ago
@Helge Keck
Helge Keck
Helge Keck2y ago
will have a look could you share the exact same 3mf please
Kmarty
Kmarty2y ago
fair-rose
fair-rose2y ago
I constantly have the same on large prints that nearly fill the bed. PAM throws us a error and have to re slice without it activated
modern-teal
modern-teal2y ago
Helge Keck is probably dealing with the problem
Want results from more Discord servers?
Add your server