Title: Recurrent but not reproducible crash when writing to cache · Issue #12475 · python/mypy · GitHub
Open Graph Title: Recurrent but not reproducible crash when writing to cache · Issue #12475 · python/mypy
X Title: Recurrent but not reproducible crash when writing to cache · Issue #12475 · python/mypy
Description: Crash Report Recently we (different team members) are now and then running into a mypy crash which can only be resolved by deleting .mypy_cache. We have no idea yet how to reproduce it - it likely is triggered after changing branches. Bu...
Open Graph Description: Crash Report Recently we (different team members) are now and then running into a mypy crash which can only be resolved by deleting .mypy_cache. We have no idea yet how to reproduce it - it likely ...
X Description: Crash Report Recently we (different team members) are now and then running into a mypy crash which can only be resolved by deleting .mypy_cache. We have no idea yet how to reproduce it - it likely ...
Opengraph URL: https://github.com/python/mypy/issues/12475
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Recurrent but not reproducible crash when writing to cache","articleBody":"\u003c!--\r\n Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\r\nRecently we (different team members) are now and then running into a mypy crash which can only be resolved by deleting `.mypy_cache`. We have no idea yet how to reproduce it - it likely is triggered after changing branches. But we could so far not figure out the problematic code path.\r\n\r\n**Traceback**\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/Users/abc/venv/weplan3.10/bin/mypy\", line 8, in \u003cmodule>\r\n sys.exit(console_entry())\r\n File \"/Users/abc/venv/weplan3.10/lib/python3.10/site-packages/mypy/__main__.py\", line 12, in console_entry\r\n main(None, sys.stdout, sys.stderr)\r\n File \"mypy/main.py\", line 96, in main\r\n File \"mypy/main.py\", line 173, in run_build\r\n File \"mypy/build.py\", line 180, in build\r\n File \"mypy/build.py\", line 256, in _build\r\n File \"mypy/build.py\", line 2727, in dispatch\r\n File \"mypy/build.py\", line 3071, in process_graph\r\n File \"mypy/build.py\", line 3189, in process_stale_scc\r\n File \"mypy/build.py\", line 2311, in write_cache\r\n File \"mypy/build.py\", line 1488, in write_cache\r\n File \"mypy/nodes.py\", line 344, in serialize\r\n File \"mypy/nodes.py\", line 3364, in serialize\r\n File \"mypy/nodes.py\", line 3301, in serialize\r\n File \"mypy/nodes.py\", line 2827, in serialize\r\n File \"mypy/nodes.py\", line 3364, in serialize\r\n File \"mypy/nodes.py\", line 3301, in serialize\r\n File \"mypy/nodes.py\", line 953, in serialize\r\n File \"mypy/types.py\", line 1086, in serialize\r\n File \"mypy/types.py\", line 1482, in serialize\r\n File \"mypy/types.py\", line 611, in serialize\r\n File \"mypy/types.py\", line 1079, in serialize\r\n File \"mypy/nodes.py\", line 2676, in fullname\r\nAttributeError: attribute '_fullname' of 'TypeInfo' undefined\r\n```\r\n\r\n**To Reproduce**\r\n\r\nWell yeah, seems to be some constellation of stars and cache state.\r\n\r\n**Your Environment**\r\n\r\n- Mypy version used: mypy 0.941 (I think it happened with 0.931 as well)\r\n- Mypy command-line flags: Just a bunch of packages passed with `-p` and a config file.\r\n- Mypy configuration options from `mypy.ini` (and other config files):\r\n```\r\n[mypy]\r\nignore_missing_imports = True\r\ncolor_output = True\r\npretty = True\r\nshow_error_codes = True\r\ncheck_untyped_defs = True\r\nwarn_unreachable = True\r\nerror_summary = True\r\n# https://github.com/python/mypy/issues/9091\r\nno_implicit_optional = True\r\n\r\n# pip install sqlalchemy2-stubs\r\nplugins = sqlalchemy.ext.mypy.plugin\r\n```\r\n\r\n- Python version used: 3.10\r\n- Operating system and version: macOS Big Sur\r\n\r\n\u003c!--\r\nYou can freely edit this text, please remove all the lines\r\nyou believe are unnecessary.\r\n-->\r\n","author":{"url":"https://github.com/aberres","@type":"Person","name":"aberres"},"datePublished":"2022-03-28T12:09:01Z","url":"https://github.com/python/mypy/issues/12475"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:d93788db-2775-7709-a61a-edacf28e9cc2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B542:2573D7:23930B6:3086262:6B002FFC |
| html-safe-nonce | acdc4c3a1c66ac2e24f7f2e600f6815552cdace1bb9864e2db02b6e5c01c512d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTQyOjI1NzNENzoyMzkzMEI2OjMwODYyNjI6NkIwMDJGRkMiLCJ2aXNpdG9yX2lkIjoiMzI0OTgxNzA0OTYwOTgwOTkxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0bf21e78ce7efded3b778b329c2ddf68d26101d761b2eef8d04d6caff1146548 |
| hovercard-subject-tag | issue:1183342289 |
| 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/python/mypy/12475/issue_layout |
| twitter:image | https://opengraph.githubassets.com/141ac04dd417a9f0463f1c228350d58cb2e86de6de56e94729d8ba7828a22edf/python/mypy/issues/12475 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/141ac04dd417a9f0463f1c228350d58cb2e86de6de56e94729d8ba7828a22edf/python/mypy/issues/12475 |
| og:image:alt | Crash Report Recently we (different team members) are now and then running into a mypy crash which can only be resolved by deleting .mypy_cache. We have no idea yet how to reproduce it - it likely ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aberres |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width