Skip to content
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

Image crash #10553

Closed
xsdlr opened this issue Oct 26, 2016 · 49 comments
Closed

Image crash #10553

xsdlr opened this issue Oct 26, 2016 · 49 comments
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@xsdlr
Copy link

xsdlr commented Oct 26, 2016

Description

[error][tid:com.facebook.react.ImageLoaderURLRequestQueue][RCTNetworkTask.m:104] Missing request token for request: <NSMutableURLRequest: 0x600000008aa0> { URL: picture url }

The url of picture have been checked and is working fine.
Image

Reproduction

Put some Network Images on the Page and reloading the application, you will see this error. But about roughly 3% of the time when loading or reloading the application, we are getting a crash.

Additional Information

  • React Native version: 0.35
  • Platform: iOS
  • Operating System: MacOS
@lacker
Copy link
Contributor

lacker commented Oct 26, 2016

Hmm it seems like you have censored out a key part for reproducing this bug. Can you repro this using rnplay.org, and using an image that you feel okay sharing what it is?

@gre
Copy link
Contributor

gre commented Oct 26, 2016

I also experienced this bug when developing with RN (dev mode, simulator).
I'm not sure if it's somehow related to #10433

@knyga
Copy link

knyga commented Nov 20, 2016

image

Same on my side. Resource exists if I check the path.
Happened on my side when I tried to use undefined variable.

import { take, put } from 'redux-saga/effects';
import { IMAGE } from '../actions/image';

function* watchImageFailure() {
  while (true) {
    const action = yield take(IMAGE.CREATE.FAILURE);
    Alert.alert('Error', 'Image wasn\'t uploaded');
  }
}

export default [
  watchImageFailure,
];

There was no Alert imported.

@keeleycarrigan
Copy link

I'm experiencing pretty much the exact same thing today, intermittently.

@chrisharrison
Copy link

Also getting this, and it's causing some images not to display. The images were working fine before and the paths have not changed.

@perrosnk
Copy link

I am also getting this error

@chrisharrison
Copy link

chrisharrison commented Mar 25, 2017 via email

@perrosnk
Copy link

I just discovered that there was a similar issue with my server as well. Thank you @chrisharrison

@jaredtibs
Copy link

I am experiencing this as well. Anyone aware of a fix or workaround for this issue?

@Kowaio
Copy link

Kowaio commented Apr 14, 2017

Hello guys,

upping this issue as I see it also in my app with an asset picture. I'm using RN 0.39.
If anybody found a workaround it'd be great!
Thanks!

@digitaldavenyc
Copy link

+1 for this issue happened after upgrading to RN 0.44

@timrc
Copy link

timrc commented May 15, 2017

+1 Same issue happening here after RN 0.44. I'm using https://lorempixel.com images.

@tomazahlin
Copy link

Same here. We updated some time ago to RN 0.41. But on Friday it worked, today on Monday we get this error all the time. What is this???

@iwater
Copy link

iwater commented May 23, 2017

same on RN 0.43.4, random happen

@chenyanji
Copy link

same on RN 0.44, random happen

@sunnylqm
Copy link
Contributor

sunnylqm commented Jun 6, 2017

ping @ide @javache

@javache
Copy link
Member

javache commented Jun 9, 2017

Commenting +1 is not useful, those comments will be deleted.

Please provide a sample app that reproduces the issue.

@facebook facebook deleted a comment from shireen Jun 9, 2017
@jackqqxu
Copy link

same problem on RN0.38

@jinwei233
Copy link

same on RN 0.44, random happen

@LittleLiByte
Copy link

+1

@chrisharrison
Copy link

chrisharrison commented Jun 29, 2017

A lot of people are +1'ing this issue but how many are coming back to say how they resolved it? As I said earlier, I do not believe this is an RN bug per se, but happens when your app is making errnoneous network requests or a server you are calling is not responding correctly.

@jslz
Copy link

jslz commented Jul 25, 2017

hello... I am getting it today for our splash image that has otherwise worked 100%. I am trying to get our foregrounding - backgrounding ux to work well, and am seeing this now. This is a dev build hitting the local packager for a resource that would be baked-in in production. What is extra weird is that it first shows the splash page on resume (because that is baked into the xcode app maybe?) and then says the error about the splash screen. weird. The file really does exist, I can ls it ok. RN 0.45.1 on Mac OS 10.12.5 with node 6.11.1.

missingrequesttoken

@uiue
Copy link

uiue commented Jul 26, 2017

same on RN 0.46.4, random happen.
request url: http://img1.tbcdn.cn/tfscom/i2/133702239/TB27BKdvYtlpuFjSspoXXbcDpXa_!!133702239.jpg

<Image style={[styles.image,imagesize]} source={{uri: 'http://img1.tbcdn.cn/tfscom/i2/133702239/TB27BKdvYtlpuFjSspoXXbcDpXa_!!133702239.jpg'}}>

@txwh
Copy link

txwh commented Jul 27, 2017

nothting

@uiue
Copy link

uiue commented Jul 27, 2017

random happen.reload again

@vitorL
Copy link

vitorL commented Jul 27, 2017

Maybe you have to clear the cache, I was having the same issue.
Not sure if it is related to cache or AssyncStorage but i've reset both and the problem stoped.
Good Luck all

@spicyboiledfish
Copy link

Same on RN 0.39.2, random happen when continues refresh.

@valetarton
Copy link

This issue is occurring for me as well.
Happened after I did a build clean on iOS.

@wmonecke
Copy link

wmonecke commented Aug 14, 2017

Started happening to me todays as soon as I started working on a component that has to fetch images dynamically (async). I had static images in my app before and I had never seen this error.

This is definitely coming from AJAX requests made by my app.

As other users have noted this is error is not happening all the time but is on and off... When I do a fresh reload of the app, everything works fine. However, it appears to me that as soon as a component that has fetched images via AJAX has dismounted, ALL images within the app have issues rendering, event static ones.

package.json:
"react": "16.0.0-alpha.12",
"react-native": "0.46.4",
Platform: iOS

EDIT: November 4th and still seeing this bug in development. Has anyone figured out if this bug also crashes the app within an actual iPhone? I was hoping for this to be a simulator-related bug.

@stale
Copy link

stale bot commented Oct 14, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 14, 2017
@stale stale bot closed this as completed Oct 21, 2017
@Obooman
Copy link

Obooman commented Oct 25, 2017

Crash into this with detox.

@fredbt
Copy link

fredbt commented Nov 3, 2017

Also having this now.

@wmonecke
Copy link

wmonecke commented Nov 4, 2017

Has anyone had any progress with this error? Would be awesome if anyone could give any other ideas why this might be happening. One of the ways I am making sure this does not happen is to gracefully handle Images 'unloading' / 'unmounting'. Make sure to have a Ternary operator that displays null if there is no source for the image. It does not matter if the image is not currently mounted!

Something like:

render()  {
    return (
        { this.props.source ? <Image source={{ uri: this.props.source }} /> : null }
    );
}

Maybe I have only been very lucky recently and I have not seen this problem again or this solution might actually do it. If it works for you too, then please let me know.

@ray17n
Copy link

ray17n commented Nov 13, 2017

+1

1 similar comment
@neetocode
Copy link

+1

@oluomoniyi
Copy link

+100 to this!

@ErkanSensei
Copy link

I am seeing this error as well now, RN 0.50

@fredbt
Copy link

fredbt commented Dec 4, 2017

Still happening here.

@heuism
Copy link

heuism commented Dec 8, 2017

hi guys,

Is there anyone running into this one? This is really random. Sometimes it happens and fail the test. Sometimes it run normally. +9000

@adylevy
Copy link

adylevy commented Dec 21, 2017

Seeing alot of this issue, RN 0.50

@francisbrito
Copy link

I ran into this one while using RN 0.52.

It seems to happen consistently if an Image component has flex: 1 set in its style.

@GuillaumeMunsch
Copy link

I still get the same error on RN 0.53

@gentlee
Copy link

gentlee commented Feb 28, 2018

Issue appeared for me after i updated from 0.51.0 to 0.53.3.

@DrJid
Copy link

DrJid commented Mar 3, 2018

Getting the same error now on 0.52...

@patrickmuhi
Copy link

Wow, anyone fixed this?

@AishwaryaSurana
Copy link

Facing the same issue 😞

@ghost
Copy link

ghost commented Mar 13, 2018

For me the issue only occurs when I rapidly refresh the simulator.
This is probably caused be the previous refresh not having a chance to complete the load, and then being aborted.
So it's not a biggy in my case

@gadfil
Copy link

gadfil commented Mar 15, 2018

Facing the same issue when very slow internet
image

@rendomnet
Copy link

Same error here "react-native": "0.54.2"

@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests