-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 not working #3062
Comments
I've been notice this exact issue with my students as well. This is the first I've encountered it. Images will load one day and not the next. Sometimes creating a folder helps sometimes it does not. Updating Chrome hasn't helped nor does resigning into the Editor. |
Thanks for raising this! Do you have URLs to specific sketches that we could try looking into as a starting point? |
Hi raclim, thanks for responding. Here's an example file: |
Here's another example if it helps. I'm on a mac on Chrome. |
@joemckay5 I'm not able to reproduce the problem with your cheese image. @AweehGoblin I'm seeing an error on this one. The window image loads fine but the can does not. The network request shows that it is returning a 200 success response. It should not return a 200 if there is no data. We need to look into how we are fetching and serving the images from the S3 bucket. We recently updated a dependency and it could be related to that? #2443 I don't know how the |
Has there been any progress on this bug? We had the same problem in class yesterday. The student changed from Safari to Chrome and the problem went away. I want to teach the class with the p5 code editor, but if this is going to be an issue again this semester I'll have to switch to something else. |
I've been playing with this a bit today. This sketch still doesn't work for me in Chrome on mac, but does in Safari. |
@joemckay5 Thanks for following up on this! I'm sorry for the delay on this issue—I've been having some difficulty pinpointing it down! The cheese image is currently showing up for me in my browser. However, earlier today in a similar issue I noticed that it might be related to the way requests are being cached by the browser, which is why the images might load on incognito mode or that this issue is happening inconsistently. Would you be able to confirm this by opening the developer tools and checking the "Disable Cache" field (reference image in linked issue) and reloading the page? |
That worked! |
p5.js version
1.9.1
What is your operating system?
Mac OS
Web browser and version
Chrome 122.0.6261.129 Safari 17.4
Actual Behavior
Images are not loading. Unfortunately, this bug is intermittent but my student are finding their images don't work. This is happening on computers in the lab, and on their personal laptops. Often if they switch from Safari to Chrome it works without any changes to the code or file structure. However, we have seen this happen in chrome too.
I'm sorry I can't be more specific. Is anyone else having this problem?
Expected Behavior
Images should load but they are not.
Steps to reproduce
Simple beginner image loading code is not working. It's not the code because it will intermittently, and if we switch browsers.
The text was updated successfully, but these errors were encountered: