Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handling Python Fatal Error
#8
Sorry for reviving an old thread. I just figured out what this error means after many hours of digging, and it frustrates me that I couldn't find good documentation on the error itself. This seems like a very easy mistake to make.

None is a special, global object. What "deallocating None" means is that the reference count on "None" has reached 0, and None is to be deallocated (AKA deleted). This is a bad thing! It likely means that a Python library written in C/C++ is returning Py_None for use in Python proper without first calling Py_INCREF(Py_None). The error then shows itself elsewhere in code because the ref count on None is now 1 too few. When someone throws away its reference to None, only then will this error present itself. It may or may not be a problem in GLib.py if this is the case.
Reply


Messages In This Thread
Handling Python Fatal Error - by richajain1785 - Feb-10-2021, 04:06 PM
RE: Handling Python Fatal Error - by Larz60+ - Feb-10-2021, 06:25 PM
RE: Handling Python Fatal Error - by richajain1785 - Feb-11-2021, 08:51 AM
RE: Handling Python Fatal Error - by Larz60+ - Feb-11-2021, 09:55 AM
RE: Handling Python Fatal Error - by richajain1785 - Feb-11-2021, 11:12 AM
RE: Handling Python Fatal Error - by Larz60+ - Feb-11-2021, 10:24 PM
RE: Handling Python Fatal Error - by nilamo - Feb-12-2021, 04:58 PM
RE: Handling Python Fatal Error - by Tails86 - Oct-14-2021, 01:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calculating Average with Error Handling mikasa 7 641 May-07-2024, 07:48 AM
Last Post: snippsat
Star python exception handling handling .... with traceback mg24 3 1,364 Nov-09-2022, 07:29 PM
Last Post: Gribouillis
  Help needed with a "for loop" + error handling tamiri 2 2,709 May-27-2022, 12:21 PM
Last Post: tamiri
  Handling pdf files with python. fuzzin 1 1,323 Jan-19-2022, 02:24 PM
Last Post: ThiefOfTime
  Handling multi-input/output audio in python bor1904 4 3,685 Nov-04-2020, 08:25 AM
Last Post: CHLOVRL
  Fatal error after trying to play sound. giladal 0 1,976 Oct-22-2020, 10:27 AM
Last Post: giladal
  Error Handling JarredAwesome 5 3,087 Oct-17-2020, 12:41 AM
Last Post: JarredAwesome
  Python Requests package: Handling xml response soumyarani 1 2,233 Sep-14-2020, 11:41 AM
Last Post: buran
  Fatal python error, need help ryanmagid 0 2,422 Aug-09-2020, 05:51 PM
Last Post: ryanmagid
  Handling Multiple USB ports in Python samalpramod 0 4,531 Aug-01-2020, 07:40 PM
Last Post: samalpramod

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020