PR# 19531 Metrics not working ... again.

Problem Report Summary
Submitter: titoui
Category: EiffelStudio
Priority: Medium
Date: 2019/03/08
Class: Bug
Severity: Serious
Number: 19531
Release: 18.11
Confidential: No
Status: Closed
Responsible:
Environment: Linux Ubuntu 64 bits fresh install
Synopsis: Metrics not working ... again.

Description
This is a similar problem that has been reported in 2016 (see report #19212). It was working great in 18.07, but not anymore in 18.11.

The metrics system is just not working. Segmentation fault all the time.

Here is the trace:

******************************** Thread exception *****************************
In thread           Root thread            0x0 (thread id)
*******************************************************************************
-------------------------------------------------------------------------------
Class / Object      Routine                Nature of exception           Effect
-------------------------------------------------------------------------------
EV_GRID_IMP         column @3              Segmentation fault:          
<000000000C768A28>  (From EV_GRID_I)       Operating system signal.      Fail
-------------------------------------------------------------------------------
EV_GRID_IMP         column @3                                           
<000000000C768A28>  (From EV_GRID_I)       Routine failure.              Fail
-------------------------------------------------------------------------------
ES_EDITOR_TOKEN_GRID
                    column @4              
<00007FB61A93AC38>  (From EV_GRID)         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_CLASS_BROWSER_DOMAIN_VIEW
                    bind_grid @8           
<00007FB61A93A3B8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_CLASS_BROWSER_DOMAIN_VIEW
                    provide_result @4      
<00007FB61A93A3B8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_CLASS_BROWSER_DOMAIN_VIEW
                    update_view @6         
<00007FB61A93A3B8>  (From EB_CLASS_BROWSER_GRID_VIEW)
                                           Routine failure.              Fail
-------------------------------------------------------------------------------
EB_CLASS_BROWSER_DOMAIN_VIEW
                    update @9              
<00007FB61A93A3B8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_METRIC_CALCULATION_RESULT_AREA
                    load_detailed_result_information @1
<00007FB60443C038>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_METRIC_CALCULATION_RESULT_AREA
                    load_metric_result @8  
<00007FB60443C038>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_METRIC_RESULT_AREA
                    update_ui @8           
<00007FB61A926058>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_METRIC_RESULT_AREA
                    on_select @1           
<00007FB61A926058>  (From EB_METRIC_PANEL) Routine failure.              Fail
-------------------------------------------------------------------------------
ES_METRICS_TOOL_PANEL
                    on_tab_change @10      
<00007FB6043B9BD8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_NOTIFY_ACTION_SEQUENCE
                    call @22               
<00007FB61A8B5AD8>  (From ACTION_SEQUENCE) Routine failure.              Fail
-------------------------------------------------------------------------------
EV_NOTIFY_ACTION_SEQUENCE
                    call @3                
<00007FB61A8B5AD8>  (From EV_LITE_ACTION_SEQUENCE)
                                           Routine failure.              Fail
-------------------------------------------------------------------------------
EV_NOTEBOOK_IMP     page_switch @4                                      
<00007FB604347148>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_GTK_CALLBACK_MARSHAL
                    on_notebook_page_switch_intermediary @3
<00007FB619FD9888>  (From EV_INTERMEDIARY_ROUTINES)
                                           Routine failure.              Fail
-------------------------------------------------------------------------------
EV_GTK_CALLBACK_MARSHAL
                    translate_and_call @3  
<00007FB619FD9888>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_GTK_CALLBACK_MARSHAL
                    marshal @9             
<00007FB619FD9888>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_NOTEBOOK_IMP     select_item @3                                      
<00007FB604347148>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_NOTEBOOK         select_item @3                                      
<00007FB6043C4038>                         Routine failure.              Fail
-------------------------------------------------------------------------------
ES_METRICS_TOOL_PANEL
                    go_to_result @3        
<00007FB6043B9BD8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_METRIC_EVALUATION_PANEL
                    on_run_metric @35      
<000000000CE945B8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_NOTIFY_ACTION_SEQUENCE
                    call @22               
<00007FB604342158>  (From ACTION_SEQUENCE) Routine failure.              Fail
-------------------------------------------------------------------------------
EV_NOTIFY_ACTION_SEQUENCE
                    call @3                
<00007FB604342158>  (From EV_LITE_ACTION_SEQUENCE)
                                           Routine failure.              Fail
-------------------------------------------------------------------------------
EV_TOOL_BAR_BUTTON_IMP
                    call_select_actions @4 
<00007FB604341F78>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_GTK_CALLBACK_MARSHAL
                    new_toolbar_item_select_actions_intermediary @7
<00007FB619FD9888>  (From EV_GTK_DEPENDENT_INTERMEDIARY_ROUTINES)
                                           Routine failure.              Fail
-------------------------------------------------------------------------------
EV_GTK_CALLBACK_MARSHAL
                    marshal @9             
<00007FB619FD9888>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_APPLICATION_IMP  process_button_event @29
<00007FB619E5D0E8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_APPLICATION_IMP  process_underlying_toolkit_event_queue @72
<00007FB619E5D0E8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_APPLICATION_IMP  process_event_queue @2                              
<00007FB619E5D0E8>  (From EV_APPLICATION_I)
                                           Routine failure.              Fail
-------------------------------------------------------------------------------
EV_APPLICATION_HANDLER
                    process_application_event_queue @1
<00007FB619FD8EC8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_APPLICATION_HANDLER
                    launch @3              
<00007FB619FD8EC8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_APPLICATION      internal_launch_application @2
<00007FB619FD8E38>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EV_APPLICATION      launch @6                                           
<00007FB619FD8E38>                         Routine failure.              Fail
-------------------------------------------------------------------------------
ES_GRAPHIC          make @4                                             
<00007FB619FD8E18>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_KERNEL           make @4                                             
<00007FB619E800A8>                         Routine failure.              Fail
-------------------------------------------------------------------------------
EB_KERNEL           root's creation                                     
<00007FB619E800A8>                         Routine failure.              Exit
-------------------------------------------------------------------------------
To Reproduce
Open a project in EiffelStudio. Open the "Metrics" pane. Pick a class from the "Group" tab and drop it in the "Setup input domain" list of the "Metric evaluation" tab. In the "Select metric" list, select any metric (for exemple "Features"->"attributes"). Press the "play" button of the "Metric evaluation" tab (the green arrow) and then: "BOOM", everything burn.
Problem Report Interactions
From:jfiat_es    Date:2019/03/11    Status: Closed    Download   
Fixed by revision 102949.
The correction will be available in the next 19.05 release (and sooner in the 19.03 beta release).