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

Instantiating a Typeface from file causes EXCEPTION_ACCESS_VIOLATION #133

Open
SamuelDidoszak opened this issue Nov 2, 2021 · 3 comments

Comments

@SamuelDidoszak
Copy link

Calling a native method _nMakeFromFile from Typeface class causes an Access Violation. (Typeface.java 142).
It's happening regardless of file and path.
The issue arises when trying to create a Scene from Examples.
Scene requires initialization of static final Typeface iter (Scene.java 7).

Log file:
hs_err_pid512.log

@tonsky
Copy link
Collaborator

tonsky commented Nov 2, 2021

Which example are you trying to run and how? What’s your OS?

@SuperSkidder
Copy link

i have the same problem,
Windows 11
lwjgl example

@tonsky
Copy link
Collaborator

tonsky commented Feb 7, 2022

I can't reproduce it, unfortunately. Can you debug it a little? Does it point to the right file? Does that file exists? You can do that by modifying Scene.java and replacing file function with this:

public static String file(String path) {
        String res = "../scenes/" + path;
        try {
            java.io.File file = new java.io.File(res).getCanonicalFile();
            System.out.println(file + ": " + file.exists());
        } catch (java.io.IOException e) {
            e.printStackTrace();
        }
        return res;
    }

P.S. Can you also try https://github.com/HumbleUI/Skija and see if the problem also exists there? This repo is not updated anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants