brrd / abricotine

Markdown editor with inline preview
GNU General Public License v3.0
2.63k stars 159 forks source link

Abricotine fails to start: "The display compositor is frequently crashing" #316

Closed 2brownc closed 2 years ago

2brownc commented 2 years ago

The apps shows a white box and some outlines and then exits.

> abricotine some_file.md 
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
[2528:0306/221419.419853:FATAL:gpu_data_manager_impl_private.cc(894)] The display compositor is frequently crashing. Goodbye.
fish: Job 1, 'abricotine handler-function.md' terminated by signal SIGTRAP (Trace or breakpoint trap)

OS: EndeavourOS / Linux Installed from: https://aur.archlinux.org/packages/abricotine

> inxi -G
Graphics:
  Device-1: NVIDIA GK208B [GeForce GT 710] driver: nvidia v: 470.103.01
  Display: x11 server: X.org v: 1.21.1.3 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,vesa gpu: nvidia resolution: 1920x1080~60Hz
  Message: Unable to show GL data. Required tool glxinfo missing.
brrd commented 2 years ago

I am not the author of this third party package, so I can not provide support about it. Can you please build abricotine from its source and tell us if this error occurs again? See: https://github.com/brrd/abricotine/blob/master/docs/installation-and-usage.md#building-and-packaging

2brownc commented 2 years ago

I did as instructed in the page you linked; the build threw a whole bunch of errors:

abricotine-1.0.0> npm install
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated cryptiles@3.1.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated sntp@2.1.0: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated har-validator@5.0.3: this library is no longer supported
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated boom@4.3.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated boom@5.2.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated chokidar@1.6.1: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated hawk@6.0.2: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated request@2.82.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! code 1
npm ERR! path /mnt/yildun/var/abricotine-1.0.0/node_modules/spellchecker
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/mnt/yildun/var/abricotine-1.0.0/node_modules/spellchecker/build'
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/affentry.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/affixmgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/csutil.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/dictmgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/filemgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hashmgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hunspell.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hunzip.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/phonet.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/replist.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/suggestmgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/parsers/textparser.o
npm ERR!   AR(target) Release/obj.target/hunspell.a
npm ERR!   COPY Release/hunspell.a
npm ERR!   CXX(target) Release/obj.target/spellchecker/src/main.o
npm ERR! make: Leaving directory '/mnt/yildun/var/abricotine-1.0.0/node_modules/spellchecker/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.13.2 | linux | x64
npm ERR! (node:32176) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/mnt/yildun/var/abricotine-1.0.0/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/mnt/yildun/var/abricotine-1.0.0/node_modules/spellchecker/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/mnt/yildun/var/abricotine-1.0.0/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/moss/.node-gyp/16.13.2/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/moss/.node-gyp/16.13.2',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/mnt/yildun/var/abricotine-1.0.0/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/moss/.node-gyp/16.13.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/mnt/yildun/var/abricotine-1.0.0/node_modules/spellchecker',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../vendor/hunspell/src/hunspell/affentry.cxx:9:
npm ERR! ../vendor/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
npm ERR!    30 |   struct hentry *      check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL);
npm ERR!       |                                                                                                         ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
npm ERR!    93 |   struct hentry *   check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL);
npm ERR!       |                                                                                                                  ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/affentry.cxx: In member function ‘int PfxEntry::test_condition(const char*)’:
npm ERR! ../vendor/hunspell/src/hunspell/affentry.cxx:113:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   113 |          case '.': if (!pos) { // dots are not metacharacters in groups: [.]
npm ERR!       |                    ^~
npm ERR! ../vendor/hunspell/src/hunspell/affentry.cxx:120:5: note: here
npm ERR!   120 |     default: {
npm ERR!       |     ^~~~~~~
npm ERR! ../vendor/hunspell/src/hunspell/affentry.cxx: In member function ‘int SfxEntry::test_condition(const char*, const char*)’:
npm ERR! ../vendor/hunspell/src/hunspell/affentry.cxx:501:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   501 |         case '.': if (!pos) { // dots are not metacharacters in groups: [.]
npm ERR!       |                   ^~
npm ERR! ../vendor/hunspell/src/hunspell/affentry.cxx:516:5: note: here
npm ERR!   516 |     default: {
npm ERR!       |     ^~~~~~~
npm ERR! In file included from ../vendor/hunspell/src/hunspell/affixmgr.cxx:12:
npm ERR! ../vendor/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
npm ERR!    30 |   struct hentry *      check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL);
npm ERR!       |                                                                                                         ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
npm ERR!    93 |   struct hentry *   check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL);
npm ERR!       |                                                                                                                  ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/affixmgr.cxx: In member function ‘int AffixMgr::parse_convtable(char*, FileMgr*, RepList**, const char*)’:
npm ERR! ../vendor/hunspell/src/hunspell/affixmgr.cxx:3654:58: warning: argument to ‘sizeof’ in ‘int strncmp(const char*, const char*, size_t)’ call is the same expression as the second source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
npm ERR!  3654 |                              if (strncmp(piece, keyword, sizeof(keyword)) != 0) {
npm ERR!       |                                                          ^~~~~~~~~~~~~~~
npm ERR! ../vendor/hunspell/src/hunspell/csutil.cxx: In function ‘void strlinecat(char*, const char*)’:
npm ERR! ../vendor/hunspell/src/hunspell/csutil.cxx:411:24: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
npm ERR!   411 |                 strncpy(dest, s, len);
npm ERR!       |                 ~~~~~~~^~~~~~~~~~~~~~
npm ERR! ../vendor/hunspell/src/hunspell/csutil.cxx:407:21: note: length computed here
npm ERR!   407 |     int len = strlen(s);
npm ERR!       |               ~~~~~~^~~
npm ERR! ../vendor/hunspell/src/hunspell/csutil.cxx: In function ‘char* mystrrep(char*, const char*, const char*)’:
npm ERR! ../vendor/hunspell/src/hunspell/csutil.cxx:567:16: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
npm ERR!   567 |         strncpy(pos, rep, replen);
npm ERR!       |         ~~~~~~~^~~~~~~~~~~~~~~~~~
npm ERR! ../vendor/hunspell/src/hunspell/csutil.cxx:552:26: note: length computed here
npm ERR!   552 |       int replen = strlen(rep);
npm ERR!       |                    ~~~~~~^~~~~
npm ERR! ../vendor/hunspell/src/hunspell/dictmgr.cxx: In member function ‘int DictMgr::parse_file(const char*, const char*)’:
npm ERR! ../vendor/hunspell/src/hunspell/dictmgr.cxx:102:37: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   102 |                        pdict->region=NULL;
npm ERR!       |                                     ^
npm ERR! ../vendor/hunspell/src/hunspell/dictmgr.cxx:103:21: note: here
npm ERR!   103 |                     case 2: //deliberate fallthrough
npm ERR!       |                     ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx: In member function ‘int Hunspell::spell(const char*, int*, char**)’:
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx:369:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   369 |             *info += SPELL_ORIGCAP;
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx:370:6: note: here
npm ERR!   370 |      case NOCAP: {
npm ERR!       |      ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx:440:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   440 |         }
npm ERR!       |         ^
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx:441:6: note: here
npm ERR!   441 |      case INITCAP: {
npm ERR!       |      ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx: In member function ‘int Hunspell::suggest(char***, const char*)’:
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx:741:30: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   741 |                     capwords = 1;
npm ERR!       |                     ~~~~~~~~~^~~
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx:742:6: note: here
npm ERR!   742 |      case HUHCAP: {
npm ERR!       |      ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx:865:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   865 |               capwords = 1;
npm ERR!       |               ~~~~~~~~~^~~
npm ERR! ../vendor/hunspell/src/hunspell/hunspell.cxx:866:11: note: here
npm ERR!   866 |           case HUHCAP: {
npm ERR!       |           ^~~~
npm ERR! ../vendor/hunspell/src/hunspell/suggestmgr.cxx: In member function ‘char* SuggestMgr::suggest_gen(char**, int, char*)’:
npm ERR! ../vendor/hunspell/src/hunspell/suggestmgr.cxx:1723:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
npm ERR!  1723 |     strncpy(ds, MORPH_TERM_SFX, MORPH_TAG_LEN);
npm ERR!       |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::CheckSpelling(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/main.cc:137:28: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR!   137 |       misspelled_range->Set(Nan::New("start").ToLocalChecked(), Nan::New<Integer>(start));
npm ERR!       |       ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/moss/.node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:58,
npm ERR!                  from ../src/main.cc:3:
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/main.cc:138:28: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR!   138 |       misspelled_range->Set(Nan::New("end").ToLocalChecked(), Nan::New<Integer>(end));
npm ERR!       |       ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/moss/.node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:58,
npm ERR!                  from ../src/main.cc:3:
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/main.cc:139:18: error: no matching function for call to ‘v8::Array::Set(size_t&, v8::Local<v8::Object>&)’
npm ERR!   139 |       result->Set(index, misspelled_range);
npm ERR!       |       ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/moss/.node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:58,
npm ERR!                  from ../src/main.cc:3:
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::GetAvailableDictionaries(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/main.cc:223:18: error: no matching function for call to ‘v8::Array::Set(size_t&, v8::Local<v8::String>)’
npm ERR!   223 |       result->Set(i, Nan::New(dict.data(), dict.size()).ToLocalChecked());
npm ERR!       |       ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/moss/.node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:58,
npm ERR!                  from ../src/main.cc:3:
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::GetCorrectionsForMisspelling(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/main.cc:249:18: error: no matching function for call to ‘v8::Array::Set(size_t&, v8::Local<v8::String>)’
npm ERR!   249 |       result->Set(i, val.ToLocalChecked());
npm ERR!       |       ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/moss/.node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:58,
npm ERR!                  from ../src/main.cc:3:
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/main.cc: In static member function ‘static void {anonymous}::Spellchecker::Init(v8::Local<v8::Object>)’:
npm ERR! ../src/main.cc:289:17: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Function>)’
npm ERR!   289 |     exports->Set(Nan::New("Spellchecker").ToLocalChecked(), tpl->GetFunction(context).ToLocalChecked());
npm ERR!       |     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/moss/.node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:58,
npm ERR!                  from ../src/main.cc:3:
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../../nan/nan.h:58,
npm ERR!                  from ../src/main.cc:3:
npm ERR! ../src/main.cc: At global scope:
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/node.h:821:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm ERR!   821 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/moss/.node-gyp/16.13.2/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR!   855 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm ERR!       |   ^~~~~~~~~~~~~
npm ERR! ../src/main.cc:299:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!   299 | NODE_MODULE(spellchecker, Init)
npm ERR!       | ^~~~~~~~~~~
npm ERR! make: *** [spellchecker.target.mk:122: Release/obj.target/spellchecker/src/main.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/mnt/yildun/var/abricotine-1.0.0/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.16.13-arch1-1
npm ERR! gyp ERR! command "/usr/bin/node" "/mnt/yildun/var/abricotine-1.0.0/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /mnt/yildun/var/abricotine-1.0.0/node_modules/spellchecker
npm ERR! gyp ERR! node -v v16.13.2
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
brrd commented 2 years ago

It's obviously an issue with node-gyp, make sure you properly installed all its dependencies: https://github.com/nodejs/node-gyp

2brownc commented 2 years ago

How do I test?

I tried this:

> node-gyp list
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.14.0 | linux | x64
16.13.2
gyp info ok
brrd commented 2 years ago

I guess version 1.1 fixed this.