1

I do not know why this line of code crashed on some macbook pro.

pygame.display.set_mode((800,600), FULLSCREEN|DOUBLEBUF, 32)

If I remove FULLSCREEN, it runs well.

The display resolution is 1680*1050. If I set the display resolution to 800*600(stretched) it works. If I set it to be800*600, still crashes.

The crash information is:

unrecognized selector sent to instance 0x102c0b950'
*** Call stack at first throw:
(
0   CoreFoundation                      0x00007fff801d8784 __exceptionPreprocess + 180
1   libobjc.A.dylib                     0x00007fff82a40f03 objc_exception_throw + 45
2   CoreFoundation                      0x00007fff80232110 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0
3   CoreFoundation                      0x00007fff801aa8ef ___forwarding___ + 751
4   CoreFoundation                      0x00007fff801a6a38 _CF_forwarding_prep_0 + 232
5   SDL                                 0x0000000100797edf SDL_SoftStretch + 22899
6   SDL                                 0x000000010079131a SDL_Linked_Version + 242
7   SDL                                 0x000000010079c967 SDL_SemPost + 209
8   libSystem.B.dylib                   0x00007fff81d06fd6 _pthread_start + 331
9   libSystem.B.dylib                   0x00007fff81d06e89 thread_start + 13
)

terminate called after throwing an instance of 'NSException'
Abort trap
furas
  • 134,197
  • 12
  • 106
  • 148
user1558064
  • 867
  • 3
  • 12
  • 28

0 Answers0