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: github-redirect.dependabot.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:7bed3bc2-1613-f443-d9d4-26e0d8331704 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6B2:37CCD2:382B26:4CC561:696AA726 |
| html-safe-nonce | ba58365b0a6ce741de3a908837424674d2b4e9301d22ac31cfd2d388a13852f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkIyOjM3Q0NEMjozODJCMjY6NENDNTYxOjY5NkFBNzI2IiwidmlzaXRvcl9pZCI6IjQ4Njk2MTIwNDM0MDk5OTE0NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3d918cf3d4a27f274c66d0c83ed4e4211846fd9528e859a5b41e80a9292dcc0b |
| 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 | 3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9 |
| 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 | dd9a979046e6382bd084e2bd873bf65f797125ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width