Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing 渲染时若 BPM 过高可能会导致崩溃 #1

Closed
JoinChang opened this issue May 23, 2023 · 1 comment
Closed

Timing 渲染时若 BPM 过高可能会导致崩溃 #1

JoinChang opened this issue May 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@JoinChang
Copy link

测试报错语句:

timing(19058,255000.00,3.00);

报错内容:

Traceback (most recent call last):
  ...
  File "...\render.py", line 162, in __init__
    self._render()
  File "...\render.py", line 171, in _render
    self._draw_variable_speed_layer()
  File "...\render.py", line 253, in _draw_variable_speed_layer
    draw.rectangle(
  File "C:\Users\Lxns\AppData\Roaming\Python\Python311\site-packages\PIL\ImageDraw.py", line 294, in rectangle
    self.draw.draw_rectangle(xy, fill, 1)
ValueError: y1 must be greater than or equal to y0
@JoinChang JoinChang added the bug Something isn't working label May 23, 2023
@zhanbao2000
Copy link
Member

Pillow 9.5.0 中新增了对 ImageDraw 的坐标顺序限制,参考:

Raise an error if ImageDraw co-ordinates are incorrectly ordered

已于 3deb383 修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants