-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
ViewportTexture remains bright pink in some projects after upgrade to 4.0.3-stable #77678
Comments
Does it occur in 4.1 beta? |
This seems to be an issue that has never been resolved. It is related to the mechanism of godot/scene/resources/packed_scene.cpp Lines 459 to 463 in ae896bb
The resources cached by
R1, R2, and R3 all have to enable godot/scene/resources/packed_scene.cpp Lines 299 to 335 in ae896bb
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Related to #74331. |
Things aren't fully clear to me but while this appears to be more prominent / easier to trigger in this specific project with 4.0.3, it should be a pre-existing issue according to @Rindbee? ViewportTexture is a complex area and any change tends to lead to subtle further issues, so given that we've reached release freeze for 4.1, it's unlikely to be fixed for the stable release, hence moving it to 4.2. As soon as we identify a good fix, this would be a good candidate to cherry-pick to 4.1.x and 4.0.x. |
I realized that it doesn't seem to be that issue (although the sky texture has a similar hue to pink, it's fine). I can't determine what exactly is the cause. @z80 Is there any other related error message? |
@Rindbee I'll check and let you know. |
@Rindbee Hello! Based on the source code it feels that error messages do not provide all the details of what's happening. I made two videos with breakpoints placed in all methods of ViewportTexture. It looks like in the failure case it is the field "vp_pending=true" when the call is "set_viewport_path_in_scene()->setup_local_to_scene()" made which does not allow it to succeed, see failure video at 3:28. The 4.0.2 version of viewport.h/cpp do not have such a field. And this call proceeds without a problem, see success video at 2.45. This one is a success when viewport.h/cpp are downgraded to what it was in 4.0.2: And this one is a failure as it happens in some projects in 4.0.3: I hope it helps. |
OK, it's helpful. It is failing early in
|
Godot version
4.0.3-stable
System information
Windows 10
Issue description
In some projects ViewportTexture remains pink and doesn't render viewport content after upgrading from 4.0.2-stable to 4.0.3-stable. If a pair of files viewport.h/viewport.cpp are downgraded back to what they were in 4.0.2-stable, problem goes away.
This is how it looks in 4.0.3-stable:
![4 0 3_stable_viewport_4 0 3](https://private-user-images.githubusercontent.com/1449921/242162900-44c191a9-4b67-4b02-90b6-4ab615f62a73.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDQxMzIsIm5iZiI6MTczOTE0MzgzMiwicGF0aCI6Ii8xNDQ5OTIxLzI0MjE2MjkwMC00NGMxOTFhOS00YjY3LTRiMDItOTBiNi00YWI2MTVmNjJhNzMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMjMzMDMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjkxZDFmYzZjMTZiYjQ3NTRlOTNmN2ExOTI2MGU5ZmJjYmNiMjBmNjU5YmJkZDMzYTI3ODkzNGM4YzRlZWZkNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.xFa8aS-HdD46-MOZGw_CuNqCX7ce7VLe-Yta1kVlEGo)
And this is how it looks if viewport.h/viewport.cpp are downgraded back to what they were in 4.0.2-stable.
![4 0 3_stable_viewport_4 0 2](https://private-user-images.githubusercontent.com/1449921/242162897-f5abc605-f129-4222-9c0e-e9a07621dd9d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDQxMzIsIm5iZiI6MTczOTE0MzgzMiwicGF0aCI6Ii8xNDQ5OTIxLzI0MjE2Mjg5Ny1mNWFiYzYwNS1mMTI5LTQyMjItOWMwZS1lOWEwNzYyMWRkOWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMjMzMDMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGM2N2E5MGIwOTRhZWUwMjJkZWMzZDU1MTg2ZTA1ODJkOTEyZmMyOTFiMWVmMDZjNzQwNDQ1NmUyMTI3NDIwMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.7nIZMrg7Obq3GoTQNekjrEEgd0u6oBJ4HcIVRYaUa_E)
Steps to reproduce
Unfortunately, I cannot come up wit a simple demo project reproducing the problem. It exists in some projects and doesn't exist in others.
Minimal reproduction project
Cannot produce a simple project reproducing the problem. In simple projects it works fine.
The text was updated successfully, but these errors were encountered: