react-three-fiber icon indicating copy to clipboard operation
react-three-fiber copied to clipboard

Expo 50 on iOS: useTexture throws "Failed to getSize of Image"

Open joekendal opened this issue 1 year ago • 5 comments

const texture = useTexture(validRemoteUrl)

Failed to getSize of file:///var/mobile/Containers/Data/Application/...

joekendal avatar Jul 01 '24 20:07 joekendal

Line 131 in packages/fiber/src/native/polyfills.ts

Related issue: https://github.com/expo/expo-three/issues/297

joekendal avatar Jul 01 '24 21:07 joekendal

Hey @joekendal, were you able to resolve this issue. I am facing the same error on iOS when using a s3 presigned url.

farzadali3 avatar Nov 07 '24 12:11 farzadali3

I had the same problem with S3 presigned url but found a workaround

joekendal avatar Nov 07 '24 12:11 joekendal

@farzadali3 I cannot check the project repo as it was a contract and have deleted my copy.

But I think it had something to do with loading it manually using https://github.com/expo/expo-three/issues/297#issuecomment-1815403400

joekendal avatar Nov 07 '24 12:11 joekendal

@joekendal Thanks a lot for your prompt response. I saw your comment, but it just says to pass the whole asset instead of the URI—am I missing something?

farzadali3 avatar Nov 07 '24 13:11 farzadali3