tjfontaine / node-ffi-generate

Generate ffi bindings from header files
131 stars 22 forks source link

Maximum call stack size exceeded #8

Open gracjan opened 8 years ago

gracjan commented 8 years ago
Error: Maximum call stack size exceeded
    at disabled (/Users/gracjan/Sources/node-mupdf/node_modules/debug/debug.js:65:20)
    at new StructType (/Users/gracjan/Sources/node-mupdf/node_modules/ref-struct/lib/struct.js:83:7)
    at Function.get (/Users/gracjan/Sources/node-mupdf/node_modules/ref-struct/lib/struct.js:156:10)
    at Object.get (/Users/gracjan/Sources/node-mupdf/node_modules/ref/lib/ref.js:447:17)
    at Object.deref (/Users/gracjan/Sources/node-mupdf/node_modules/ref/lib/ref.js:655:18)
    at Buffer.deref (/Users/gracjan/Sources/node-mupdf/node_modules/ref/lib/ref.js:1259:18)
    at /Users/gracjan/Sources/node-mupdf/node_modules/ffi/lib/callback.js:62:26
    at Object.ForeignFunction.proxy [as clang_visitChildren] (/Users/gracjan/Sources/node-mupdf/node_modules/ffi/lib/_foreign_function.js:59:14)
    at Cursor.visitChildren (/Users/gracjan/Sources/node-mupdf/node_modules/libclang/lib/cursor.js:153:7)
    at defineType (/Users/gracjan/Sources/node-mupdf/node_modules/ffi-generate/lib/generateffi.js:140:10)

I have no clue how to debug this further.