Hi Nathan,

It would probably help to decode that stack trace. If you build the app in
debug mode (with -g, and without -O2) then you should get a symbolic stack
trace. My guess is that somehow the call is being made on a different
thread, or perhaps is being made at startup time before main() has been
called, but the stack trace should make it clear.

-Kenton

On Thu, May 12, 2016 at 9:08 AM, Nathan Hourt <[email protected]> wrote:

> I'm trying to update Qt Creator to 4.0 since that was recently released,
> but for reasons completely unfathomable to me, when I build and run my app
> in QtC 4, the app promptly crashes with the exception:
>
> libc++abi.dylib: terminating with uncaught exception of type
> kj::ExceptionImpl:
> /tmp/capnp20151201-17482-15lmg1o/capnproto-c++-0.5.3/src/kj/async.c++:53:
> failed: expected loop != nullptr; No event loop is running on this thread.
>
> stack: 0x10655b9b2 0x10655a697 0x1065a9b8e 0x1065271b7 0x1065287b9
> 0x1065241d4 0x1065240aa 0x106522f5b 0x10651eac5 0x10365b450 0x10365a7e2
> 0x1035fcdf5 0x1035fd13e 0x10539e72c 0x10539ce42 0x10539c2ea
>
>
> I create a KJ event loop and wait scope, stack allocated, near the
> beginning of main() (code here
> <https://github.com/FollowMyVote/StakeWeightedVoting/blob/master/VotingApp/main.cpp>).
> The exact same code builds and runs fine in QtC 3.6 with the same toolchain
> and environment. I note that I use qbs as my build system, and QtC 4 uses
> qbs 1.5, whereas 3.6 used 1.4, but I'm not sure what in the build system
> could cause this runtime error. My best guess is some kind of arcane
> linking quirk, but I have no idea what or how to fix it.
>
>
> Any advice on how to troubleshoot this is welcome.
> --
> Nathan Hourt
>
> *The Truth will set you free*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cap'n Proto" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/group/capnproto.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to