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

MacOS invalid range error #120

Open
mskayali opened this issue Jan 2, 2025 · 6 comments
Open

MacOS invalid range error #120

mskayali opened this issue Jan 2, 2025 · 6 comments

Comments

@mskayali
Copy link

mskayali commented Jan 2, 2025

Swift/StringCharacterView.swift:163: Fatal error: String index is out of bounds

Screenshot 2025-01-02 at 08 39 19
@rohitsangwan01
Copy link
Contributor

rohitsangwan01 commented Jan 8, 2025

@mskayali do you have the UUID which is causing this crash ?

@oneplus1000
Copy link

I'm getting the same error. When receiving the service code "daf51c01"

Image

@mskayali
Copy link
Author

I,ve solve this by changing line 152 as (uuid.length>3 ? 4 : uuid.length) but probably this is not optimal solution.

@rohitsangwan01
Copy link
Contributor

@oneplus1000 @mskayali
We have handled the UUID parsing on dart side now, so probably we will remove this formatting on native side, that should fix the issue, you can try to change line 351 to this and try again

services?.map { $0.uuidStr }

@oneplus1000
Copy link

thank you 😄

@fotiDim
Copy link
Contributor

fotiDim commented Feb 15, 2025

It should be addressed by #138

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

4 participants