Grantlee problems

Dirk Hohndel dirk at hohndel.org
Thu Jul 30 09:34:24 PDT 2015


On Thu, Jul 30, 2015 at 07:25:39PM +0300, Lubomir I. Ivanov wrote:
> >
> > One thing to do here is to compile grantlee with debugging and step into the
> > calls.
> >
> >         m_engine->addTemplateLoader(m_templateLoader);
> >
> > in line 60 of templatelayout.cpp appears to succeed. Then what's different
> > with the
> > loadByName() call in line 87?
> >
> 
> without looking at the Grantlee source, i think it uses threads for the loading.
> what i suggested to Robert is to try to remove the "this" inside the
> parentheses here:
> m_engine = new Grantlee::Engine(this); // <---
> as we manage the m_engine disposal manually.
> 
> googling about similar Qt errors suggested that somehow the explicit
> parenthood may cause it (this = the parent QObject of m_engine).

I tried this and it doesn't solve the problem :-(

> > So this means it can't figure out how to handle the parts in the template
> > that
> > are our types (so things like "{{ print_options.grayscale }};")
> > The only place this message is printed is in
> > templates/lib/customtyperegistry.cpp
> > in line 56
> >     if ( !types.contains( id ) ) {
> >       qWarning() << "Don't know how to handle metatype" <<
> > QMetaType::typeName( id );
> > so put a breakpoint there and try to figure out what's going wrong.
> >
> 
> i'm not sure, the error could be misleading and that the template was
> not loaded correctly.
> 
> either way, someone who can reproduce the issue needs to debug it.
> BTW does anyone else get that on OSX?

Yes, both Tomaz and I have reproduced this.

/D


More information about the subsurface mailing list