Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

Failed to start on Mac OS X 10.11.6 with Node.js 6.3.1 #31

Open
iddan opened this issue Aug 26, 2016 · 6 comments
Open

Failed to start on Mac OS X 10.11.6 with Node.js 6.3.1 #31

iddan opened this issue Aug 26, 2016 · 6 comments

Comments

@iddan
Copy link

iddan commented Aug 26, 2016

(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.

==== JS stack trace =========================================

Security context: 0xa09333c9e31 <JS Object>#0#
    1: /* anonymous */ [/Users/iddan/Desktop/ide.js/node_modules/node-gtk/lib/index.js:20] [pc=0x15fcf7b43bff] (this=0xa09333e15d9 <JS Global Object>#1#)
    2: /* anonymous */ [/Users/iddan/Desktop/ide.js/node_modules/node-gtk/lib/index.js:35] [pc=0x15fcf7b4449e] (this=0x98031005511 <an Object with map 0x85c30707ac1>#2#,exports=0x98031005511 <an Object with map 0x85c30707ac1>#2#,require=0x980310054c9 <JS Function require (SharedFunctionInfo 0x15162d45bed9)>#3#,module=0x98031005441 <a Module with map 0x1a40d1d1a891>#4#,__filename=0x980310053e9 <String[62]: /Users/iddan/Desktop/ide.js/node_modules/node-gtk/lib/index.js>,__dirname=0x980310053c1 <String[53]: /Users/iddan/Desktop/ide.js/node_modules/node-gtk/lib>)
    3: _compile [module.js:541] [pc=0x15fcf7b3ddb0] (this=0x98031005441 <a Module with map 0x1a40d1d1a891>#4#,content=0x98031006a29 <Very long string[4957]>#5#,filename=0x980310053e9 <String[62]: /Users/iddan/Desktop/ide.js/node_modules/node-gtk/lib/index.js>)
    4: .js [module.js:550] [pc=0x15fcf7b36d6b] (this=0x98031007da1 <an Object with map 0x1a40d1d1a2b9>#6#,module=0x98031005441 <a Module with map 0x1a40d1d1a891>#4#,filename=0x980310053e9 <String[62]: /Users/iddan/Desktop/ide.js/node_modules/node-gtk/lib/index.js>)
    5: load [module.js:458] [pc=0x15fcf7b35772] (this=0x98031005441 <a Module with map 0x1a40d1d1a891>#4#,filename=0x980310053e9 <String[62]: /Users/iddan/Desktop/ide.js/node_modules/node-gtk/lib/index.js>)
    6: tryModuleLoad(aka tryModuleLoad) [module.js:417] [pc=0x15fcf7b3529d] (this=0xa0933304189 <undefined>,module=0x98031005441 <a Module with map 0x1a40d1d1a891>#4#,filename=0x980310053e9 <String[62]: /Users/iddan/Desktop/ide.js/node_modules/node-gtk/lib/index.js>)
    7: _load [module.js:409] [pc=0x15fcf7b30e82] (this=0x98031007ec9 <JS Function Module (SharedFunctionInfo 0x15162d42d3f9)>#7#,request=0x15162d45b969 <String[8]: node-gtk>,parent=0x98031007e41 <a Module with map 0x1a40d1d1a891>#8#,isMain=0xa0933304299 <false>)
    8: require [module.js:468] [pc=0x15fcf7b3e893] (this=0x98031007e41 <a Module with map 0x1a40d1d1a891>#8#,path=0x15162d45b969 <String[8]: node-gtk>)
    9: require(aka require) [internal/module.js:20] [pc=0x15fcf7b3e5c6] (this=0xa0933304189 <undefined>,path=0x15162d45b969 <String[8]: node-gtk>)
   10: /* anonymous */ [/Users/iddan/Desktop/ide.js/main.js:1] [pc=0x15fcf7b3e07b] (this=0x98031008049 <an Object with map 0x85c30707ac1>#9#,exports=0x98031008049 <an Object with map 0x85c30707ac1>#9#,require=0x98031007f51 <JS Function require (SharedFunctionInfo 0x15162d45bed9)>#10#,module=0x98031007e41 <a Module with map 0x1a40d1d1a891>#8#,__filename=0x98031008009 <String[35]: /Users/iddan/Desktop/ide.js/main.js>,__dirname=0x98031007fe1 <String[27]: /Users/iddan/Desktop/ide.js>)
   11: _compile [module.js:541] [pc=0x15fcf7b3ddb0] (this=0x98031007e41 <a Module with map 0x1a40d1d1a891>#8#,content=0x98031008491 <String[918]\: require('node-gtk');\n// const Gtk = require('Gtk');\n// const Gio = require('Gio');\n// const store = require('./store');\n//\n// Gtk.init (null, null);\n//\n// let app = new Gtk.Application();\n// let cancellable = new Gio.Cancellable();\n// app.register(cancellable);\n//\n// let window = new Gtk.ApplicationWindow({\n//     title: 'Code',\n//     application: app,\n//     window_position: Gtk.WindowPosition.CENTER,\n//     default_height: 200,\n//     default_width: 400\n// });\n// let textView = new Gtk.TextView();\n//\n// app.addWindow(window);\n// window.add(textView);\n// window.showAll();\n//\n// let textViewBuffer = textView.getBuffer();\n//\n// textViewBuffer.on('changed', () => console.log(textViewBuffer.getText(\n//     textViewBuffer.get_start_iter(),\n//     textViewBuffer.get_end_iter(),\n//     false\n// )));\n//\n// textView.on('move-cursor', (a, b, c) => console.log('move-cursor', a, b, c)); // works!\n//\n// Gtk.main();\n>,filename=0x98031008009 <String[35]: /Users/iddan/Desktop/ide.js/main.js>)
   12: .js [module.js:550] [pc=0x15fcf7b36d6b] (this=0x98031007da1 <an Object with map 0x1a40d1d1a2b9>#6#,module=0x98031007e41 <a Module with map 0x1a40d1d1a891>#8#,filename=0x98031008009 <String[35]: /Users/iddan/Desktop/ide.js/main.js>)
   13: load [module.js:458] [pc=0x15fcf7b35772] (this=0x98031007e41 <a Module with map 0x1a40d1d1a891>#8#,filename=0x98031008009 <String[35]: /Users/iddan/Desktop/ide.js/main.js>)
   14: tryModuleLoad(aka tryModuleLoad) [module.js:417] [pc=0x15fcf7b3529d] (this=0xa0933304189 <undefined>,module=0x98031007e41 <a Module with map 0x1a40d1d1a891>#8#,filename=0x98031008009 <String[35]: /Users/iddan/Desktop/ide.js/main.js>)
   15: _load [module.js:409] [pc=0x15fcf7b30e82] (this=0x98031007ec9 <JS Function Module (SharedFunctionInfo 0x15162d42d3f9)>#7#,request=0x98031008861 <String[35]: /Users/iddan/Desktop/ide.js/main.js>,parent=0xa0933304101 <null>,isMain=0xa0933304231 <true>)
   16: /* anonymous */(aka /* anonymous */) [module.js:575] [pc=0x15fcf7b3094a] (this=0xa0933304189 <undefined>)
   17: run(aka run) [bootstrap_node.js:352] [pc=0x15fcf7b307c8] (this=0xa0933304189 <undefined>,entryFunction=0x15162d452381 <JS Function Module.runMain (SharedFunctionInfo 0x15162d42e179)>#11#)
   18: startup(aka startup) [bootstrap_node.js:144] [pc=0x15fcf7a40695] (this=0xa0933304189 <undefined>)
   19: /* anonymous */(aka /* anonymous */) [bootstrap_node.js:467] [pc=0x15fcf7a3e61f] (this=0xa0933304101 <null>,process=0xa09333dd3f1 <a process with map 0x85c307115c9>#12#)
=====================


==== C stack trace ===============================

 1: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
 2: GNodeJS::GetClassTemplate(v8::Isolate*, _GIBaseInfoStub*, unsigned long)
 3: GNodeJS::GetClassTemplate(v8::Isolate*, _GIBaseInfoStub*, unsigned long)
 4: GNodeJS::WrapperFromGObject(v8::Isolate*, _GObject*)
 5: GNodeJS::FunctionInvoker(v8::FunctionCallbackInfo<v8::Value> const&)
 6: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 7: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>)
 8: v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*)
 9: 0x15fcf7a0961b
10: 0x15fcf7b43bff
@WebReflection
Copy link
Owner

this project is half abandoned but its development right now is mostly for Linux.
I'll have a look on my mac but I suggest to have a look at jsgtk.

@iddan
Copy link
Author

iddan commented Aug 27, 2016

It has to do with the changes in the v8 engine so my guess it will break on Linux as well with node > 6. Anyway: built with node 5 and it worked. Sadly when I tried to load the Babel-core module the program freezed.

@iddan
Copy link
Author

iddan commented Sep 16, 2016

Any progression with this?

@benwaffle
Copy link
Contributor

benwaffle commented Sep 16, 2016

There's a fork with several improvements, including using NAN to reduce nodejs version breaks. See if that one works

@WebReflection
Copy link
Owner

will such fork ever send a PR in here? Otherwise I feel like I can close this repository and port at that fork directly.

@romgrk
Copy link

romgrk commented Sep 16, 2016

The fork has a new job and therefore much less time to spend hacking through the GObject/V8 APIs. There are also other forks, (eg https://github.com/larsu/node-gtk), with very interesting ideas, and it would be good to have everyone interested in this project work together.
I wouldn't recommend forwarding people directly to my fork, or at least not without clear notice that it is under development.

For this specific case I couldn't assert that it has been handled, though I know there is no direct Set(). It is done through Nan::SetPrototypeMethod.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants