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
Longevity & system freeze with Ubuntu 16 #26
Comments
|
Why yes, I am running in debug mode. I thought it might be helpful. I’ll try running it without the -g switch.
I see there was a new commit posted just the other day so I’ll take that in one as well.
Thanks!
|
Hi, I pulled latest commit, made sure every apt-get is updated, ran the SSCCE (output below), but the system still freezes after hours of usage. rob@rob-virtual-machine:~$ python3 test.py |
Perhaps a memory consumption issue. I coded the script to shutdown and restart Would a 1 GB process cripple your VM? I'll add a command line argument to set this maximum memory usage as a parameter. Please watch for the next commit. |
I have plenty of memory available. I added another 8GB to the VM last week hoping it would make a difference. Thanks for the update. |
Try
Or to relaunch
|
I tried with -mm 0; still freezing after hours of usage. |
Okay, thanks. I've wrapped all the calls to I'm not seeing this myself. Would you please go back to debug mode and post the last few lines where the hang occurs to determine which method might be the culprit? Perhaps do this a few times to see if the problem is consistent. Hopefully that would point the way to a fix or at least where more verbose out is required. |
Would you please add a debug Also, if you know how, call |
Thanks—that's very helpful. I hadn't seen one of those exceptions before. I'm going to go puzzle over this and install the script on my own VM and see if I see the same issue, and search to see if others have had issues with I have a speculation-based request: would you please comment out the |
Another candidate area is inadequate garbage collection after opening and closing jillions of |
I'm testing with that commented out. Will report back. Thanks! |
Thanks for trying. I'll start looking into possible garbage collection issues and try to replicate on my own VM. |
This |
Maybe I missed it, but that's discussing a freeze of phantjoms itself and not entire system freeze? It's possible they are related. Seems like a rather nasty bug to kill the whole OS with bad app like that. |
The OS has an issue if a hanging process brings it down. I'm just cross-referencing relevant |
Interesting comment here: ariya/phantomjs#14972 |
This issue is covered with the Also, I checked a couple of the url's you show during a freeze above, and do not see anything unusual about those pages. For example, this links has only 35 elements and loads just fine:
I'm investigating the garbage collection possibility. You're just seeing a single For reference, here's a command that will show the process status of all running
|
Having posted this I see that my own error handler is the culprit in the stack overflow, which could also cause a system freeze if Python's max recursion depth exceeds system resources. I believe that I've isolated and fixed this issue. Please pull the latest and let me know what happens. And thanks for pushing on this thread. |
Thanks for trying. Throwing rocks at the code is the only way to make it bulletproof, to mix metaphors. Please try this before we throw this over the fence to PhantomJS.
|
1 - that's how I installed |
Did this work for you? I've been running smoothly for over a week now. Here are a couple bash commands to check the process status of both the phantomjs process(es) and the parent python script process:
|
I've tested on a CentOS VM and it's solid there. I believe this a some combination of phantomjs running with the OS and stack on your box. Would you please initiate an issue for this at https://github.com/ariya/phantomjs/issues/? |
Confirming I have over 12 hours of up time on CentOS. There is just something broken with Ubuntu. |
Great. Thanks again for your time and comments. Though we weren't able to address the Ubuntu issue, thinking about it helped to point out and address other robustness issues, so it was definitely effort well spent. |
Hi,
I'm facing a rather perplexing problem with this script. After some period of time (hours), my Ubuntu 16 - desktop flavor VM will completely freeze. This means that it doesn't send or respond to network activity and the console is frozen. I am forced to reset the VM. I checked of the various logs in /var/log but there wasn't anything of interest in there. The usual googling/fixes suggested for Ubuntu freezes (such as editing grub) didn't help. Has anyone else encountered this issue or have thoughts on where to look?
FWIW, this is a really 'clean' install of Ubuntu 16. I grabbed the latest ISO, built a VM, installed the required packages to run this script, and that's about it.
The text was updated successfully, but these errors were encountered: