Comments (9)
Commented by: Philipp Wojke (pw)
Suggested patch for svn revision 60825.
If there are newer revisions before this patch is applied all usages of weakref callbacks should be checked for described bug.
from fdb.
Modified by: Philipp Wojke (pw)
Attachment: fbcore.py.patch [ 12680 ]
from fdb.
Modified by: Philipp Wojke (pw)
Attachment: objgraph.png [ 12681 ]
from fdb.
Commented by: Philipp Wojke (pw)
Additional change to Transaction.__close_cursors to ignore already deleted cursors. Otherwise an exceptions may be raised when closing cursors from Transaction.__del__ if the cursor was already garbage collected.
There may be some more places where weakly referenced objects that had been already garbage collected are accessed from __del__ methods.
from fdb.
Modified by: Philipp Wojke (pw)
Attachment: fbcore.py.2.patch [ 12686 ]
from fdb.
Commented by: Philipp Wojke (pw)
Forget to include something in patch 2. Use a special proxy instead of weakref.proxy to only call callback used in weakref if callback function still exists.
from fdb.
Modified by: Philipp Wojke (pw)
Attachment: fbcore.py.3.patch [ 12687 ]
from fdb.
Modified by: @pcisar
status: Open [ 1 ] => Closed [ 6 ]
resolution: Fixed [ 1 ]
Fix Version: 1.4.5 [ 10671 ]
from fdb.
Commented by: @pcisar
Patch tested and accepted. Many thanks Philipp.
from fdb.
Related Issues (20)
- does not work in pypy HOT 4
- The location of Firebird Client Library could not be determined HOT 13
- German Umlaute in Database path HOT 2
- fdb decodes message with a system encoding while it`s encoded using server encoding HOT 4
- -904 error in FireBird 2.5 HOT 1
- File firebird.log
- Python FDB ELFCLASS32 error
- "invalid database handle (no active connection)" from MacOS with arm64 M1 HOT 1
- Thread name for event_conduit
- Dont work with sqlalchemy 2.0 HOT 1
- non-ascii characters in database path causes file not found error HOT 1
- Support status of this project? HOT 1
- EventConduit's wait() method never exits on database disconnect HOT 1
- Useless dependency on future
- fdb.connect() spoils POSIX signal handlers HOT 2
- String parameters are incorrectly checked for their size and destroy query HOT 1
- UnicodeDecodeError on database connection HOT 4
- ReferenceError exception when closing weakly referenced cursor [PYFB81] HOT 3
- Multiple Firebird Instances HOT 4
- Support for custom row factories
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fdb.