MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

Black screen after update 2.11 (electron)



  • Hello I get a black screen after the update.
    The problem is the modul MMM-Buttons.
    It’s need electron but a rebuild will not work it get’s the follow errors

    pi@Mirror:~/MagicMirror/modules/MMM-Buttons $ ./node_modules/.bin/electron-rebuild
    ✖ Rebuild Failed
    
    An unhandled error occurred inside electron-rebuild
    gyp info it worked if it ends with ok
    gyp info using node-gyp@6.1.0
    gyp info using node@6.10.2 | linux | arm
    gyp info find Python using Python version 2.7.9 found at "/usr/bin/python"
    gyp info spawn /usr/bin/python
    gyp info spawn args [ '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp/gyp/gyp_main.py',
    gyp info spawn args   'binding.gyp',
    gyp info spawn args   '-f',
    gyp info spawn args   'make',
    gyp info spawn args   '-I',
    gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build/config.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp/addon.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   '/home/pi/.electron-gyp/6.1.9/include/node/common.gypi',
    gyp info spawn args   '-Dlibrary=shared_library',
    gyp info spawn args   '-Dvisibility=default',
    gyp info spawn args   '-Dnode_root_dir=/home/pi/.electron-gyp/6.1.9',
    gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp',
    gyp info spawn args   '-Dnode_lib_file=/home/pi/.electron-gyp/6.1.9/::return_t Nan::imp::ToFactory::convert(v8::Local)’:
    ../../nan/nan_converters_43_inl.h:18:69: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Local)’
           val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \
                                                                         ^
    ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
     X(Boolean)
     ^
    ../../nan/nan_converters_43_inl.h:18:69: note: candidates are:
           val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \
                                                                         ^
    ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
     X(Boolean)
     ^
    In file included from ../src/epoll.cc:11:0:
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2516:18: note: v8::Local v8::Value::ToBoolean(v8::Isolate*) const
       Local ToBoolean(Isolate* isolate) const;
                      ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2516:18: note:   no known conversion for argument 1 from ‘v8::Local’ to ‘v8::Isolate*’
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:10428:16: note: v8::Local v8::Value::ToBoolean() const
     Local Value::ToBoolean() const {
                    ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:10428:16: note:   candidate expects 0 arguments, 1 provided
    In file included from ../../nan/nan_converters.h:67:0,
                     from ../../nan/nan.h:202,
                     from ../src/epoll.cc:15:
    ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)’:
    ../../nan/nan_converters_43_inl.h:37:57: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Local)’
       return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                             ^
    ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
     X(bool, Boolean)
     ^
    ../../nan/nan_converters_43_inl.h:37:57: note: candidates are:
       return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                             ^
    ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
     X(bool, Boolean)
     ^
    In file included from ../src/epoll.cc:11:0:
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2532:8: note: bool v8::Value::BooleanValue(v8::Isolate*) const
       bool BooleanValue(Isolate* isolate) const;
            ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2532:8: note:   no known conversion for argument 1 from ‘v8::Local’ to ‘v8::Isolate*’
    In file included from /home/pi/.electron-gyp/6.1.9/include/node/v8-internal.h:14:0,
                     from /home/pi/.electron-gyp/6.1.9/include/node/v8.h:25,
                     from ../src/epoll.cc:11:
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2541:43: note: bool v8::Value::BooleanValue() const
       V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
                                               ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
       declarator __attribute__((deprecated(message)))
       ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2541:43: note:   candidate expects 0 arguments, 1 provided
       V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
                                               ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
       declarator __attribute__((deprecated(message)))
       ^
    In file included from ../../nan/nan_new.h:189:0,
                     from ../../nan/nan.h:203,
                     from ../src/epoll.cc:15:
    ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(Nan::FunctionCallback, v8::Local)’:
    ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo&), v8::Local&)’
                               , obj));
                                    ^
    ../../nan/nan_implementation_12_inl.h:105:32: note: candidate is:
    In file included from ../src/epoll.cc:11:0:
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:4094:31: note: static v8::MaybeLocal v8::Function::New(v8::Local, v8::FunctionCallback, v8::Local, int, v8::ConstructorBehavior, v8::SideEffectType)
       static MaybeLocal New(
                                   ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:4094:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local’
    In file included from ../../nan/nan_new.h:189:0,
                     from ../../nan/nan.h:203,
                     from ../src/epoll.cc:15:
    ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’:
    ../../nan/nan_implementation_12_inl.h:337:37: warning: ‘static v8::Local v8::StringObject::New(v8::Local)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5323): Use Isolate* version [-Wdeprecated-declarations]
       return v8::StringObject::New(value).As();
                                         ^
    In file included from ../src/epoll.cc:15:0:
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’:
    ../../nan/nan.h:840:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/node.h:174): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                ^
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’:
    ../../nan/nan.h:855:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/node.h:167): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                  ^
    ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char*, int, v8::Local*)’:
    ../../nan/nan.h:870:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, const char*, int, v8::Local*)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/node.h:160): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
             v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                  ^
    ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local)’:
    ../../nan/nan.h:916:53: warning: ‘v8::Local v8::Value::ToString() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:10433): Use maybe version [-Wdeprecated-declarations]
           v8::Local string = from->ToString();
                                                         ^
    ../../nan/nan.h:926:74: warning: ‘int v8::String::WriteUtf8(char*, int, int*, int) const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2726): Use Isolate* version [-Wdeprecated-declarations]
             length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
                                                                              ^
    ../../nan/nan.h: In member function ‘v8::Local Nan::Callback::Call_(v8::Isolate*, v8::Local, int, v8::Local*) const’:
    ../../nan/nan.h:1484:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/node.h:174): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         ));
         ^
    ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local&)’:
    ../../nan/nan.h:1538:64: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3330): Use maybe version [-Wdeprecated-declarations]
         New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                    ^
    ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local&, const v8::Local&)’:
    ../../nan/nan.h:1544:42: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3330): Use maybe version [-Wdeprecated-declarations]
         New(persistentHandle)->Set(key, value);
                                              ^
    ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local&)’:
    ../../nan/nan.h:1550:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3339): Use maybe version [-Wdeprecated-declarations]
         New(persistentHandle)->Set(index, value);
                                                ^
    ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(const char*) const’:
    ../../nan/nan.h:1556:61: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3384): Use maybe version [-Wdeprecated-declarations]
             New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                 ^
    ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(const v8::Local&) const’:
    ../../nan/nan.h:1562:55: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3384): Use maybe version [-Wdeprecated-declarations]
         return scope.Escape(New(persistentHandle)->Get(key));
                                                           ^
    ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
    ../../nan/nan.h:1567:57: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3388): Use maybe version [-Wdeprecated-declarations]
         return scope.Escape(New(persistentHandle)->Get(index));
                                                             ^
    In file included from /usr/include/c++/4.9/cassert:43:0,
                     from /home/pi/.electron-gyp/6.1.9/include/node/node_object_wrap.h:26,
                     from ../src/epoll.cc:13:
    ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
    ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’
         assert(persistent().IsNearDeath());
                             ^
    In file included from ../../nan/nan.h:2365:0,
                     from ../src/epoll.cc:15:
    ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
    ../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent’ has no member named ‘MarkIndependent’
         persistent().MarkIndependent();
                      ^
    In file included from /usr/include/c++/4.9/cassert:43:0,
                     from /home/pi/.electron-gyp/6.1.9/include/node/node_object_wrap.h:26,
                     from ../src/epoll.cc:13:
    ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo&)’:
    ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’
         assert(wrap->handle_.IsNearDeath());
                              ^
    ../src/epoll.cc: In static member function ‘static void Epoll::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
    ../src/epoll.cc:175:39: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
       constructor.Reset(ctor->GetFunction());
                                           ^
    ../src/epoll.cc:175:39: note: candidate is:
    In file included from ../src/epoll.cc:11:0:
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5891:46: note: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)
       V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
                                                  ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
    ../src/epoll.cc:177:23: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
         ctor->GetFunction());
                           ^
    ../src/epoll.cc:177:23: note: candidate is:
    In file included from ../src/epoll.cc:11:0:
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5891:46: note: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)
       V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
                                                  ^
    /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
    ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Add(Nan::NAN_METHOD_ARGS_TYPE)’:
    ../src/epoll.cc:210:44: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
       int err = epoll->Add(info[0]->Int32Value(), info[1]->Int32Value());
                                                ^
    ../src/epoll.cc:210:67: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
       int err = epoll->Add(info[0]->Int32Value(), info[1]->Int32Value());
                                                                       ^
    ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Modify(Nan::NAN_METHOD_ARGS_TYPE)’:
    ../src/epoll.cc:230:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
       int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                                                   ^
    ../src/epoll.cc:230:70: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
       int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                                                                          ^
    ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Remove(Nan::NAN_METHOD_ARGS_TYPE)’:
    ../src/epoll.cc:247:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
       int err = epoll->Remove(info[0]->Int32Value());
                                                   ^
    epoll.target.mk:107: recipe for target 'Release/obj.target/epoll/src/epoll.o' failed
    make: Leaving directory '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
    make: *** [Release/obj.target/epoll/src/epoll.o] Error 1
    gyp ERR! build error
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp/lib/build.js:194:23)
    gyp ERR! stack     at emitTwo (events.js:106:13)
    gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    gyp ERR! System Linux 4.9.22-v7+
    gyp ERR! command "/usr/bin/nodejs" "/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/.bin/node-gyp" "rebuild" "--target=6.1.9" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
    gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll
    gyp ERR! node -v v6.10.2
    gyp ERR! node-gyp -v v6.1.0
    gyp ERR! not ok
    
    Failed with exit code: 1
    

    I hope the first part of the error text is enough. The complete text is to long.

    Thanks for some help.



  • @Blackmirror did u npm install in the folder first?



  • yes i have



  • @Blackmirror what node version are you one

    node -v



  • it is v6.10.2



  • @Blackmirror hm… you should be on v 10.??

    how did u upgrade? and from what version?



  • I have only git pull yesterday in cd Magicmirror and in all modules npm install.
    After this I get a black screen so I have rebuild electron in cd magicmirror and all modules. and npm install again.



  • @Blackmirror said in Black screen after update 2.11 (electron):

    rebuild electron in cd magicmirror and all modules. and npm install again.

    and npm install (in base and module folders) (as this will copy down new files based on the MM changes)
    and THEN
    electron-rebuild

    AND you did npm install in MagicMirror folder, BEFORE all modules



  • yes. first cd magicmirror after this the modules



  • @sdetweil maybe run my upgrade script …

    from here
    https://github.com/sdetweil/MagicMirror_scripts

    bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
    

Log in to reply