[Pyobjc-dev] [ pyobjc-Bugs-700076 ] Crash instead of exception
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2003-03-08 20:41:30
|
Bugs item #700076, was opened at 2003-03-08 21:52 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=700076&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Just van Rossum (jvr) Assigned to: Nobody/Anonymous (nobody) Summary: Crash instead of exception Initial Comment: The following snippet crashes: from AppKit import NSBitmapImageRep im = NSBitmapImageRep.alloc().init() Sure, NSBitmapImageRep doesn't have an init() method, but still... The output is: 2003-03-08 21:38:15.498 python2.3[2740] *** -[NSBitmapImageRep init]: selector not recognized 2003-03-08 21:38:15.500 python2.3[2740] *** -[NSBitmapImageRep init]: selector not recognized 2003-03-08 21:38:15.504 python2.3[2740] *** Uncaught exception: <NSInvalidArgumentException> *** -[NSBitmapImageRep init]: selector not recognized Trace/BPT trap Here's the trace: Date/Time: 2003-03-08 21:38:16 +0100 OS Version: 10.2.3 (Build 6G30) Host: python.xs4all.nl Command: python2.3 PID: 2740 Exception: EXC_BREAKPOINT (0x0006) Code[0]: 0x00000001Code[1]: 0x90844988 Thread 0 Crashed: #0 0x90844988 in _NSRaiseError #1 0x90844810 in +[NSException raise:format:] #2 0x93244e00 in -[NSBitmapImageRep init] #3 0x0058a264 in object_dealloc (objc-object.m:178) #4 0x00024408 in subtype_dealloc (typeobject.c:692) #5 0x0058bf74 in sel_dealloc (selector.m:362) #6 0x0007eb28 in call_function (ceval.c:3388) #7 0x0007c5ac in eval_frame (ceval.c:2056) #8 0x0007d8c0 in PyEval_EvalCodeEx (ceval.c:2602) #9 0x0008072c in PyEval_EvalCode (ceval.c:535) #10 0x0000c07c in run_node (pythonrun.c:1134) #11 0x0000b828 in PyRun_SimpleFileExFlags (pythonrun.c:745) #12 0x00006344 in Py_Main (main.c:412) #13 0x00001f1c in _start (crt.c:267) #14 0x00001d9c in start PPC Thread State: srr0: 0x90844988 srr1: 0x0002f030 vrsave: 0x00000000 xer: 0x00000000 lr: 0x90844964 ctr: 0x907e4270 mq: 0x00000000 r0: 0x00000000 r1: 0xbffff770 r2: 0x2400424e r3: 0xa07ed3b8 r4: 0x9068d51c r5: 0x20000000 r6: 0xbffff450 r7: 0x00000000 r8: 0x00390010 r9: 0xa07e0294 r10: 0x00000001 r11: 0x00000000 r12: 0x2400424e r13: 0x003b5abc r14: 0x0046d4b0 r15: 0x000ea298 r16: 0x00000000 r17: 0x00000000 r18: 0x0007a594 r19: 0x00000000 r20: 0x0007a298 r21: 0x000f4170 r22: 0x00024160 r23: 0x000ecf98 r24: 0x000ecf98 r25: 0x00000008 r26: 0x00440ad0 r27: 0x0044bf50 r28: 0x00bd0ac0 r29: 0x00396b10 r30: 0xbffff880 r31: 0x908448a8 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=700076&group_id=14534 |