-
Notifications
You must be signed in to change notification settings - Fork 5.8k
PhantomJS crashes #11706
Comments
On Linux, I cannot find the dump file. It is not present in /tmp path. ExceptionHandler::GenerateDump waitpid failed:No child processes |
+1 |
+1 no point in listing a path to a dump file on linux when the file itself is empty |
Same bug Ubuntu 13.10 & PhantomJS 1.9.7 |
Just encountered this on Raspbian / Debian Wheezy w/ PhantomJS 1.10.0 ( git ) |
Program terminated with signal 11, Segmentation fault. |
I work on a mac and it turns out fine local, on my ubuntu server phantom crashes. I am essentially creating a screenshot of a webpage |
Same issue on Ubuntu 14.04 & PhantomJS 1.9.7 . Is it corrected in PhantomJS 2.0 ? |
I'm having the same problem, any updates on this? |
+1 same issue |
+1 and only on Debian 8 fetching https://uniq.site , which is fetched without crashing on Mac OSX And it crashes right on
Also, update from v2.0.0 to v2.1.1 - doesn't helped with this issue. Can anyone from this thread try to |
No crash with development trunk on Debian unstable on x86-64. (Right now, development trunk is very nearly the same thing as 2.1.1.) I doubt this is an out-of-memory issue, but the computer I tested on does have 32GB of RAM. @dr-dimitriu, please tell us whether you're on x86-64, -32, or something else, and how much RAM your computer has. Also, please try to construct a self-contained test case; |
@zackw Thank you for quick response. Could you please post code you have used and phantomjs arguments, you've running on? OS: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux (On top of Proxmox) As I wrote previously - There is no issues on dev stage (Mac OSX 16GB i7), but on production it appears. Is there something I can work around with |
BTW: My running phantomjs flags:
I've played with them all, and without them. - No luck |
I did
With your options I get a whole lot of debug spew mostly having to do with cookies, but there is no error. |
I've got new errors, never seen before (any idea?):
And again no bug report, is there any way to turn it on? |
@zackw Thank you for your help. |
@zackw thank you again for your help.
Hope this may help to someone too. |
My tests were done with 2.1.1, compiled myself. Crash reporting was removed from 2.1.1 because it is almost always useless to us. You can see the problem in the stack trace (presumably from 1.9.x?) you posted - that tells us absolutely nothing meaningful. If changing file system permissions fixes the problem, then it would be helpful to know which file it assumed it could read. You can find that out by putting the permissions back the way they were, and then running
Post the output of the grep. This will print out the last ten failing system calls that phantomjs made before it crashed, and that will probably tell us the name of the file it couldn't access. I might need to see the entire |
@zackw I'll be back with this issue in 24 hours. Sorry, afk |
Okay (I've access to ssh), last 30 - 40 lines is same:
Here is last 200 lines (with omitted similar lines):
|
Drat, I think I need to see the entire file. It's probably huge, so please gzip and then attach it. Also, did it crash? The log won't tell me anything useful if it didn't crash. |
Yes, it is crashed with same behaviour, as described above:
|
Huh, there isn't a single permissions error anywhere in there. It looks more like "ApplicationCache" is corrupted. (It's possible that the corruption happened because of earlier permissions problems.) Please tar up and attach the contents of |
To make it clear - I'm using precompiled version
But somehow it depends. |
Unfortunately I have to get back to the day job now and may not have time to look at this any more for several days. But I have some leads to investigate, and thanks for your help so far. |
Okay (and I'm going to take a nap). Let me know if you will have any idea so far. BTW maybe I should just compile it (not a big deal for me)? We've solved the
Note: currently I'm running 4 processes of phantomjs, and they are renders around 4,500 pages / hour. |
After some monitoring, only next error appears to be related to pjs crashes:
|
Hi there, any news on your end? |
Hi @zackw , just want to let you know: |
I maybe should have been clearer about "I have to get back to the day job now and may not have time to look at this any more for several days". I meant "I won't be doing any PhantomJS work at all until March." Sorry. |
@zackw okay )) |
I've found a solution.
|
Okay, @dr-dimitru, |
I've built a PhantomJS factory where is dozen of PhantomJS servers is ready for incoming request, and if it fails - request will be handled by other instance, while failed instance is restarting. This issue was discussed with main maintainer - there is no fix to it, as it bug of V8 not PhantomJS. |
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! |
Hi,
I am trying to use phantomjs to work with images (canvas). But phantomjs sometimes give out of memory error and sometimes crashes. I want to send you a couple of dmp files, please let me know where I can email you, github does not support attachment of dmp files.
Please let me know the issue/fix soon.
Awaiting your prompt reply.
Thanks,
Mukta.
The text was updated successfully, but these errors were encountered: