nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.4k stars 3.88k forks source link

Checkign object on Console in SDK crashes app #5218

Closed MichalMisiaszek closed 7 years ago

MichalMisiaszek commented 8 years ago

I am using 0.16.0 on OSX 10.10. When inspect app and trying to open object in console tab I am getting:

nwb nwbuild -v 0.16.0-sdk -r . { platform: 'darwin', arch: 'x64', version: 'v0.16.0', flavor: 'sdk' } workingDir: /var/folders/6q/dv0_ykj128j6_86nvcl5r0_m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi FATAL ERROR: v8::Object::GetAlignedPointerFromInternalField() Not a Smi

1: node::UVException(v8::Isolate, int, char const, char const, char const, char const_) [/var/folders/6q/dv0_ykj128j6_86nvcl5r0_m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi/nwjs.app/Contents/Versions/52.0.2743.82/nwjs Framework.framework/libnode.dylib] 2: node_module_register [/var/folders/6q/dv0_ykj128j6_86nvcl5r0_m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi/nwjs.app/Contents/Versions/52.0.2743.82/nwjs Framework.framework/libnode.dylib] 3: v8::Object::SlowGetAlignedPointerFromInternalField(int) [/private/var/folders/6q/dv0_ykj128j6_86nvcl5r0_m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi/nwjs.app/Contents/Versions/52.0.2743.82/nwjs Framework.framework/nwjs Framework] 4: v8::Unlocker::~Unlocker() [/private/var/folders/6q/dv0_ykj128j6_86nvcl5r0_m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi/nwjs.app/Contents/Versions/52.0.2743.82/nwjs Framework.framework/nwjs Framework] 5: ChromeMain [/private/var/folders/6q/dv0_ykj128j6_86nvcl5r0m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi/nwjs.app/Contents/Versions/52.0.2743.82/nwjs Framework.framework/nwjs Framework] 6: v8::FixSourceNWBin(v8::Isolate, v8::Localv8::UnboundScript) [/private/var/folders/6q/dv0_ykj128j6_86nvcl5r0m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi/nwjs.app/Contents/Versions/52.0.2743.82/nwjs Framework.framework/nwjs Framework] 7: v8::FixSourceNWBin(v8::Isolate, v8::Localv8::UnboundScript) [/private/var/folders/6q/dv0_ykj128j6_86nvcl5r0m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi/nwjs.app/Contents/Versions/52.0.2743.82/nwjs Framework.framework/nwjs Framework] 8: v8::FixSourceNWBin(v8::Isolate, v8::Localv8::UnboundScript) [/private/var/folders/6q/dv0_ykj128j6_86nvcl5r0_m0000gn/T/d-116716-50248-b4pyeq.u74bh2gldi/nwjs.app/Contents/Versions/52.0.2743.82/nwjs Framework.framework/nwjs Framework] 9: 0x25872f408ba7

10: 0x25872fb0c427

ghostoy commented 8 years ago

@MichalMisiaszek I see FixSourceNWBin. Is the object inspected generated from pre-compiled source code?

MichalMisiaszek commented 8 years ago

Not really, this is pure JS with JQuery. Now I added some more changes and it is crashing when opening console :(

FATAL ERROR: v8::Object::GetAlignedPointerFromInternalField() Not a Smi Received signal 6 [0x0001029c8e3a] [0x7fff956c5f1a] [0x7fff5d750ea8] [0x7fff90eed9ab] [0x00010d8eefca] [0x000103d83406] [0x0001050606b5] [0x000103c1bbad] [0x000103d9b818] [0x000103dc8680] [0x000103dd9c07] [0x3ede2290961b] [0x3ede2349ba3e] [0x3ede2349ad4a] [0x3ede2290d157] [end of stack trace]

rogerwang commented 8 years ago

How can we reproduce this? Are you using any native modules?

MichalMisiaszek commented 8 years ago

Yes, I am using couple of native modules:

<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
  <script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=YeGYuNylqPhzgbGx3eSGDlmZyoij9bRz"></script>
  <script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
  <!--script type="text/javascript" src="bootstrap-datetimepicker.js"></script-->
  <script type="text/javascript" src="./js/metisMenu.min.js"></script>
  <script type="text/javascript" src="./js/sb-admin-2.js"></script>

  <script type="text/javascript" src="./js/d3.min.js"></script>
  <script type="text/javascript" src="https://cdn.plot.ly/plotly-latest.min.js"></script>
  <script type="text/javascript" src="./js/micropolar-v0.2.2.js"></script>
  <script type="text/javascript" src="./js/jquery.csv.js"></script>
  <script type="text/javascript" src="./js/jquery.knob.js"></script>
  <script type="text/javascript" src="./js/leaflet.iconlabel.js"></script>
  <script type="text/javascript" src="./js/date.format.js"></script>
ghostoy commented 8 years ago

@MichalMisiaszek These scripts are not native modules. Native modules are C/C++ addons loaded with Node.js, e.g. node-sqlite3.

MichalMisiaszek commented 8 years ago

How about proto-buffers?

rogerwang commented 8 years ago

Did you rebuild them against NW? The native modules built for Node are not compatible with NW after 0.14.

rogerwang commented 8 years ago

btw, please submit a reproducible case or the crash dump.

MichalMisiaszek commented 8 years ago

It is hard to build app as it works in connection with server. I am using 0.16.

Christywl commented 7 years ago

Is this issue still reproduced on the latest nwjs build? If so, could you please provide a sample or upload the crash dump files?

Christywl commented 7 years ago

close until there is more information.