[erlang-bugs] R15B observer crash while clicking on 'Table information'

PAILLEAU Eric <>
Wed Dec 28 23:01:33 CET 2011


Hello,

I was playing with the new observer application on R15B .

Tab 'Table Viewer', then Menu->View->Mnesia Tables

By clicking on a particular table that is perfectly working , I got a
crash like below :

---------8<------------------------------------------------------
Erlang R15B (erts-5.9) [source] [smp:2:2] [async-threads:0] [hipe]
[kernel-poll:false]

Child crashed exiting:  <0.141.0> {function_clause,
                                   [{observer_tv_wx,list_to_strings,
                                     [5],

[{file,"observer_tv_wx.erl"},{line,314}]},
                                    {observer_tv_wx,list_to_strings,1,


[{file,"observer_tv_wx.erl"},{line,317}]},

{observer_tv_wx,display_table_info,4,

[{file,"observer_tv_wx.erl"},{line,295}]},
                                    {observer_tv_table,handle_event,2,

                                     [{file,"observer_tv_table.erl"},

                                      {line,369}]},

                                    {wx_object,handle_msg,5,


[{file,"wx_object.erl"},{line,394}]},
                                    {proc_lib,init_p_do_apply,3,


[{file,"proc_lib.erl"},{line,227}]}]}
5>

=ERROR REPORT==== 28-Dec-2011::22:40:37 ===

** wx object server <0.144.0> terminating

** Last message in was {wx,400,

                           {wx_ref,267,wxFrame,[]},

                           [],

                           {wxCommand,command_menu_selected,[],0,0}}

** When Server state == {state,

                            {wx_ref,218,wxListCtrl,[]},

                            {wx_ref,267,wxFrame,[]},

                            {wx_ref,293,wxListCtrl,[]},

                            {wx_ref,284,wxStatusBar,[]},
                            {wx_ref,292,wxBoxSizer,[]},
                            {search,true,
                                {wx_ref,294,wxBoxSizer,[]},
                                'Search Area',
                                {wx_ref,297,wxTextCtrl,[]},
                                {wx_ref,308,wxTextCtrl,[]},
                                {{wx_ref,299,wxRadioButton,[]},
                                 {wx_ref,301,wxRadioButton,[]},
                                 {wx_ref,303,wxCheckBox,[]}},
                                undefined},
                            ,10,<0.145.0>,mnesia,
                            {tab,my_test_table,ignore,9,4208,<0.67.0>,

mnesia_monitor,public,set,2,none,false,false,
                                disc_copies,
                                [4,5]},
                            {attrs,
                                {wx_ref,286,wxListItemAttr,[]},
                                {wx_ref,287,wxListItemAttr,[]},
                                {wx_ref,288,wxListItemAttr,[]},
                                {wx_ref,289,wxListItemAttr,[]},
                                {wx_ref,290,wxListItemAttr,[]}},
                            undefined}
** Reason for termination ==
** {function_clause,
       [{observer_tv_wx,list_to_strings,
            [5],
            [{file,"observer_tv_wx.erl"},{line,314}]},
        {observer_tv_wx,list_to_strings,1,
            [{file,"observer_tv_wx.erl"},{line,317}]},
        {observer_tv_wx,display_table_info,4,
            [{file,"observer_tv_wx.erl"},{line,295}]},
        {observer_tv_table,handle_event,2,
            [{file,"observer_tv_table.erl"},{line,369}]},
        {wx_object,handle_msg,5,[{file,"wx_object.erl"},{line,394}]},
        {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}

---------8<-----------------------------------------------------

The table is containing a column with strings that are displayed as
lists instead of readable string (like tv), that is not very useful
to see the table content...
Moreover the error is likely a 'list_to_strings' one but other
tables are containing columns with strings without this behaviour...
the lonely difference with other tables is a column with a binary string
made of an erlang:md5 hash and two other columns with records into it.

Best regards.






More information about the erlang-bugs mailing list