When the following conditions are true, the problem will occur:
1. Have a 9-patch in your layout.
2. On the same layer as the 9-patch, have an object (a Sprite, for example) with a certain type of effect (Tint is known to cause it) render after the 9-patch.
3. Have enough textures loaded into the Construct 2 editor. The exact amount required is unknown and may vary between machines. The loaded textures don't have to be from the same project. If in doubt, load a few very large projects. I use a project with 257 objects in a layout with unique images for each, with an estimated video memory usage of 63.3 MB
The 9-patch will still be visible, but the object with the Tint effect and everything that renders after it will render incorrectly, usually resulting in seeing nothing at all.
Attach a Capx
I created a minimalist file, however, by itself, it does not have enough textures to cause the issue.
https://drive.google.com/open?id=0B40Xy ... VhKSVpiQ0E
Alternate file created by wertandrew
Description of Capx
My capx simply has the minimum objects to cause the error, though not enough textures.
wertandrew's can meet the requirements by itself (on my machine), but if you can't reproduce, try loading more textures.
Steps to Reproduce Bug
- Install Construct 2 64-bit. It must be 64-bit, as the problem doesn't happen on 32-bit.
- Open example capx.
- Make sure the project setting 'Preview Effects' is enabled.
- Load a large project or two for good measure, in the same Construct 2 instance.
- View the layout from the example capx.
- Scroll around a bit. Sometimes it will appear normal when you first load it, and start screwing up if you scroll the window or zoom.
In my example capx, the grey box Sprite that is tinted red disappears, as well as the Sans Sprite. The 9-patch remains visible exactly where it should be.
I expect the objects to render where they are supposed to be.
None, this is an editor only bug.
Operating System and Service Pack
Windows 10 64-bit
Windows 7 64-bit
Construct 2 Version ID
Release 240 (64-bit) has this problem.
Release 240 (32-bit) does not have this problem.
Most of the time this bug has the effect of making it seem like objects disappeared, but I've seen a case where objects were in the wrong place and following the screen scroll (I can provide a video if needed, but not a capx), and I've seen a case where the objects somehow got a 3d rotation applied to them. This leads me to believe that it is related to an OpenGL vertex transformation matrix.
Yes, this is a duplicate to the bug you closed here:
However, I am completely unconvinced that this is a driver issue. I tested this on the following configurations:
Windows 10 64-bit
AMD Radeon HD 5700 Series
Driver date: 2016-02-26
Windows 7 64-bit
Nvidia GeForce GT 640M
Driver date: 2016-07-10
On both systems, the problem occurs on 64-bit Construct 2, and not 32-bit Construct 2. Same exact bug, two completely different card vendors (and drivers). I've observed this bug for at least a couple of years, through many Construct 2 versions, so this isn't a regression. It has always been there since I started using it. I find it incredibly unlikely that both drivers from both vendors have the same exact bug, and it somehow only affects the Construct 2 editor and absolutely nothing else. Keep in mind I have a large steam library, and I've played most of the games in it without any sort of issue like this.