You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
Platform: Android
Expo version: 32.0.0
Expo cli version: 2.11.8
app run in expo client and stand alone
I've created a stand-alone app for Android that loads a series of png files into sprites. The application always works using the Expo client, and initially works when deployed as a stand-alone app, but after a day or so, the standalone app starts failing with "Invalid pixel data argument for gl.texImage2d()"
The code used to load the image:
let ballSprite = await PIXI.Sprite.fromExpoAsync( require("../assets/images/b3.png") )
I've tried to preload the assets in the App.js with:
I've defined the asset bundle pattern in the app.js
{
expo: {
...
"updates": {
"enabled": true,
"checkAutomatically": "ON_LOAD",
"fallbackToCacheTimeout": 300000
},
"assetBundlePatterns": [
"**/",
"./assets/images/.png"
],
...
}
}
What's concerning is that the app just started failing after having been released for a couple of days. I've tried using some of the old patterns for downloading the assets and manually creating the HTMLImageElement to generate the Sprite, and although the techniques still work with the app when loaded in the Expo client, the stand-along app crashes.
I then changed the images completely and everything worked again. Then after about 15 hours the app started failing again with the same error. Could this be some side effect of accessing the CDN a stand-alone app? Nothing locally is being updated and yet the behavior of the app is changing.
Thank you for putting together such a fantastic integration with Pixi.
The text was updated successfully, but these errors were encountered:
Platform: Android
Expo version: 32.0.0
Expo cli version: 2.11.8
app run in expo client and stand alone
I've created a stand-alone app for Android that loads a series of png files into sprites. The application always works using the Expo client, and initially works when deployed as a stand-alone app, but after a day or so, the standalone app starts failing with "Invalid pixel data argument for gl.texImage2d()"
The code used to load the image:
let ballSprite = await PIXI.Sprite.fromExpoAsync( require("../assets/images/b3.png") )
I've tried to preload the assets in the App.js with:
Asset.loadAsync([
....
require('./assets/images/b1.png'),
....
]),
I've defined the asset bundle pattern in the app.js
{
expo: {
...
"updates": {
"enabled": true,
"checkAutomatically": "ON_LOAD",
"fallbackToCacheTimeout": 300000
},
"assetBundlePatterns": [
"**/",
"./assets/images/.png"
],
...
}
}
What's concerning is that the app just started failing after having been released for a couple of days. I've tried using some of the old patterns for downloading the assets and manually creating the HTMLImageElement to generate the Sprite, and although the techniques still work with the app when loaded in the Expo client, the stand-along app crashes.
I then changed the images completely and everything worked again. Then after about 15 hours the app started failing again with the same error. Could this be some side effect of accessing the CDN a stand-alone app? Nothing locally is being updated and yet the behavior of the app is changing.
Thank you for putting together such a fantastic integration with Pixi.
The text was updated successfully, but these errors were encountered: