deanmao / node-chimera

A new kind of headless webkit integration for nodejs; a great alternative to phantomjs.
http://www.deanmao.com/2012/08/13/enter-chimera/
MIT License
847 stars 45 forks source link

QWaitCondition error #12

Open Trindaz opened 11 years ago

Trindaz commented 11 years ago

Just ran npm install and created a script from the first example in the readme opening google.com) and got this in my console output:

Using the chimera in lib QWaitCondition: cv destroy failure: Resource busy

Do I have to delve into QT to get to the bottom of this or is there something obvious I could fix in Chimera to resolve this?

deanmao commented 11 years ago

can you describe your use, or provide a stack trace? It's probably a bug, but it's hard to guess the problem from here.... try to reproduce it with gdb.

do these steps:

gdb node
run example.js
bt

The bt command gives you the backtrace if you get an error

ricardobeat commented 11 years ago

Same problem here. GDB output:

Reading symbols for shared libraries ++++......................................................................................................................................... done
Using the chimera in lib
Reading symbols for shared libraries warning: Could not find object file "/Users/catch23/current/node-chimera/build/Release/obj.target/chimera/src/top.o" - no debug information available for "top.cc".

warning: Could not find object file "/Users/catch23/current/node-chimera/build/Release/obj.target/chimera/src/cookiejar.o" - no debug information available for "cookiejar.cc".

warning: Could not find object file "/Users/catch23/current/node-chimera/build/Release/obj.target/chimera/src/chimera.o" - no debug information available for "chimera.cc".

warning: Could not find object file "/Users/catch23/current/node-chimera/build/Release/obj.target/chimera/src/browser.o" - no debug information available for "browser.cc".

......... done

[...]

Using the chimera in lib
Reading symbols for shared libraries + done
QWaitCondition: cv destroy failure: Resource busy

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000001186d5ffa
0x00007fff9442994e in memmove$VARIANT$sse3x ()

The js code:

chi.perform({
    url: 'http://127.0.0.1:' + port + '/test',
    locals: {},
    run: function(callback) {
      callback(null, 'success')
    },
    callback: function(err, result) {
        console.log(result)
    }
})

OSX 10.8, node v0.8, chimera@0.3.2

deanmao commented 11 years ago

Sorry guys, I'll see what's going on here. It looks like something specific to the Mac since this doesn't happen on linux... perhaps I may need some mac-specific code somewhere.