Skip to content

Jassimp-native: easily overflow JNI local reference table when loading big models #712

Closed

Description

@dankex

Local references created while accessing Java objects, classes, strings can easily go beyond the limit of 512 entries. Though they don't cause memory leaks since they are freed automatically (when the JNI call completes and control is returned to Java), this does prevent large models from being loaded. Suggest using something like a C++ "smart pointer" to hold local references, and automatically call DeleteLocalRef(...) when it returns from a function. This might need to be done for most functions in jassimp.cpp.

Activity

  1. added a commit that references this issue on Dec 11, 2023
  2. added a commit that references this issue on Feb 5, 2024
  3. added
    Java
    on Apr 17, 2025
  4. added a commit that references this issue on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Java

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions