Phantomjs 1.9.7 does nothing
I have a problem with phantomjs under windows 8.1 64 bit. When I try to run my tests on the cmd it does nothing. It does not crash and it does not execute any qunit tests. I assume there is something wrong with my laptop cause the tests are running on a coworkes laptop. Is there a way to see some logs when I execute phantomjs on a cmd?
I execute my tests like the following statement: phantomjs --web-security=false --remote-debugger-port=9000 .\test\js\runner.js .\test\qunit\test.html
After I hit the enter button nothing happens. I have seen there is a bug if a laptop has more than one GPU. I have changed the GPU settings as it descriped here: https://github.com/ariya/phantomjs/issues/10845
Hope someone can help me with my issue.
Regards
Jan
the dump says that:
ERROR_CODE: (NTSTATUS) 0x80000003 - {EXCEPTION} Breakpoint A breakpoint has been reached. EXCEPTION_CODE: (HRESULT) 0x80000003 (2147483651) - One or more arguments are invalid
BUGCHECK_STR: APPLICATION_FAULT_STATUS_BREAKPOINT_AFTER_CALL
PRIMARY_PROBLEM_CLASS: STATUS_BREAKPOINT_AFTER_CALL
DEFAULT_BUCKET_ID: STATUS_BREAKPOINT_AFTER_CALL
FAILURE_BUCKET_ID: STATUS_BREAKPOINT_AFTER_CALL_80000003_phantomjs.exe!
Does anyone know whats going on there?
Microsoft (R) Windows Debugger Version 6.3.9600.17029 AMD64 Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [E:\phantomjs.dmp] User Mini Dump File with Full Memory: Only application data is 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 8 Version 9600 MP (8 procs) Free x86 compatible Product: WinNt, suite: SingleUserTS Built by: 6.3.9600.17031 (winblue_gdr.140221-1952) Machine Name: Debug session time: Thu Oct 16 16:29:32.000 2014 (UTC + 2:00) System Uptime: 7 days 23:54:38.547 Process Uptime: 0 days 0:09:14.000 .................................................. *** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll -
************* Symbol Loading Error Summary ************** Module name Error ntdll The system cannot find the file specified
You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the command that caused symbols to be loaded. You should also verify that your symbol search path (.sympath) is correct. *** ERROR: Symbol file could not be found. Defaulted to export symbols for user32.dll - eax=00000094 ebx=00000001 ecx=00000000 edx=00000000 esi=00000001 edi=00000001 eip=770caaac esp=002ed87c ebp=002ed9fc iopl=0 nv up ei pl nz na po nc cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00200202 ntdll!NtWaitForMultipleObjects+0xc: 770caaac c21400 ret 14h 0:000> analyze -v Couldn't resolve error at 'nalyze -v' 0:000> analyze -v Couldn't resolve error at 'nalyze -v' 0:000> analyze -v -hang Couldn't resolve error at 'nalyze -v -hang' 0:000> !analyze -v -hang
-
* -
Exception Analysis * -
*
*** WARNING: Unable to verify checksum for phantomjs.exe *** ERROR: Symbol file could not be found. Defaulted to export symbols for phantomjs.exe - ***** OS symbols are WRONG. Please fix symbols to do analysis.
*** Either you specified an unqualified symbol, or your debugger *** *** doesn't have full symbol information. Unqualified symbol *** *** resolution is turned off by default. Please either specify a *** *** fully qualified symbol module!symbolname, or enable resolution *** *** of unqualified symbols by typing ".symopt- 100". Note that *** *** enabling unqualified symbol resolution with network symbol *** *** server shares in the symbol path may cause the debugger to *** *** appear to hang for long periods of time when an incorrect *** *** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path *** *** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not *** *** contain the required information. Contact the group that *** *** provided you with these symbols if you need this command to *** *** work. ***
*** Type referenced: ntdll!_PEB ***
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
*** *** *** *** *** Either you specified an unqualified symbol, or your debugger *** *** doesn't have full symbol information. Unqualified symbol *** *** resolution is turned off by default. Please either specify a *** *** fully qualified symbol module!symbolname, or enable resolution *** *** of unqualified symbols by typing ".symopt- 100". Note that *** *** enabling unqualified symbol resolution with network symbol *** *** server shares in the symbol path may cause the debugger to *** *** appear to hang for long periods of time when an incorrect *** *** symbol name is typed or the network symbol server is down. *** *** *** *** For some commands to work properly, your symbol path *** *** must point to .pdb files that have full type information. *** *** *** *** Certain .pdb files (such as the public OS symbols) do not *** *** contain the required information. Contact the group that *** *** provided you with these symbols if you need this command to *** *** work. *** *** *** *** Type referenced: nt!IMAGE_NT_HEADERS32 *** *** ***
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
*** ERROR: Symbol file could not be found. Defaulted to export symbols for KERNELBASE.dll -
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
*** ERROR: Symbol file could not be found. Defaulted to export symbols for kernel32.dll -
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
*** ERROR: Symbol file could not be found. Defaulted to export symbols for mswsock.dll -
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
- Symbols can not be loaded because symbol path is not initialized. *
-
* - The Symbol Path can be set by: *
- using the _NT_SYMBOL_PATH environment variable. *
- using the -y <symbol_path> argument when starting the debugger. *
- using .sympath and .sympath+ *
FAULTING_IP: +0 00000000 ?? ???
EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff) ExceptionAddress: 00000000 ExceptionCode: 80000003 (Break instruction exception) ExceptionFlags: 00000000 NumberParameters: 0
CONTEXT: 00000000 -- (.cxr 0x0;r) eax=00000094 ebx=00000001 ecx=00000000 edx=00000000 esi=00000001 edi=00000001 eip=770caaac esp=002ed87c ebp=002ed9fc iopl=0 nv up ei pl nz na po nc cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00200202 ntdll!NtWaitForMultipleObjects+0xc: 770caaac c21400 ret 14h
FAULTING_THREAD: 00000000
BUGCHECK_STR: HANG
PROCESS_NAME: phantomjs.exe
ADDITIONAL_DEBUG_TEXT:
You can run '.symfix; .reload' to try to fix the symbol path and load symbols.
MODULE_NAME: ntdll
FAULTING_MODULE: 77090000 ntdll
DEBUG_FLR_IMAGE_TIMESTAMP: 53eeb4a3
ERROR_CODE: (NTSTATUS) 0xcfffffff -
EXCEPTION_CODE: (NTSTATUS) 0xcfffffff -
DEFAULT_BUCKET_ID: APPLICATION_HANG_WRONG_SYMBOLS_
DETOURED_IMAGE: 1
APP: phantomjs.exe
ANALYSIS_VERSION: 6.3.9600.17029 (debuggers(dbg).140219-1702) amd64fre
DERIVED_WAIT_CHAIN:
Dl Eid Cid WaitType
0 160.20a4 Event
WAIT_CHAIN_COMMAND: ~0s;k;;
BLOCKING_THREAD: 000020a4
PRIMARY_PROBLEM_CLASS: APPLICATION_HANG_WRONG_SYMBOLS_
LAST_CONTROL_TRANSFER: from 76a4c2a0 to 770caaac
STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
002ed9fc 76a4c2a0 00000000 002eda24 00000000 ntdll!NtWaitForMultipleObjects+0xc
002eda54 01a102f3 00000000 002edb18 ffffffff user32!MsgWaitForMultipleObjectsEx+0x159
002edabc 01b14776 00e00000 00000000 00000100 phantomjs!JSStringIsEqualToUTF8CString+0x4287d3
002edae8 0152be89 00000000 00000000 049749d0 phantomjs!JSPropertyNameArrayGetCount+0x915c6
00000000 00000000 00000000 00000000 00000000 phantomjs!JSValueGetType+0x76d29
FOLLOWUP_IP: ntdll!NtWaitForMultipleObjects+c 770caaac c21400 ret 14h
SYMBOL_STACK_INDEX: 0
SYMBOL_NAME: ntdll!NtWaitForMultipleObjects+c
FOLLOWUP_NAME: MachineOwner
IMAGE_NAME: ntdll.dll
STACK_COMMAND: ~0s ; kb
BUCKET_ID: WRONG_SYMBOLS
FAILURE_BUCKET_ID: APPLICATION_HANG_WRONG_SYMBOLS__cfffffff_ntdll.dll!NtWaitForMultipleObjects
ANALYSIS_SOURCE: UM
FAILURE_ID_HASH_STRING: um:application_hang_wrong_symbols__cfffffff_ntdll.dll!ntwaitformultipleobjects
FAILURE_ID_HASH: {93c5e6b5-395e-aa90-3677-86abaa153f2d}
Followup: MachineOwner
0:000> lmvm ntdll start end module name 77090000 771f7000 ntdll (export symbols) ntdll.dll Loaded symbol image file: ntdll.dll Image path: C:\Windows\System32\ntdll.dll Image name: ntdll.dll Timestamp: Sat Aug 16 03:32:19 2014 (53EEB4A3) CheckSum: 001761E0 ImageSize: 00167000 File version: 6.3.9600.17278 Product version: 6.3.9600.17278 File flags: 0 (Mask 3F) File OS: 40004 NT Win32 File type: 2.0 Dll File date: 00000000.00000000 Translations: 0409.04b0 CompanyName: Microsoft Corporation ProductName: Microsoft® Windows® Operating System InternalName: ntdll.dll OriginalFilename: ntdll.dll ProductVersion: 6.3.9600.17278 FileVersion: 6.3.9600.17278 (winblue_r2.140815-1500) FileDescription: NT Layer DLL LegalCopyright: © Microsoft Corporation. All rights reserved. 0:000> !locks -v NTSDEXTS: Unable to resolve ntdll!RtlCriticalSectionList NTSDEXTS: Please check your symbols 0:000> !locks NTSDEXTS: Unable to resolve ntdll!RtlCriticalSectionList NTSDEXTS: Please check your symbols
Can you upload the crash dump to somewhere (dropbox, onedrive, etc.)?
https://www.dropbox.com/s/n0ni49cf5wxsiu7/phantomjs.dmp?dl=0
Have you tried using --debug rather than the Remote debugger to get more output?
Jap I have tried the --debug option to get more information. This is my debug output:
2014-10-21T08:09:17 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=
I don't have forgotten something. The log above is my output.
Have found the problem. When I use the parameter --remote-debugger-port=9000 phantomjs will hang. I have checked my firewall but there is not the problem. The port 9000 is not blocked when I start phantomjs with the remote-debugger parameter. Has anyone an idea why phantomjs hangs with the parameter?
Are you sure that Phantom isn't just waiting for you to call __run(); from the remote debugger? Please be sure to read the short guide to Remote Debugging on http://phantomjs.org/troubleshooting.html as I believe you are describing the expected behavior.
Alternatively, if you don't want that behavior, you can add the command line arg --remote-debugger-autorun=true.
Thanks. Without the command line arg --remote-debugger-autorun=true/false phantom hangs and it doesn't matter if I call __run() or not.