I get Error 022 only on real hardware, how can i fix this?

when i try this project on my pybadge about after the logo fades in the pybadge crashes with error “022”

this looks like a bug in the pxt-blur extension. when you pass in 0 for the pixel size here:

image

you’re causing it to try and allocate an image that’s too big. You can fix it by passing 1 instead of 0

@Kiwiphoenix364 you should probably limit the images you allocate to the screen size as a maximum!

1 Like

Yeah, I’ll have to fix that (limit pixel size to 1 or higher or else not do anything) as well as putting variables in classes so the zoom and blur extensions don’t conflict! A fix should be up within the next few days!

1 Like

ohh okay, i was able to fix it i dont remember how though

I got this error as well, but all i have is the hummingbird, servo’s and record exstention, im using the Servo extention for the humming bird external speaker to buzz

1 Like

@Luke51632-OFFICAL can you share a link to the project that’s giving you the error?