[us-commits] r2784 - trunk/programs/us_convert
svn at svn.aucsolutions.com
svn at svn.aucsolutions.com
Thu Jun 13 11:07:22 MDT 2019
Author: alexey
Date: 2019-06-13 17:07:20 +0000 (Thu, 13 Jun 2019)
New Revision: 2784
Modified:
trunk/programs/us_convert/us_convert_gui.cpp
Log:
A quick fix (though incomplete) for segfault in EDITING stage, when MWL data are uploaded, protocol details read.
The problem arose when different channels had different #triples..
However, display of the wvls ranges and strat/end ranges for such cases is still incorrect.
Bug came from us_convert...
Modified: trunk/programs/us_convert/us_convert_gui.cpp
===================================================================
--- trunk/programs/us_convert/us_convert_gui.cpp 2019-06-08 16:11:17 UTC (rev 2783)
+++ trunk/programs/us_convert/us_convert_gui.cpp 2019-06-13 17:07:20 UTC (rev 2784)
@@ -2736,10 +2736,20 @@
{
//Solution
solutionID = ProtInfo.ProtSolutions.chsols[ i ].sol_id.toInt();
- solution_auto.readFromDB(solutionID, &db);
+ solution_auto.readFromDB(solutionID, &db);
+
+ qDebug() << "SOLS 0";
+
out_chaninfo[ i ].solution = solution_auto;
- out_tripinfo[ out_chandatx[ i ] + cb_lambplot->currentIndex() ].solution = solution_auto;
+ qDebug() << "SOLS 0a";
+
+ qDebug() << "out_chandatx[ i ] + cb_lambplot->currentIndex() " << out_chandatx[ i ] << " + " << cb_lambplot->currentIndex() << out_chandatx[ i ] + cb_lambplot->currentIndex();
+
+ //out_tripinfo[ out_chandatx[ i ] + cb_lambplot->currentIndex() ].solution = solution_auto; // ALEXEY <-- BUG
+
+ qDebug() << "SOLS 1";
+
//DUPL
all_tripinfo[ i ].solution = solution_auto;
//all_tripinfo[ out_chandatx[ i ] + cb_lambplot->currentIndex() ].solution = solution_auto;
@@ -2756,6 +2766,8 @@
// }
// }
+ qDebug() << "SOLS 2";
+
cellnumber = i / num_cent_holes;
for ( int aa = 0; aa < cent_options.size(); ++aa )
{
@@ -2766,7 +2778,8 @@
}
}
-
+ qDebug() << "SOLS 3";
+
//ALEXEY abstractCenterpieceIDs inferred from cent. name passed from protocol
out_chaninfo[ i ] .centerpiece = cpID;
out_chaninfo[ i ] .centerpieceName = cpName;
@@ -2805,14 +2818,22 @@
all_tripinfo[ jj ].centerpieceName = cpName;
}
+ qDebug() << "SOLS 4";
+
// Description
triple_desc = ProtInfo.ProtSolutions.chsols[ i ].ch_comment; //channel's comment from protocol
- outData[ out_chandatx[ i ] + cb_lambplot->currentIndex() ]->description = triple_desc; // ALEXEY : REplicate for all triple in the same channel
+
+ //ALEXEY: a problem here
+ //outData[ out_chandatx[ i ] + cb_lambplot->currentIndex() ]->description = triple_desc; // ALEXEY : REplicate for all triple in the same channel
+
+
//Propagate description to all triples of channel
out_chaninfo[ i ].description = triple_desc;
//DUPL
- allData[ out_chandatx[ i ] + cb_lambplot->currentIndex() ].description = triple_desc;
+ //allData[ out_chandatx[ i ] + cb_lambplot->currentIndex() ].description = triple_desc;
+ //ALEXEY: Cause a problem when out_chandatx[ i ] + cb_lambplot->currentIndex() > allData.size(), or out_triples .count()
+
all_tripinfo[ i ].description = triple_desc;
int trxs = out_chandatx[ i ];
@@ -2829,6 +2850,8 @@
//DUPL
allData[ trx ].description = triple_desc;
}
+
+ qDebug() << "Triples Replicated !!";
}
}
else
More information about the us-commits
mailing list