-
Notifications
You must be signed in to change notification settings - Fork 25
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
Crash on iOS #16
Comments
Hi @Snehks, |
Hi, I get this error too. Have you already found some time to look at this ? |
This issue is still there after the update to libGDX 1.10.0 |
Hi, sorry for not coming back to you earlier on this one. The issue here is with the specifics of MobiVM. iOS modules basically don't pick up the library's built in asset files (including those shader vert/frag ones). While there's technically still no easy fix, one workaround would be to extract the library's assets and add them to iOS module manually. For that you'd need to
That should do the trick. Please let me know if you have any issues with that. |
Hi,
Many thanks for your answer !
I’ll try that ;-)
Happy new year !
Laurent
De : Anton Chekulaev ***@***.***>
Envoyé : jeudi 30 décembre 2021 20:33
À : crashinvaders/gdx-vfx ***@***.***>
Cc : Laurent Crenier ***@***.***>; Comment ***@***.***>
Objet : Re: [crashinvaders/gdx-vfx] Crash on iOS (#16)
Hi, sorry for not coming back to you earlier on this one.
The problem was identified a while ago and still didn't get any resolution.
The issue here is with the specifics of MobiVM. iOS modules basically don't pick up the library's built in asset files (including those shader vert/frag ones).
While there's technically still no easy fix, one workaround would be to extract the library's assets and add them to iOS module manually. For that you'd need to
1. Grab the entire <https://github.com/crashinvaders/gdx-vfx/tree/master/gdx-vfx/effects/assets> gdx-vfx/effects/assets dir and place it to the root of your iOS submodule.
2. In your robovm.xml file add a resource configuration entry like so
<config>
...
<resources>
<resource>
<directory>assets</directory>
<includes>
<include>**</include>
</includes>
<skipPngCrush>true</skipPngCrush>
</resource>
...
</resources>
That should do the trick. Please let me know if you have any issues with that.
—
Reply to this email directly, view it on GitHub <#16 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AE7IH4FVARPIB7QQQCOK5CTUTSXYFANCNFSM43UXC52Q> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AE7IH4H5BQMH6AUEWGB5Q5DUTSXYFA5CNFSM43UXC522YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHPFPIII.gif> Message ID: ***@***.*** ***@***.***> >
|
Hey @metaphore, thanks for providing an workaround. If I understood this correctly, the vert/frag files are read using
I tested the workaround and I believe it doesn't work because when the Do you have any suggestions on alternatives? (maybe using Cheers! |
Unfortunately, the MobiVM team hasn't provided any helpful insight as of yet and I don't really have any good workaround for the The only thing that can be done now, is to grab the effects code, replace all the |
Thanks! I copied the code for the time being, replacing the references. Note for future readers: you have to do it to iOS only. For Android, still use the Cheers! |
Hi, I am getting the following crash on iOS.
The project works fine on desktop and Android.
The text was updated successfully, but these errors were encountered: