Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[version:0.14.X] require('http'),require('https'),require('child_process') are crash nw in xp offline mode #4855

Closed
dph5199278 opened this issue May 16, 2016 · 22 comments
Assignees
Milestone

Comments

@dph5199278
Copy link

Test version:
0.14.1 - 0.14.5
Test OS:
win xp

Step:

  1. disable Network(offline mode)
  2. run nw.js
  3. use debug console
  4. input require('http') or require('https') or require('child_process')
  5. nw.js is crash

Crash files:
https://github.com/dph5199278/demos/blob/master/crash_reports_by_http(s)_child_process.zip

Maybe has other modules are not ok to run nw for xp offline mode.
My crash files are similar to #4831 's file.

One of crash files info:

Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [G:\reports\54d2d31e-1f77-4034-a9b7-d78b3a4b7ff1.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path.           *
* Use .symfix to have the debugger choose a symbol path.                   *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is: 
Windows XP Version 2600 (6532) MP (2 procs) Free x86 compatible
Product: WinNt
Machine Name:
Debug session time: Mon May 16 15:38:34.000 2016 (GMT+8)
System Uptime: not available
Process Uptime: 0 days 0:02:00.000
...................................................
Loading unloaded module list
.........................
This dump file has a breakpoint exception stored in it.
The stored exception information can be accessed via .ecxr.
eax=00000008 ebx=00000000 ecx=0000000b edx=0551a121 esi=00000000 edi=0a0fdf24
eip=7c92e514 esp=0a0fdef4 ebp=0a0fdf4c iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000206
Unable to load image C:\WINDOWS\system32\ntdll.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ntdll.dll
*** ERROR: Module load completed but symbols could not be loaded for ntdll.dll
ntdll+0xe514:
7c92e514 c3              ret

Is there any one could help me? Thank you.

@rogerwang
Copy link
Member

Will check this. Does it crash on win7?

@rogerwang rogerwang added this to the 0.14.x milestone May 16, 2016
@dph5199278
Copy link
Author

No,win7 is ok.

@screwt
Copy link

screwt commented Aug 23, 2016

Same crash here,
nwjs : sdk-0.16.1 , 0.16.1 , sdk-0.15.3
windows: 8.1

following code make my app crash, only if no connections are available.
var http = nw.require('http');

I'll add the crash dump.

-- EDIT --
I can't find any *.dmp files, logs don't show seg.fault message, it might not be a crash, but right after the provided line of code, nw stops and give back the shell.

Tested on linux sdk-0.16.1, it's all ok.

I don't know where to go from now... Any help?

@gengshenghong
Copy link

@rogerwang
Any update on this issue? I've got the same issue with XP SP3, using "child_process". I've also tested 'http' and 'https' and confirmed my issue is same with this thread, as all these 3 modules will crash silently.

My version information: nwjs-v0.15.4-win-ia32.zip

@gengshenghong
Copy link

Tried with nwjs-v0.14.7-win-ia32.zip also, same issue. Also, the issue is XP only. Is there any way to workaround without using child_process....

@rogerwang rogerwang self-assigned this Sep 7, 2016
@rogerwang
Copy link
Member

@gengshenghong could you please upload the crash dump file generated by nwjs-v0.14.7-win-ia32 ?

@gengshenghong
Copy link

@rogerwang No crash file generated on my machine. does it require SDK version to generate dump file? I am using the normal version.

@gengshenghong
Copy link

@rogerwang I've tried with SDK version and also crash. and I've found the crashpad file, but it seems like not generating useful information in it (only a settings.dat file).
Crashpad.zip

@gengshenghong
Copy link

To be noted, even install a virtual Microsoft Loop-back adapter, it does not work, it is blocking me to use child_process at all and I cannot find a workaround, the issue is strange, why child_process is related to network adapter (must connect to outside!!). :(

@dph5199278
Copy link
Author

@gengshenghong @screwt
My Temporary solution(0.14.1 - 0.14.6):

1. At least one network adapter(when no network adapter, could install virtual network adapter)
2. Enable the network adapter
3. Set DNS: 8.8.8.8(using static DNS to fix)

Hope this will help you. You could write it for user guide and pray that users know how to operate.

@gengshenghong
Copy link

@dph5199278 Thank you for the sharing. I've tried to add virtual network adapter, and set static IP but still failed. It is great to know that setting DNS is the key point!!!

In my case, I am using child_process only, so, I've workaround the issue by using C code (CreateProcess) to start my processes one by one (the original child process and the nw.exe process...). As my users are not technical guys, installing virtual network adapter and setting DNS is a little complex for them. Share it and hope it may be helpful for others who got this issue too.

@richardg867
Copy link

This issue is still present on 0.14.7 running on Windows XP. The network adapter solution works, one can add the Microsoft Loopback Adapter that is included with Windows as a dummy adapter.

@Christywl
Copy link
Contributor

I can't reproduce this issue on Windows 8.1 with nwjs-sdk-v0.24.4. Please try the latest nwjs build.

@gengshenghong
Copy link

@Christywl This issue is for XP only as the title mentioned and network adapter offline (no dns/ip stuff). I think the issue is clearly described in above discussion. :)

@grspraveen
Copy link

grspraveen commented Oct 19, 2017

@dph5199278 : Can you share me how you have used C code (Create process) ? we are facing this problem in XP only

@Christywl
Copy link
Contributor

@rogerwang , could you please help take a look at this issue? As gengshenghong said, it's for XP only. I have no Windows XP machine to check.

@rogerwang
Copy link
Member

@Christywl OK.

@himabindureddy
Copy link

Is their any workaround for reading the disk space in windows XP using node web kit 14.7.

@dph5199278
Copy link
Author

dph5199278 commented Nov 29, 2017

@grspraveen :
I'm sorry. Reply late.
I won't use C, but I set up DNS with BAT, hoping to help you.
When run setup.exe to run this bat file, but this is not good solution.

https://github.com/dph5199278/cmd/blob/master/set_dns/set_dns.bat

@madaono
Copy link

madaono commented Aug 15, 2018

same question

@stale
Copy link

stale bot commented Aug 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 10, 2019
@stale stale bot closed this as completed Aug 13, 2019
@shun634501730
Copy link

Already fixed this issue? It still crashed on Windows XP when using "require('child_process')".

I think that the child_process function is important for LTS version 0.14.7. So hope anyone can help to fix this issue.

Thanks if you are working for this.

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

No branches or pull requests

10 participants