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

Wrap the name retrieval of pEnv.ref with try-catch #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GUIEEN
Copy link

@GUIEEN GUIEEN commented Jul 2, 2024

        env.name = pEnv.ref.name
            .cast<Utf8>()
            .toDartString(); // This always fails one time in this loop

I can't inspect the function code(getEnvironmentList) called by ffi, only thing I could check is symbols are registered from ./libailia.dylib binary file.

not sure why ref.name is failing on conversion to dart's string type.

env

❯ flutter --version                            
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (4 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3

OS: macos, 14.3.1 (23D60)

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

Successfully merging this pull request may close these issues.

1 participant