awesomium icon indicating copy to clipboard operation
awesomium copied to clipboard

Debug on Windows

Open fastict opened this issue 15 years ago • 1 comments

Hi,

I am trying to get Awesomium up and running on Windows. Here's my config: XPSP2, Visual Studio 2008 SP1, Windows SDK 7.0.

The Release version compiles and runs ok (with minor adjustments).

The Debug version crashes soon after startup. It's in a different spot depending on which revision you're trying, but I think it's centered around isMainThread(). For example in one test, it failed the Assert() in ActiveDOMObject.cpp on this bit:

#if ENABLE(WORKERS)
ASSERT((m_scriptExecutionContext->isDocument() && isMainThread())
    || (m_scriptExecutionContext->isWorkerContext() && currentThread() == static_cast<WorkerContext*>(m_scriptExecutionContext)->thread()->threadID()));
#endif

Has anyone succesfully run the Debug version on Windows?

fastict avatar Sep 14 '09 21:09 fastict

Yeah, Chromium added an assert checking for the main thread, which actually checks the thread ID itself, rather than if you are in the same thread that started chromium

I don't think there's a way around this without a complete rewrite because awesomium is built from just the webkit layer and bypasses most of chromium's IPC code.

http://code.google.com/p/sirikata/source/browse/trunk/source/chromium-mainthread.patch

-Patrick

pathorn avatar Sep 14 '09 21:09 pathorn