facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
117.75k stars 24.16k forks source link

When calling the Image.getSize method, an error is reported. #45339

Closed nianxiongdi closed 6 hours ago

nianxiongdi commented 1 month ago

Description

When calling the Image.getSize method, an error is reported. The error message is failed to get size for image https://xxxx/xxx.png

Steps to reproduce

scaffolding tools

React Native Version

0.73.0

Affected Platforms

Build - MacOS

Output of npx react-native info

failed to get size for image  https://xxxx/xxx.png

Reproducer

-

Screenshots and Videos

No response

github-actions[bot] commented 1 month ago
:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available - 0.73.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
github-actions[bot] commented 1 month ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
cortinico commented 1 month ago

Please provide a valid repro

efstathiosntonas commented 1 month ago

@cortinico I've starting getting this error on iOS with images being picked by the library on 0.74.3

Failed to getSize of file:///var/mobile/Containers/Data/Application/1CFA2DA2-6D24-44E1-A36C-BA4D579EE700/tmp/AA057E22-3A8E-4ABD-A01A-D15B44BB9FF3.jpg

this is the full stack trace:

Screenshot 2024-07-26 at 12 12 08

It's hard to repro, I use rreact-native-image-picker and it appears it's totally random.

react-native-bot commented 1 week ago

This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

react-native-bot commented 6 hours ago

This issue was closed because the author hasn't provided the requested feedback after 7 days.