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

Reimporting assets checker_pattern_dark.png when refocusing window #390

Open
xndyz opened this issue Sep 23, 2024 · 11 comments
Open

Reimporting assets checker_pattern_dark.png when refocusing window #390

xndyz opened this issue Sep 23, 2024 · 11 comments
Labels
bug Something isn't working help wanted Extra attention is needed Investigating

Comments

@xndyz
Copy link

xndyz commented Sep 23, 2024

Issue description

Get an annoying "reimporting checker_pattern_dark.png" popup everytime the window is focused. after uninstalling phantom camera, it goes away.

Steps to reproduce

fresh install of 4.3

(Optional) Minimal reproduction project

No response

@ramokz
Copy link
Owner

ramokz commented Oct 9, 2024

Have tried installing the addon on two fresh projects on two different OSs (Linux and Mac), and cannot seem to trigger the issue.
But generally, I don't recall ever coming across a popup like that for texture imports. Might occasionally see an editor warning log, but nothing beyond that, and have usually attributed that as an engine quirk as it comes and goes.

What OS are you using?

@jeremy-breidenbach
Copy link

Hi @ramokz , I'm experiencing the same popup described in this issue. Here are the version details:

  • Godot version: v4.3.stable.official [77dcf97d8]
  • MacOS version 12.7.6
  • Phantom Camera version 0.8

@BalaguerRC
Copy link

BalaguerRC commented Dec 21, 2024

Hi @xndyz the same thing happened to me. The only solution I found is to delete the example folder of the plugin

@ramokz ramokz added bug Something isn't working help wanted Extra attention is needed Investigating labels Dec 23, 2024
@ramokz
Copy link
Owner

ramokz commented Dec 23, 2024

For clarity's sake, I am interested in resolving this.
The problem is that I still cannot replicate the issue, so I have no way of knowing what change is needed to resolve it.

Open to any help with figuring out what's causing this and figuring out a solution.

@ramokz
Copy link
Owner

ramokz commented Dec 23, 2024

@BalaguerRC
Copy link

BalaguerRC commented Dec 23, 2024

@ramokz similar to the video but without output errors
image

@ramokz
Copy link
Owner

ramokz commented Jan 4, 2025

Have you tried:

  1. Closing all example scenes that uses that asset
  2. Move the asset out of Godot
  3. Save the Godot project
  4. Move the asset back in again (same directory it was in before)
  5. Resave the project

Starting to suspect it might be a potentially broken importation when I initially added it, but where it is only an issue on select machines rather than an universal one.

@jeremy-breidenbach
Copy link

I tried the recommended steps but the popup still shows.

  1. Closed all scenes in the Godot project
  2. moved the asset (checker_pattern_dark.png) out of the Godot project. I found the asset in .addons/phantom_camera/addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png
  3. Saved the Godot project
  4. Moved the asset back into the same directory
  5. Resaved the Godot project

@ramokz
Copy link
Owner

ramokz commented Jan 14, 2025

What happens if you close the Godot project and replace the PNG with another, random, PNG file?
Does it still trigger the popup even when the asset is entirely different?

@jeremy-breidenbach
Copy link

I was able to resolve the issue by deleting the .import file for the checker_pattern_dark.png asset (i.e., deleting addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png.import). Then, when opening the Godot editor again, it reimports the png and the issue is resolved.

I noticed that the png file did not show a "type" when hovering the mouse cursor over it in the Godot editor (see screenshot):

Image

Then, after deleting the .import file for the png and allowing Godot to reimport the asset, the type correctly shows CompressedTexture2D (see screenshot):

Image

Hope this helps debug the issue!

@ramokz
Copy link
Owner

ramokz commented Jan 19, 2025

Interesting! But also odd.

Both the tooltip and .import text file show the type as CompressedTexture2D when testing it on a freshly made project with the addon installed.

However, a few things do change when deleting the .import file and letting it regenerate.

Image

Has the change in the path also occurred in your .import file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed Investigating
Projects
None yet
Development

No branches or pull requests

4 participants