Skip to content

Crash when the target json file is too large #109

@Butter934

Description

@Butter934

My code is here:

# driver.py
import numpy as np
from pyannotate_runtime import collect_types


if __name__ == '__main__':
    collect_types.init_types_collection()
    collect_types.start()
    np.core.test()
    collect_types.stop()
    print("test finished")
    collect_types.dump_stats('type_info.json')

and crashed after some time.

Is that because the target json file too large? What tricks can be used to run it correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions