-
Notifications
You must be signed in to change notification settings - Fork 5.8k
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Another fatal Windows exception 0xc0000005 #14020
Comments
OS? |
Windows 10 Enterprise. Version 1511 (OS Build 10586.104) |
I too have this same issue. I can reproduce this with the version example script. I can also reproduce it with just the Tested with PhantomJS v2.1.1 on Win7 Enterprise, SP1, x64. |
I was unable to reproduce it. Let me think what we can do to solve this. |
I'm facing this issue too. Win7 Enterprise SP1 x64 |
+1 Fatal Windows exception, code 0xc0000005. If there is anything I can do to assist in fixing this problem? |
I can reproduce it without a script like @perrydillard too. Even |
+1 operating system: window7 64 bit
|
I am also seeing this error on Win7 Enterprise 64 SP1, even when I just run --help or --version. |
According to MSDN, error code C0000005 means that the program accessed memory in some way it's not allowed to; basically the Windows equivalent of "segmentation fault". We should probably look into printing a friendlier error message, but that's not important right now. A crash on startup, which is unreproducible on the machine used to build the software, smells to me like some sort of library compatibility problem. Anyone experiencing the problem -- is it possible for you to rebuild PhantomJS from source on the exact computer you mean to run it on, and see if that works? Follow the instructions here. It would also be interesting to know whether installing MSVC on that computer makes the problem disappear. |
I am seeing the issue, when I use page.onCallback for do screenshot. Win7 Enterprise 64 SP1 |
I solved this issue by removing phantomjs in NPM, after that i downloaded phantomjs 2.0.0 from the official website and added the bin folder to the PATH in windows. |
We have the same issue on one of developers PCs. Strange that it works on my pc with nearly the same configuration (windows 7 professional 64bit SP1). Only rollback to 2.0.0 helps. 2.1.1 fails on any activity: javascript, opening url anything. The most sad thing is that no more info (windows event log etc) except: Update: |
This is a really serious bug. I was using casperjs, and it was closing without any msg. Then I had to restart the script. Got the problem on Ubuntu 14.04 x64 droplet |
I have the same crash. I am running from Windows7. |
Crash on Windows 7 Professional 64Bit SP1 using PhantomJS 2.1.1 on call to phantom.exit(); |
crash on both windows 8 & windows 8.1 using phantomjs 2.1.1 in the middle of running test |
+1 |
Windows 7 x64 crashes after every run using
|
I checked the Application section of the Windows event logs and found the details: nvinit.dll is an Nvidia D3D shim driver. I tried running PhantomJS over remote desktop, and it didn't error out! So at least in my case, it has something to do with the GPU drivers. I went into the device manager and rolled back the NVIDIA GeForce GT 630M drivers. After a reboot PhantomJS ran without error. If you're running in to this issue, you may want to check your event viewer logs to get more details. |
I am facing the same issue, but only in the case I am trying to access an iframe in my tests. Tried all of the above resolutions, still facing the issue:
Is there anything else that someone tried and succeeded, in working around this issue? |
The problem can be solved building phantomjs as a native X64 Windows application. |
Has any managed to do that? I'm assuming phantomjs does not yet offer this library, if not, do you know of any futures plans? |
I also got this:
I'm using 64bit Windows 7. |
The problem is usually related to the memory limit associated to 32bit processes on Windows. |
phantomjs --version |
in my case it was lack of memory, I made more space on hard drive and it's works |
We also get this error in our Unit-Tests, on some developer machines: I could figure out, that it only appears when using the "karma-coverage" Plugin. When I remove it, it dosn't happen, and the Unit Tests pass through without a problem. My machine: Windows 7 Enterprise x64 Edit 20.10.2016: Okay, it dosn't seems to have to do something with karma-coverage. |
Same issue here on Windows 10, and it also occasionally happens on our CircleCI instance. |
I moved to nightmareJS and Electron since no one in phantomjs is really trying to do much regarding this issue even after 1 year. The only thing I found out was the memory leak was hogging the RAM and there was this error. |
Same error on Windows 7 Enterprise. The saddest thing is still no additional information why it crashes. |
how to fix the issue?? |
I am also having this issue. Any solution? |
Although we locally had some success on x64 platform, we eventually moved to Headless Chrome |
@WilliamHolmes |
@MateuszChilinski The only way to solve this issue right now is to give up and move on to other automation tool or actively develop PhantomJS itself. |
Such a shame :( Know anything similar in syntax to CasperJS, so the migration would be not that painful? :) |
The other option is to create a x64 phantom build. This would address most memory issues. |
Hmm, I'll try that then. Thanks for the help William! :) |
@MateuszChilinski, I switched to nightmareJS when this problem persisted, but now chromeless and puppetter came, which means we can do more. |
I had the same error message. I spent almost a day looking for a solution and then realized that the issue was a memory problem due to setting loadimages to false. I switched to true and no more problem. Hope this will help someone in the same situation. |
@Nzha I am afraid that it might not be the root cause for other cases, I used your solution and the problem still exists, also I have had by default loadimages to true(as I used screenshots and it was useful). |
@MateuszChilinski Sorry this solution didn't work for you. Have you tried using the 2.5 beta? You can find it here: https://bitbucket.org/ariya/phantomjs/downloads/ |
@Nzha 2.5 beta indeed eliminated problems with this error, but the code stopped working as it should be :P Some problems with clicking buttons in my case, I couldn't resolve it for now. And beta2 does not work at all :( |
In case you are testing some UI components and have an empty src attribute in your html template, it can crash your phantomJS instance. yes it can. My error log:
07 09 2017 03:31:04.017:ERROR [launcher]: PhantomJS stdout: 07 09 2017 03:31:04.018:ERROR [launcher]: PhantomJS stderr: sometimes it showed fatal Windows exception 0xc0000005 along the crash. changing the empty img tag to span worked. |
The same issue. How to fix it? |
Well, if you read the topic, you will know the answer - there are a few fixes for that and each of them has its cost. |
Guys, maybe you could try SlimerJS, it worked fine for me. |
Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
Моя ошибка возникла когда я создал переменную "sID" в самом начале файла: var sID; попытался обратиться к ней, к "sID", из "page.onUrlChanged": page.onUrlChanged = function(targetUrl) { а заполнил её, sID, содержимым в page.open: page.open(address, function (status) { когда убрал clearInterval(sID) и phantom.exit() из page.onUrlChanged, то ошибка исчезла. |
Any solution on this?? |
http://www.msn.com works
https://www.msn.com doesn't work
Also, the bug reporting link ironically 404s.
http://phantomjs.org/bug-reporting.html
The text was updated successfully, but these errors were encountered: