This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Christian.Kleineidam
Recipients Christian.Kleineidam
Date 2021-06-14.18:47:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623696423.1.0.630569105584.issue44421@roundup.psfhosted.org>
In-reply-to
Content
I'm writing a model that needs a lot of random numbers. The model counts up to "Year:640: Count:1339" (taking around two minutes) and then hangs on random.uniform(0, 1). While it hangs, the amount of RAM python takes grows till it eats up all available RAM with RAM usage growing by around 100 MB per second.

I'm running Windows 10 and the error appears in both Python 3.8.8 as well as in 3.9.5. I'm attaching a file that reproduces the error. 

File "C:\Users\Christian\folder\obfuscated.py", line 427, in <module>
    population = population.next()

  File "C:\Users\Christian\folder\obfuscated.py", line 385, in next
    return Class4(self.nextClass4)

  File "C:\Users\Christian\folder\obfuscated.py", line 280, in __init__
    var42.var30()

  File "C:\Users\Christian\folder\obfuscated.py", line 177, in var30
    var22.var30(self.var17,self.var18,self.var21)

  File "C:\Users\Christian\folder\obfuscated.py", line 100, in var30
    self.barClass1s.append(var23.child())

  File "C:\Users\Christian\folder\obfuscated.py", line 29, in child
    if var6>random.uniform(0, 1):

  File "C:\Progs\anaconda3\lib\random.py", line 417, in uniform
    return a + (b-a) * self.random()
History
Date User Action Args
2021-06-14 18:47:03Christian.Kleineidamsetrecipients: + Christian.Kleineidam
2021-06-14 18:47:03Christian.Kleineidamsetmessageid: <1623696423.1.0.630569105584.issue44421@roundup.psfhosted.org>
2021-06-14 18:47:03Christian.Kleineidamlinkissue44421 messages
2021-06-14 18:47:03Christian.Kleineidamcreate