/home/finlay/programming/InfiniTime/node_modules/lv_img_conv/lib/image-q/utils/point.ts:85
this.r = point.r;
^
TypeError: Cannot read properties of undefined (reading 'r')
at Point.from (/home/finlay/programming/InfiniTime/node_modules/lv_img_conv/lib/image-q/utils/point.ts:85:20)
at ErrorDiffusionArray.<anonymous> (/home/finlay/programming/InfiniTime/node_modules/lv_img_conv/lib/image-q/image/array.ts:128:15)
at step (/home/finlay/programming/InfiniTime/node_modules/lv_img_conv/lib/image-q/image/array.ts:205:23)
at Object.next (/home/finlay/programming/InfiniTime/node_modules/lv_img_conv/lib/image-q/image/array.ts:146:20)
at Immediate.next (/home/finlay/programming/InfiniTime/node_modules/lv_img_conv/lib/image-q/basicAPI.ts:163:33)
at processImmediate (node:internal/timers:478:21)
Traceback (most recent call last):
File "/home/finlay/programming/InfiniTime/src/resources/generate-img.py", line 56, in <module>
main()
File "/home/finlay/programming/InfiniTime/src/resources/generate-img.py", line 51, in main
subprocess.check_call(line)
File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/finlay/programming/InfiniTime/node_modules/.bin/lv_img_conv', '/home/finlay/programming/InfiniTime/src/resources/images/navigation1.png', '--force', '--output-file', 'navigation1.bin', '--color-format', 'CF_INDEXED_1_BIT', '--output-format', 'bin', '--binary-format', 'ARGB8565_RBSWAP']' returned non-zero exit status 1.
Verification
What happened?
Since 44d1798, the build breaks when using a version of
@swc/corenewer than 1.3.39.What should happen instead?
No response
Reproduction steps
lv_font_conv,lv_img_convand@swc/core.click to show error
More details?
As a temporary solution, I've updated my pull request #1764 to pin
@swc/coreto version 1.3.39.The issue seems to be caused by the use of the CF_INDEXED_1_BIT colour format. It is most likely an issue with
lv_img_conv.Version
main
Companion app
No response