Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UITABLE Crashes Matlab when cell is edited

17 views
Skip to first unread message

Andrew Colhoun

unread,
Sep 5, 2012, 5:41:07 AM9/5/12
to
Hi,

I'm creating a blank table in a gui that I want the user to populate. I then want to be able to read the user data and use elsewhere.

The PROBLEM occurs when I am running the gui and attempt to fill a cell. It allows me to type in whatever, but when I click away from the active cell I get the system error message beneath the code sample below.

Any help would be much appreciated.

Andrew

****CODE SAMPLE *********************************
dat=[];
cnames={'Name','TVDss','TVD bml','X Position','Ages (Ma)',...
'Thickness (m)','Deposition Time','Min sed Rate (m/Ma)'};
rnames={'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15'};
Form_Tops= uitable('Parent',TabHandles{2,1},'Units','pixels',...
'Data',dat,'ColumnName',cnames,'RowName',rnames,...
'Position',[PanelWidth/6 3*PanelHeight/5 2*PanelWidth/3,... PanelHeight/4],'Backgroundcolor',White,...
'columneditable',true,'CellEditCallback',@FormEdit);
col=PanelWidth/12;
set(Form_Tops,'ColumnWidth',{col col col col col col col col});

% callback for formation top table - currently blank
function FormEdit(~,~)
end

****ERROR MESSAGE******************************
MATLAB crash file:/home/andrew.colhoun/matlab_crash_dump.17239:


------------------------------------------------------------------------
Segmentation violation detected at Wed Sep 5 10:27:24 2012
------------------------------------------------------------------------

Configuration:
MATLAB Version: 7.10.0.499 (R2010a)
MATLAB License: 642644
Operating System: Linux 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64
GNU C Library: 2.5 stable
Window System: The X.Org Foundation (70101000), display :0.0
Current Visual: 0x21 (class 4, depth 24)
Processor ID: x86 Family 6 Model 12 Stepping 2, GenuineIntel
Virtual Machine: Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Default Encoding: ISO-8859-1

Fault Count: 1

Register State:
rax = 0000000000000000 rbx = 0000000000000000
rcx = 00002aaacc694f20 rdx = 00002aaacc57ac90
rbp = 000000004219dea0 rsi = 0000000000000000
rdi = 00002aaacc694f20 rsp = 000000004219de80
r8 = 0000000000000000 r9 = 0000000000000000
r10 = 0000ffffffffffff r11 = 00002b85eccb9650
r12 = 0000000000000000 r13 = 0000000000000000
r14 = 00002aaacc69ff08 r15 = 00002aaad8b5bc30
rip = 00002b85f29c26d6 flg = 0000000000010202

Stack Trace:
[0] libmwhg.so:mxArray_tag* CreateNumericPreviousDataHelper<(mxClassID)6>(mxArray_tag*, int)(0x2aaacc695fc8, 0xf26cbc00, 0x2b85f2c573c4 "Indices", 0x2b85f2c5740d "PreviousData") + 86 bytes
[1] libmwhg.so:celledit_event_data(GObject_tag*, void*)(0x0c155390, 0, 0, 0x2b85f29592b0) + 627 bytes
[2] libmwhg.so:uitableCellEditHandler(0x0bb6f5c0 "@¯Æ«ª*", 0x2aaac46ff630, 0, 1024) + 63 bytes
[3] libmwhg.so:JavaEventListener::execute(UDEvent*)(0x2aaad8d7f8a0, 0x4219e060, 0x10000004219dff0, 0x2aaad8d7f8a0) + 101 bytes
[4] libmwudd.so:UDListenerList::execute(UDEvent*)(0x2aaacc775920, 0x2cc457050, 0x0c06fa00, 0x0c06fa08) + 110 bytes
[5] libmwudd_mi.so:ProcessBeanUDDEvent(long)(0x4219e1d0, 0x4219e110, 0, 0x10000000d178228) + 776 bytes
[6] libmwuix.so:uix_DispatchOrProcess(_XEvent*, _XtAppStruct*, int, bool)(0, 0x10000341887276b, 0, 0x0ccea7f0) + 361 bytes
[7] libmwuix.so:UIX_NormalPauseCore(bool, bool, int, bool, double, bool, _XEvent*, bool, bool)(0, 0, 0x4219e51c, 0x4219e4e0) + 528 bytes
[8] libmwuix.so:UIX_NormalMode(int, bool, bool)(0x2b85ed954cbf, 0, 0x2b85ed953cc0, 0x2aaac483cad0) + 391 bytes
[9] libmwbridge.so:x_fgets(char*, unsigned long, _IO_FILE*, bool)(0x0bae5160, 0x2aaac4971f10, 0x2aaac4bc0ab0 "ÀaPЪ*", 0x2b85f08a4510) + 151 bytes
[10] libmwbridge.so:unixReadStdin(char*, unsigned long, bool)(0x0bae5180, 0x4219e720, 0xc46dca40, 0x4219e730) + 345 bytes
[11] libmwbridge.so:ioReadLineOS(bool, _IO_FILE*, char*, char*, int, bool*, void (*)(), char* (*)(char*, unsigned long, bool))(0, 0x2b85ed73f060, 0x421a2a18, 0x4219e880) + 750 bytes
[12] libmwbridge.so:ioReadLine(bool, _IO_FILE*, char*, char*, int, bool*)(0x4219e93f, 0, 0x4219e8f0, 0x2b85edf39b2b) + 147 bytes
[13] libmwbridge.so:mnGetFullLine(char**, unsigned long*, unsigned long*, bool)(0x4219e9a0, 0x421a2a10, 0x421a2a08, 0x421a2a00) + 230 bytes

Thank you for your help. MATLAB may attempt to recover, but even if recovery appears successful,
we recommend that you save your workspace and restart MATLAB as soon as possible.

Matt J

unread,
Sep 27, 2012, 5:34:06 PM9/27/12
to
"Andrew Colhoun" wrote in message <k276nj$rb4$1...@newscl01ah.mathworks.com>...
> Hi,
>
> I'm creating a blank table in a gui that I want the user to populate. I then want to be able to read the user data and use elsewhere.
>
> The PROBLEM occurs when I am running the gui and attempt to fill a cell. It allows me to type in whatever, but when I click away from the active cell I get the system error message beneath the code sample below.
>
==============

I'm having a very similar experience. In my case though, it occurs in R2012a every time I try to close the GUI figure window. The system error messages are pretty much the same, apart from the stack trace.

Would really like to know what to do....
0 new messages