PR# 15026 EV_PRINTER: feature call on void target while creating
Problem Report Summary
Submitter: doenniu
Category: EiffelVision
Priority: Medium
Date: 2008/11/21
Class: Bug
Severity: Critical
Number: 15026
Release: 6.2.7.2075
Confidential: No
Status: Closed
Responsible:
Environment: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Synopsis: EV_PRINTER: feature call on void target while creating
Description
The Vision2 example edraw crashes when I try to print anything. Reason: The first line in EV_PRINTER.make_with_context (a_dc: WEL_PRINTER_DC) is 'set_default_colors', which uses 'implementation' ('implementation' is void however), and the second line is 'create_implementation'. I guess these lines should be swapped. Stack trace: Exception meaning: set_default_colors: Feature call on void target. (VOID_TARGET) Exception message: set_default_colors Exception text: ------------------------------------------------------------------------------- Class / Object Routine Nature of exception Effect ------------------------------------------------------------------------------- EV_PRINTER set_default_colors @2 set_default_colors: <000000000420E9C0> (From EV_COLORIZABLE) Feature call on void target. Fail ------------------------------------------------------------------------------- EV_PRINTER set_default_colors @2 <000000000420E9C0> (From EV_COLORIZABLE) Routine failure. Fail ------------------------------------------------------------------------------- EV_PRINTER make_with_context @2 <000000000420E9C0> Routine failure. Fail ------------------------------------------------------------------------------- EV_MODEL_PRINT_PROJECTOR_IMP make @6 <000000000420E900> Routine failure. Fail ------------------------------------------------------------------------------- EV_MODEL_PRINT_PROJECTOR create_implementation @2 <000000000420E8A0> Routine failure. Fail ------------------------------------------------------------------------------- EV_MODEL_PRINT_PROJECTOR default_create @2 <000000000420E8A0> (From EV_ANY) Routine failure. Fail ------------------------------------------------------------------------------- EV_MODEL_PRINT_PROJECTOR make_with_context @7 <000000000420E8A0> Routine failure. Fail ------------------------------------------------------------------------------- DRAWER_MAIN_WINDOW do_print @2 <00000000040D1278> Routine failure. Fail ------------------------------------------------------------------------------- PROCEDURE fast_call <000000000420B984> Routine failure. Fail ------------------------------------------------------------------------------- PROCEDURE call @3 <000000000420B984> Routine failure. Fail ------------------------------------------------------------------------------- EV_NOTIFY_ACTION_SEQUENCE call @22 <000000000420B8E8> (From ACTION_SEQUENCE) Routine failure. Fail ------------------------------------------------------------------------------- EV_NOTIFY_ACTION_SEQUENCE call @3 <000000000420B8E8> (From EV_LITE_ACTION_SEQUENCE) Routine failure. Fail ------------------------------------------------------------------------------- EV_PRINT_DIALOG_IMP show_modal_to_window @11 <000000000420B810> (From EV_STANDARD_DIALOG_IMP) Routine failure. Fail ------------------------------------------------------------------------------- EV_PRINT_DIALOG show_modal_to_window @4 <000000000420B7B0> (From EV_STANDARD_DIALOG) Routine failure. Fail ------------------------------------------------------------------------------- DRAWER_MAIN_WINDOW on_print @3 <00000000040D1278> Routine failure. Fail ------------------------------------------------------------------------------- PROCEDURE fast_call <0000000004109DF8> Routine failure. Fail ------------------------------------------------------------------------------- PROCEDURE call @3 <0000000004109DF8> Routine failure. Fail ------------------------------------------------------------------------------- EV_NOTIFY_ACTION_SEQUENCE call @22 <0000000004109D5C> (From ACTION_SEQUENCE) Routine failure. Fail ------------------------------------------------------------------------------- EV_NOTIFY_ACTION_SEQUENCE call @3 <0000000004109D5C> (From EV_LITE_ACTION_SEQUENCE) Routine failure. Fail ------------------------------------------------------------------------------- EV_MENU_ITEM_IMP on_activate @2 <0000000004109B40> Routine failure. Fail ------------------------------------------------------------------------------- EV_MENU_BAR_IMP menu_item_clicked @4 <00000000041087A8> (From EV_MENU_ITEM_LIST_IMP) Routine failure. Fail ------------------------------------------------------------------------------- EV_TITLED_WINDOW_IMP on_menu_command @4 <00000000040D12FC> (From EV_WINDOW_IMP) Routine failure. Fail ------------------------------------------------------------------------------- EV_TITLED_WINDOW_IMP on_wm_menu_command @2 <00000000040D12FC> (From WEL_COMPOSITE_WINDOW) Routine failure. Fail ------------------------------------------------------------------------------- EV_TITLED_WINDOW_IMP on_wm_command @17 <00000000040D12FC> (From WEL_COMPOSITE_WINDOW) Routine failure. Fail ------------------------------------------------------------------------------- EV_TITLED_WINDOW_IMP process_message @9 <00000000040D12FC> (From WEL_COMPOSITE_WINDOW) Routine failure. Fail ------------------------------------------------------------------------------- WEL_DISPATCHER window_procedure @10 <00000000040D0354> (From WEL_ABSTRACT_DISPATCHER) Routine failure. Fail ------------------------------------------------------------------------------- Call stack: ObjectClassRoutine ------------------ [0x4C9CE08] EV_PRINTER set_default_colors (From EV_COLORIZABLE) ( @ 2 ) [0x4C9CE08] EV_PRINTER make_with_context ( @ 2 ) [0x4C9CE10] EV_MODEL_PRINT_PROJECTOR_IMP make ( @ 6 ) [0x4C9CE14] EV_MODEL_PRINT_PROJECTOR create_implementation ( @ 2 ) [0x4C9CE14] EV_MODEL_PRINT_PROJECTOR default_create (From EV_ANY) ( @ 2 ) [0x4C9CE14] EV_MODEL_PRINT_PROJECTOR make_with_context ( @ 7 ) [0x4C9CE18] DRAWER_MAIN_WINDOW do_print <*> ( @ 2 ) [0x4C9CE1C] PROCEDURE fast_call ( @ 0 ) [0x4C9CE1C] PROCEDURE call ( @ 3 ) [0x4C9CE20] EV_NOTIFY_ACTION_SEQUENCE call (From ACTION_SEQUENCE) ( @ 22 ) [0x4C9CE20] EV_NOTIFY_ACTION_SEQUENCE call (From EV_LITE_ACTION_SEQUENCE) ( @ 3 ) [0x4C9CE24] EV_PRINT_DIALOG_IMP show_modal_to_window (From EV_STANDARD_DIALOG_IMP) ( @ 11 ) [0x4C9CE28] EV_PRINT_DIALOG show_modal_to_window (From EV_STANDARD_DIALOG) ( @ 4 ) [0x4C9CE18] DRAWER_MAIN_WINDOW on_print <*> ( @ 3 ) [0x4C9CE2C] PROCEDURE fast_call ( @ 0 ) [0x4C9CE2C] PROCEDURE call ( @ 3 ) [0x4C9CE30] EV_NOTIFY_ACTION_SEQUENCE call (From ACTION_SEQUENCE) ( @ 22 ) [0x4C9CE30] EV_NOTIFY_ACTION_SEQUENCE call (From EV_LITE_ACTION_SEQUENCE) ( @ 3 ) [0x4C9CE34] EV_MENU_ITEM_IMP on_activate ( @ 2 ) [0x4C9CE38] EV_MENU_BAR_IMP menu_item_clicked (From EV_MENU_ITEM_LIST_IMP) ( @ 4 ) [0x4C9CE3C] EV_TITLED_WINDOW_IMP on_menu_command (From EV_WINDOW_IMP) ( @ 4 ) [0x4C9CE3C] EV_TITLED_WINDOW_IMP on_wm_menu_command (From WEL_COMPOSITE_WINDOW) ( @ 2 ) [0x4C9CE3C] EV_TITLED_WINDOW_IMP on_wm_command (From WEL_COMPOSITE_WINDOW) ( @ 17 ) [0x4C9CE3C] EV_TITLED_WINDOW_IMP process_message (From WEL_COMPOSITE_WINDOW) ( @ 9 ) [0x4C9CE40] WEL_DISPATCHER window_procedure (From WEL_ABSTRACT_DISPATCHER) <R> ( @ 10 ) [0x4C9CE44] WEL_MSG cwin_dispatch_message ( @ 0 ) [0x4C9CE44] WEL_MSG dispatch ( @ 1 ) [0x4C9CE48] EV_APPLICATION_IMP process_window_message ( @ 14 ) [0x4C9CE48] EV_APPLICATION_IMP process_message ( @ 11 ) [0x4C9CE48] EV_APPLICATION_IMP process_underlying_toolkit_event_queue ( @ 7 ) [0x4C9CE48] EV_APPLICATION_IMP process_event_queue (From EV_APPLICATION_I) <R> ( @ 2 ) [0x4C9CE48] EV_APPLICATION_IMP launch (From EV_APPLICATION_I) ( @ 3 ) [0x4C9CE4C] APPLICATION launch (From EV_APPLICATION) <R> ( @ 4 ) [0x4C9CE4C] APPLICATION make_and_launch <*> ( @ 3 )
To Reproduce
Run the edraw Vision2 example and try to print (print dialog pops up, application crashes after clicking ok)
Problem Report Interactions
Thank you for your report/contribution. This issue is now fixed by revision rev#75838