[Kst] Crash when viewing a matrix

nicolas.brisset at free.fr nicolas.brisset at free.fr
Fri Nov 18 23:45:54 UTC 2011


Hi,

I was looking a bit at the netcdf datasource and matio in preparation for the forthcoming Google Code-In, in case a student wants to implement loading .mat files. Matio seems to be well written and portable (Peter: feel free to grab it from sf.net and compile it under Windows, and make it an option as netCDF). But while trying to load a matrix from a sample netCDF file and viewing it with View->Matrices I get a crash, which I suspect it not linked with netCDF but rather the view matrix dialog:
 
0	??		0	0x7c0024	
1	Kst::ViewMatrixDialog::matrixSelected	viewmatrixdialog.cpp	49	0x82d0dc4	
2	Kst::ViewMatrixDialog::qt_metacall	moc_viewmatrixdialog.cxx	74	0x82ebf48	
3	QMetaObject::metacall	qmetaobject.cpp	237	0xb7c337dd	
4	QMetaObject::activate	qobject.cpp	3287	0xb7c43abc	
5	Kst::MatrixSelector::selectionChanged	moc_matrixselector.cxx	100	0xb7e1b659	
6	Kst::MatrixSelector::matrixSelected	matrixselector.cpp	74	0xb7dd8929	
7	Kst::MatrixSelector::qt_metacall	moc_matrixselector.cxx	87	0xb7e1b5d7	
8	QMetaObject::metacall	qmetaobject.cpp	237	0xb7c337dd	
9	QMetaObject::activate	qobject.cpp	3287	0xb7c43abc	
10	QComboBox::editTextChanged(QString const&)	/usr/lib/libQtGui.so.4	0	0xb7585165	
11	QComboBox::qt_metacall(QMetaObject::Call, int, void**)	/usr/lib/libQtGui.so.4	0	0xb7589fce	
12	Kst::ComboBox::qt_metacall	moc_combobox.cxx	64	0xb7e1b43a	
13	QMetaObject::metacall	qmetaobject.cpp	237	0xb7c337dd	
14	QMetaObject::activate	qobject.cpp	3287	0xb7c43abc	
15	QLineEdit::textChanged(QString const&)	/usr/lib/libQtGui.so.4	0	0xb75c5885	
16	QLineEdit::qt_metacall(QMetaObject::Call, int, void**)	/usr/lib/libQtGui.so.4	0	0xb75c5e2b	
17	QMetaObject::metacall	qmetaobject.cpp	237	0xb7c337dd	
18	QMetaObject::activate	qobject.cpp	3287	0xb7c43abc	
19	QLineControl::textChanged(QString const&)	/usr/lib/libQtGui.so.4	0	0xb7874c85	
20	QLineControl::finishChange(int, bool, bool)	/usr/lib/libQtGui.so.4	0	0xb75cafca	
...	<plus>				

It is easy to reproduce: just download http://www.unidata.ucar.edu/software/netcdf/examples/sresa1b_ncar_ccsm3_0_run1_200001.nc, run Kst and do Create->Matrix, select that file and choose lon_bnds (for instance). Then open View->Matrices and it crashes right away.
If it can be fixed quickly, nice. Otherwise I'll make a bugzilla entry to make sure we don't forget it.

Nicolas


More information about the Kst mailing list