CLI Build Results in Third Party Electron Node Error

Hello!

I am building a Cocos Creator 2.2.0 project from the CLI on Windows using the following command:

C:/CocosCreator/CocosCreator.exe --path . --build "platform=web-desktop;debug=false;md5Cache=true;sourceMaps=false;buildPath=./release"

Everything used to work fine, but recently, I’ve been getting the following error at the end of the build, regardless of whether I run the command manually in my local terminal or through a CI script on a remote server:

Built to "PROJECT_DIR\release\web-desktop" successfully

../../third_party/electron_node/src/node_platform.cc:435: Assertion `data' failed.
 1: 00007FF6FA849CCF uv_open_osfhandle+479
 2: 00007FF6F95C1CB6 node::Abort+22
 3: 00007FF6F95C1433 node::Assert+131
 4: 00007FF6FA92A915 uv_disable_stdio_inheritance+137973
 5: 00007FF6FA92ACA5 uv_disable_stdio_inheritance+138885
 6: 00007FF6F7FF0C75 std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptInfo,std::allocator<v8::CpuProfileDeoptInfo> > >::_Make_iterator+4366357
 7: 00007FF6F8034D6A std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptInfo,std::allocator<v8::CpuProfileDeoptInfo> > >::_Make_iterator+4645130
 8: 00007FF6F8034CA0 std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptInfo,std::allocator<v8::CpuProfileDeoptInfo> > >::_Make_iterator+4644928
 9: 00007FF6F7C0B8E1 std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptInfo,std::allocator<v8::CpuProfileDeoptInfo> > >::_Make_iterator+281729
10: 00007FF6F7C0B68A std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptInfo,std::allocator<v8::CpuProfileDeoptInfo> > >::_Make_iterator+281130
11: 00007FF6F7C0BD2E std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptInfo,std::allocator<v8::CpuProfileDeoptInfo> > >::_Make_iterator+282830
12: 00007FF6F7FD6EDB std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptInfo,std::allocator<v8::CpuProfileDeoptInfo> > >::_Make_iterator+4260475
13: 00007FF6F7FD7150 std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptInfo,std::allocator<v8::CpuProfileDeoptInfo> > >::_Make_iterator+4261104
14: 00007FF6F7B8A6ED v8::String::NewFromUtf8+269
15: 00007FF6FAFD1F7D uv_fs_poll_getpath+6900541
16: 00007FF6FAFDD225 node::Buffer::New+21477
17: 00007FF6F8470F77 v8::WasmStreaming::Unpack+2022999

All of the expected files are there in the release folder, but they do not have the hashes at the end. The only way I’ve found so far to fix the issue is to uninstall and re-install Cocos Creator, but it eventually comes back.

Has anyone else had this problem, and how did you fix it?
Thanks!

1 Like

This was on and off for a while, but recently it seems to be happening for every web-desktop build. Has anyone else experienced this?

1 Like