[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] draw.arc crasher



Hi,

I couldn't find an alternate place to post bugs, so here goes - if there's a better place, please let me know.

Python 2.3.0a (a larger program crashed with the same bug under 2.3.3)
Pygame 1.6

===

# crasher.py
#
# Crashes when rect exceeds the screen height (though not exactly)
# Note the excessive angles... lesser angles may not crash
# May not crash when run through IDLE
#
# Dies with message box:
#   MICROSOFT VISUAL C++ RUNTIME LIBRARY
#   Runtime Error!
#   Program: C:\PYTHON23\PYTHONW.EXE
#   abnormal program termination

import pygame

go_boom=True

def crash():
    try:
        pygame.init()
        layer = pygame.display.set_mode((800, 600))
        if go_boom:
            rect = pygame.Rect(400,300, 200, 302)
        else:
            rect = pygame.Rect(400,300, 200, 301)
        pygame.draw.arc(layer, (255, 50, 50), rect, 10, 20, 1)
    finally:
        pygame.quit()


if __name__ == '__main__':
    crash()

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm