Title: Improve Tutorial to warn about `GitDB` object database · Issue #2065 · gitpython-developers/GitPython · GitHub
Open Graph Title: Improve Tutorial to warn about `GitDB` object database · Issue #2065 · gitpython-developers/GitPython
X Title: Improve Tutorial to warn about `GitDB` object database · Issue #2065 · gitpython-developers/GitPython
Description: I get a this error in our repo specifically with one commit which has 2064 files changed, 3030969 insertions(+). Python 3.10.12 (main, May 27 2025, 17:12:29) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more...
Open Graph Description: I get a this error in our repo specifically with one commit which has 2064 files changed, 3030969 insertions(+). Python 3.10.12 (main, May 27 2025, 17:12:29) [GCC 11.4.0] on linux Type "help", "cop...
X Description: I get a this error in our repo specifically with one commit which has 2064 files changed, 3030969 insertions(+). Python 3.10.12 (main, May 27 2025, 17:12:29) [GCC 11.4.0] on linux Type "help&q...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2065
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve Tutorial to warn about `GitDB` object database","articleBody":"I get a this error in our repo specifically with one commit which has `2064 files changed, 3030969 insertions(+)`.\n\n```\nPython 3.10.12 (main, May 27 2025, 17:12:29) [GCC 11.4.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e import git\n\u003e\u003e\u003e repo = git.Repo('/path/to/my-repo', odbt=git.GitDB)\n\u003e\u003e\u003e commit = repo.head.commit\n\u003e\u003e\u003e iterator = commit.tree.traverse()\n\u003e\u003e\u003e while True:\n... next(iterator)\n... \n … lots of output …\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 2, in \u003cmodule\u003e\n File \"/home/username/.local/lib/python3.10/site-packages/git/objects/util.py\", line 575, in _traverse\n addToStack(stack, item, branch_first, next_d)\n File \"/home/username/.local/lib/python3.10/site-packages/git/objects/util.py\", line 535, in addToStack\n lst = self._get_intermediate_items(item)\n File \"/home/username/.local/lib/python3.10/site-packages/git/objects/tree.py\", line 209, in _get_intermediate_items\n return tuple(index_object._iter_convert_to_object(index_object._cache))\n File \"/home/username/.local/lib/python3.10/site-packages/gitdb/util.py\", line 253, in __getattr__\n self._set_cache_(attr)\n File \"/home/username/.local/lib/python3.10/site-packages/git/objects/tree.py\", line 215, in _set_cache_\n ostream = self.repo.odb.stream(self.binsha)\n File \"/home/username/.local/lib/python3.10/site-packages/gitdb/db/base.py\", line 213, in stream\n return self._db_query(sha).stream(sha)\n File \"/home/username/.local/lib/python3.10/site-packages/gitdb/db/pack.py\", line 103, in stream\n return entity.stream_at_index(index)\n File \"/home/username/.local/lib/python3.10/site-packages/gitdb/pack.py\", line 784, in stream_at_index\n return self._object(None, True, index)\n File \"/home/username/.local/lib/python3.10/site-packages/gitdb/pack.py\", line 737, in _object\n streams = self.collect_streams_at_offset(offset)\n File \"/home/username/.local/lib/python3.10/site-packages/gitdb/pack.py\", line 871, in collect_streams_at_offset\n streams = self._pack.collect_streams(offset)\n File \"/home/username/.local/lib/python3.10/site-packages/gitdb/pack.py\", line 609, in collect_streams\n ostream = pack_object_at(c, offset, True)[1]\n File \"/home/username/.local/lib/python3.10/site-packages/gitdb/pack.py\", line 86, in pack_object_at\n data = cursor.use_region(offset).buffer()\n File \"/home/username/.local/lib/python3.10/site-packages/smmap/mman.py\", line 133, in use_region\n self._region = man._obtain_region(self._rlist, offset, size, flags, False)\n File \"/home/username/.local/lib/python3.10/site-packages/smmap/mman.py\", line 521, in _obtain_region\n self._collect_lru_region(window_size)\n File \"/home/username/.local/lib/python3.10/site-packages/smmap/mman.py\", line 338, in _collect_lru_region\n lru_region.increment_client_count(-1)\n File \"/home/username/.local/lib/python3.10/site-packages/smmap/util.py\", line 179, in increment_client_count\n self.release()\n File \"/home/username/.local/lib/python3.10/site-packages/smmap/util.py\", line 187, in release\n self._mf.close()\nBufferError: cannot close exported pointers exist\n\u003e\u003e\u003e \n```","author":{"url":"https://github.com/sukima","@type":"Person","name":"sukima"},"datePublished":"2025-08-06T21:48:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2065/GitPython/issues/2065"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9c533d80-6e69-8af9-95f9-094ea10539fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 927C:274FD0:2E0BD5:4006E8:696965B3 |
| html-safe-nonce | d597d8794d024393fc0d5e9b9ec0690d11c6633e716bd08401c7557eca1326a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjdDOjI3NEZEMDoyRTBCRDU6NDAwNkU4OjY5Njk2NUIzIiwidmlzaXRvcl9pZCI6IjcxMDg0OTU0MDg2NzIzNjgwNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 09ffd22dc3c7a8d08594517b43f4d982676ca4b4e575c11364b34b0b7d295862 |
| hovercard-subject-tag | issue:3298184898 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/2065/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b70a345f67d70d7e6514d034c445e6ba4f2d9fb7c64041c770b8acc0f243c61/gitpython-developers/GitPython/issues/2065 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b70a345f67d70d7e6514d034c445e6ba4f2d9fb7c64041c770b8acc0f243c61/gitpython-developers/GitPython/issues/2065 |
| og:image:alt | I get a this error in our repo specifically with one commit which has 2064 files changed, 3030969 insertions(+). Python 3.10.12 (main, May 27 2025, 17:12:29) [GCC 11.4.0] on linux Type "help", "cop... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sukima |
| hostname | github.com |
| expected-hostname | github.com |
| None | 48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 669463fcc54773a88c1f5a44eef6b99a5504b9c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width