Project

General

Profile

Refreshing Models - cannot encode a raw index to raw again

Added by Mark Petryk over 7 years ago

I am trying to get my table-views to refresh properly, and periodically I will get exceptions thrown with things like "Geometry Inconsistent" and things like that. These errors are random and they appear to occur when 'scrolling' through a sql-model table-view.

I've looked at the Git model example, and it talks about using "layoutAboutToBeChanged" so I applied that to my table view and I've started to see this message:

The signal is emitted on at or about line 855, when the model is re-queried...

src/ccb/projectcbrv.h:855(void CCB::ReportView<C>::setQuery(const string&) [with C = CCB::ProjectCB; std::__cxx11::string = std::__cxx11::basic_string<char>])
[2018-Jan-30 06:19:11.087836] 99722 [/staff r4ImOVLZl6UX1aK2] [error] "WModelIndex: encodeAsRawIndex(): cannot encode a raw index to raw again"
[2018-Jan-30 06:19:11.125777] 99722 [/staff r4ImOVLZl6UX1aK2] [error] "WModelIndex: decodeFromRawIndex(): can only decode an encoded raw index"

What is the significance of these messages and should I worry about them?