pmndrs / react-three-fiber

🇨🇭 A React renderer for Three.js
https://docs.pmnd.rs/react-three-fiber
MIT License
27.55k stars 1.59k forks source link

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

Open joekendal opened 4 months ago

joekendal commented 4 months ago
const texture = useTexture(validRemoteUrl)

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

joekendal commented 4 months ago

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

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

farzadali3 commented 6 days ago

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

joekendal commented 6 days ago

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

joekendal commented 6 days ago

@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

farzadali3 commented 6 days ago

@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?