Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assimp (asset import library) crashes code generator #97

Open
DemiMarie opened this issue Jan 24, 2022 · 2 comments
Open

Assimp (asset import library) crashes code generator #97

DemiMarie opened this issue Jan 24, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@DemiMarie
Copy link
Contributor

Traceback (most recent call last):
  File "/home/user/sandboxed-api/sandboxed_api/tools/generator2/sapi_generator.py", line 73, in <module>
    app.run(main)
  File "/usr/lib/python3.10/site-packages/absl/app.py", line 312, in run
    _run_main(main, args)
  File "/usr/lib/python3.10/site-packages/absl/app.py", line 258, in _run_main
    sys.exit(main(argv))
  File "/home/user/sandboxed-api/sandboxed_api/tools/generator2/sapi_generator.py", line 60, in main
    result = generator.generate(FLAGS.sapi_name, FLAGS.sapi_functions,
  File "/home/user/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 729, in generate
    related_types = self._get_related_types(function_names)
  File "/home/user/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 790, in _get_related_types
    types += sorted(r for r in fn_related_types if r not in processed)
  File "/home/user/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 165, in __gt__
    self._tu.order[other._get_declaration().hash])  # pylint: disable=protected-access
KeyError: 3995101709

The key depends on the set of headers chosen. Not all of the headers cause this, but many do.

@cblichmann cblichmann added the bug Something isn't working label Jan 24, 2022
@cblichmann
Copy link
Member

Which specific headers cause this?

@DemiMarie
Copy link
Contributor Author

/usr/include/assimp/BaseImporter.h for one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants