Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71929 > unrolled thread
| Started by | Ronak Dhakan <ronaksoni301@gmail.com> |
|---|---|
| First post | 2014-05-23 07:56 -0700 |
| Last post | 2014-05-24 02:36 +0200 |
| Articles | 11 — 8 participants |
Back to article view | Back to comp.lang.python
Windows automatic rebooting due to faulty code Ronak Dhakan <ronaksoni301@gmail.com> - 2014-05-23 07:56 -0700
Re: Windows automatic rebooting due to faulty code Chris Angelico <rosuav@gmail.com> - 2014-05-24 01:04 +1000
Re: Windows automatic rebooting due to faulty code Ronak Dhakan <ronaksoni301@gmail.com> - 2014-05-23 08:26 -0700
Re: Windows automatic rebooting due to faulty code Chris Angelico <rosuav@gmail.com> - 2014-05-24 01:36 +1000
Re: Windows automatic rebooting due to faulty code Rustom Mody <rustompmody@gmail.com> - 2014-05-23 09:05 -0700
Re: Windows automatic rebooting due to faulty code Ronak Dhakan <ronaksoni301@gmail.com> - 2014-05-23 09:08 -0700
Re: Windows automatic rebooting due to faulty code CHIN Dihedral <dihedral88888@gmail.com> - 2014-05-23 09:30 -0700
Re: Windows automatic rebooting due to faulty code Joel Goldstick <joel.goldstick@gmail.com> - 2014-05-23 12:33 -0400
Re: Windows automatic rebooting due to faulty code Terry Reedy <tjreedy@udel.edu> - 2014-05-23 15:19 -0400
Re: Windows automatic rebooting due to faulty code Michael Torrie <torriem@gmail.com> - 2014-05-23 16:54 -0600
Re: Windows automatic rebooting due to faulty code Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-05-24 02:36 +0200
| From | Ronak Dhakan <ronaksoni301@gmail.com> |
|---|---|
| Date | 2014-05-23 07:56 -0700 |
| Subject | Windows automatic rebooting due to faulty code |
| Message-ID | <fbf47420-bcdf-4cf4-9fdd-fb350c52ff7d@googlegroups.com> |
I am learning python, and sometimes when I run a file with a faulty, windows gives a message that the system is rebooting and gives me 1 minute to save my work. Does anyone know how can I fix this? Most of the time a faulty code gives errors in python, but this is unique. I create files like Exercise 1.2.py and run it through IDLE.
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-05-24 01:04 +1000 |
| Message-ID | <mailman.10246.1400857479.18130.python-list@python.org> |
| In reply to | #71929 |
On Sat, May 24, 2014 at 12:56 AM, Ronak Dhakan <ronaksoni301@gmail.com> wrote: > I am learning python, and sometimes when I run a file with a faulty, windows gives a message that the system is rebooting and gives me 1 minute to save my work. Does anyone know how can I fix this? Most of the time a faulty code gives errors in python, but this is unique. I create files like Exercise 1.2.py and run it through IDLE. > I'm very much surprised that any Python coding error could do this. What code triggers this? Is it consistent? More likely it's something else in your system. Pure coincidence. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Ronak Dhakan <ronaksoni301@gmail.com> |
|---|---|
| Date | 2014-05-23 08:26 -0700 |
| Message-ID | <fdbd4917-bd2f-43c4-abc1-cf87a1bc2023@googlegroups.com> |
| In reply to | #71931 |
On Friday, May 23, 2014 8:34:31 PM UTC+5:30, Chris Angelico wrote: > On Sat, May 24, 2014 at 12:56 AM, Ronak Dhakan wrote: > > > I am learning python, and sometimes when I run a file with a faulty, windows gives a message that the system is rebooting and gives me 1 minute to save my work. Does anyone know how can I fix this? Most of the time a faulty code gives errors in python, but this is unique. I create files like Exercise 1.2.py and run it through IDLE. > > > > > > > I'm very much surprised that any Python coding error could do this. > > What code triggers this? Is it consistent? > > > > More likely it's something else in your system. Pure coincidence. > > > > ChrisA Even I am surprised, python errors should stay in python. But I am sure that the reboot is triggered exactly when I run some faulty code. And usually I change the code after reboot, so I haven't checked whether the same code is able to repeat the reboot. This happens even in simple code of 10-15 lines for drawing a polygon. There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-05-24 01:36 +1000 |
| Message-ID | <mailman.10248.1400859710.18130.python-list@python.org> |
| In reply to | #71933 |
On Sat, May 24, 2014 at 1:26 AM, Ronak Dhakan <ronaksoni301@gmail.com> wrote: > Even I am surprised, python errors should stay in python. But I am sure that the reboot is triggered exactly when I run some faulty code. And usually I change the code after reboot, so I haven't checked whether the same code is able to repeat the reboot. This happens even in simple code of 10-15 lines for drawing a polygon. > Aim for consistency and reproducibility. Figure out something that always brings Windows down. More importantly... *tell us what modules you are using*. What draws a polygon here? What are you working with? That's kinda critical here, especially if (as I suspect) it's not part of the Python standard library. > There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ > Solution: Get off Google Groups. Subscribe to python-list@python.org and read it all in your email client, or read comp.lang.python in a real newsreader. That'll fix several other problems too. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2014-05-23 09:05 -0700 |
| Message-ID | <bc8ad8c8-f5c9-438a-899b-28ff80b8fa62@googlegroups.com> |
| In reply to | #71934 |
On Friday, May 23, 2014 9:06:32 PM UTC+5:30, Chris Angelico wrote: > > There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ > Solution: Get off Google Groups. Subscribe to python-list@python.org > and read it all in your email client, or read comp.lang.python in a > real newsreader. That'll fix several other problems too. Or read and follow: https://wiki.python.org/moin/GoogleGroupsPython
[toc] | [prev] | [next] | [standalone]
| From | Ronak Dhakan <ronaksoni301@gmail.com> |
|---|---|
| Date | 2014-05-23 09:08 -0700 |
| Message-ID | <921d8985-0730-4604-985d-7e77a4a4b45f@googlegroups.com> |
| In reply to | #71934 |
It is a small file to draw an approximate circle using Turtle. The reboot does not happen consistently. Here is the code: http://pastebin.com/8T3aRCEd I was thinking whether there is a way to run python in a virtual environment.
[toc] | [prev] | [next] | [standalone]
| From | CHIN Dihedral <dihedral88888@gmail.com> |
|---|---|
| Date | 2014-05-23 09:30 -0700 |
| Message-ID | <d03a476a-b9b2-467a-bf0c-35092215427e@googlegroups.com> |
| In reply to | #71936 |
On Saturday, May 24, 2014 12:08:24 AM UTC+8, Ronak Dhakan wrote: > It is a small file to draw an approximate circle using Turtle. The reboot does not happen consistently. Here is the code: http://pastebin.com/8T3aRCEd > > > > I was thinking whether there is a way to run python in a virtual environment. Check colinux or VMWARE.
[toc] | [prev] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2014-05-23 12:33 -0400 |
| Message-ID | <mailman.10250.1400862845.18130.python-list@python.org> |
| In reply to | #71936 |
[Multipart message — attachments visible in raw view] — view raw
On May 23, 2014 12:12 PM, "Ronak Dhakan" <ronaksoni301@gmail.com> wrote: > > It is a small file to draw an approximate circle using Turtle. The reboot does not happen consistently. Here is the code: http://pastebin.com/8T3aRCEd > > I was thinking whether there is a way to run python in a virtual environment. > -- > https://mail.python.org/mailman/listinfo/python-list Try on different machine. Maybe hardware or driver issue
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-05-23 15:19 -0400 |
| Message-ID | <mailman.10253.1400872824.18130.python-list@python.org> |
| In reply to | #71936 |
On 5/23/2014 12:08 PM, Ronak Dhakan wrote: > It is a small file to draw an approximate circle using Turtle. > The reboot does not happen consistently. Here is the code: > http://pastebin.com/8T3aRCEd from swampy.TurtleWorld import * world = TurtleWorld() This is not the turtle module in the stdlib. It is most like the source of your reboot problem. Report your problem to the author. Also try running your example in the Windows console. (Not nearly as nice, I know.) There might possibly be a bad interaction with Idle. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2014-05-23 16:54 -0600 |
| Message-ID | <mailman.10257.1400885673.18130.python-list@python.org> |
| In reply to | #71933 |
On 05/23/2014 09:26 AM, Ronak Dhakan wrote: > Even I am surprised, python errors should stay in python. But I am > sure that the reboot is triggered exactly when I run some faulty > code. And usually I change the code after reboot, so I haven't > checked whether the same code is able to repeat the reboot. This > happens even in simple code of 10-15 lines for drawing a polygon. > > There was a problem while creating the post asking the question. Here > it is now: > https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ Almost certainly you are experiencing a hardware fault. Possibly bad RAM. Windows will not let user-space code crash the operating system. Though user-space code could trigger something in the kernel that then faults. This is likely what's happening here. But the real cause is probably hardware. If it's not RAM, then it might be video hardware failing.
[toc] | [prev] | [next] | [standalone]
| From | Irmen de Jong <irmen.NOSPAM@xs4all.nl> |
|---|---|
| Date | 2014-05-24 02:36 +0200 |
| Message-ID | <537fe994$0$2831$e4fe514c@news.xs4all.nl> |
| In reply to | #71946 |
On 24-5-2014 0:54, Michael Torrie wrote: > On 05/23/2014 09:26 AM, Ronak Dhakan wrote: >> Even I am surprised, python errors should stay in python. But I am >> sure that the reboot is triggered exactly when I run some faulty >> code. And usually I change the code after reboot, so I haven't >> checked whether the same code is able to repeat the reboot. This >> happens even in simple code of 10-15 lines for drawing a polygon. >> >> There was a problem while creating the post asking the question. Here >> it is now: >> https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ > > Almost certainly you are experiencing a hardware fault. Possibly bad > RAM. Windows will not let user-space code crash the operating system. > Though user-space code could trigger something in the kernel that then > faults. This is likely what's happening here. But the real cause is > probably hardware. If it's not RAM, then it might be video hardware > failing. > Or the computer has been infected by malware. -I.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web