Ticket Created
over 3 years ago

WERETECH-11737

red circle drawn around 390x390 round devices in the simulator

Hey, I am working a few days around my new watch face design and there's a problem I've encountered only in the Venu and the Venu Mercedes-Benz edition, I've used

dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_TRANSPARENT);
        dc.drawCircle(dc.getWidth()/2, dc.getHeight()/2, dc.getWidth()/1.8);
        dc.fillCircle(dc.getWidth()/2, dc.getHeight()/2, dc.getWidth()/1.8);
to get a black background (the reason for the /1.8 was because I had the problem with other devices but using '/1.8' instead of '/2' solved it). In those devices I get a red circle around the device's screen: https://ibb.co/4ZZcnqT (kinda hard to see but I afraid that if the problem is not with the simulator, then it will be really clear in real life and I will get bad reviews for this). Did anyone else encountered the same problem, anyone knows how to solve it? 

Also if anyone has a Venu or Venu Mercedes-Benz edition and can check for me if this problem occurs in real life device and not only in the simulator It will be really appreciated. Here's the link to the prg file - https://filebin.net/pfnfwpy1kkqi5nab .

TY in advance for anyone that will try to help! It is the very last thing I need to fix before uploading it to the connect iq shop!

Parents
  • [quote userid="3042" url="~/developer/connect-iq/f/discussion/275194/red-circle-drawn-around-390x390-round-devices-in-the-simulator/1318714#1318714"]And then in onUpdate(), if(hasAA) {dc.setAntiAlias(true);} I'm not seeing this "red circle" in any of the posted pics or in the sim with my own apps BTW. Could this be a result of the color settings on the pc/mac? [/quote] In one test that I did, I have onUpdate() that does nothing but clear the screen with a black color, so I'm not sure why anti-aliasing should make a difference -- nothing is being drawn. [quote userid="3042" url="~/developer/connect-iq/f/discussion/275194/red-circle-drawn-around-390x390-round-devices-in-the-simulator/1318714#1318714"]Could this be a result of the color settings on the pc/mac?[/quote] I"m also not sure how color settings on a PC could produce a faint red circle on an image that's supposed to be uniformly black, but only for Venu and not other devices. Anecdotally, I've seen simulator glitches in the past for other devices but I didn't bother to file a bug report. I did notice that the red circle isn't noticeable on mobile -- perhaps because the mobile version of the forum doesn't serve up full-resolution images. It is (barely) visible on an iPad tho (perhaps still not displaying full resolution images). Anyway, I opened my previous screenshot in Paint.NET and zoomed in -- the red circle is quite obvious. I also used the color picker tool to verify that the red pixels aren't a display artifact or a figment of the imagination. /resized-image/__size/714x240/__key/commentfiles/fb5d84b10a5745448a7a45dafc1faa43-6e81f76c-4019-4ee1-9f89-903b0c272bdb/pastedimage1633441705132v1.png [quote userid="3042" url="~/developer/connect-iq/f/discussion/275194/red-circle-drawn-around-390x390-round-devices-in-the-simulator/1318808#1318808"]Since "save screen shot" looks fine, I honestly wouldn't worry about it.  Like I said I can't even see it in any of the sim pictures posted here or in the bug report.[/quote] Maybe it's nothing to worry about it (on the real device), but it's still a bug in the simulator. And yeah, looking at the device PNG for venu (venu.png) was actually my first thought. but I never got around to it. It's pretty obviously the case once you open it. It may be hard to tell here because of the PNG's transparency: /resized-image/__size/553x240/__key/commentfiles/fb5d84b10a5745448a7a45dafc1faa43-6e81f76c-4019-4ee1-9f89-903b0c272bdb/pastedimage1633441991240v5.png But here it is zoomed in, in a viewer that changes the transparent pixels to black: /resized-image/__size/320x240/__key/commentfiles/fb5d84b10a5745448a7a45dafc1faa43-6e81f76c-4019-4ee1-9f89-903b0c272bdb/pastedimage1633441964124v4.png
Comment
  • [quote userid="3042" url="~/developer/connect-iq/f/discussion/275194/red-circle-drawn-around-390x390-round-devices-in-the-simulator/1318714#1318714"]And then in onUpdate(), if(hasAA) {dc.setAntiAlias(true);} I'm not seeing this "red circle" in any of the posted pics or in the sim with my own apps BTW. Could this be a result of the color settings on the pc/mac? [/quote] In one test that I did, I have onUpdate() that does nothing but clear the screen with a black color, so I'm not sure why anti-aliasing should make a difference -- nothing is being drawn. [quote userid="3042" url="~/developer/connect-iq/f/discussion/275194/red-circle-drawn-around-390x390-round-devices-in-the-simulator/1318714#1318714"]Could this be a result of the color settings on the pc/mac?[/quote] I"m also not sure how color settings on a PC could produce a faint red circle on an image that's supposed to be uniformly black, but only for Venu and not other devices. Anecdotally, I've seen simulator glitches in the past for other devices but I didn't bother to file a bug report. I did notice that the red circle isn't noticeable on mobile -- perhaps because the mobile version of the forum doesn't serve up full-resolution images. It is (barely) visible on an iPad tho (perhaps still not displaying full resolution images). Anyway, I opened my previous screenshot in Paint.NET and zoomed in -- the red circle is quite obvious. I also used the color picker tool to verify that the red pixels aren't a display artifact or a figment of the imagination. /resized-image/__size/714x240/__key/commentfiles/fb5d84b10a5745448a7a45dafc1faa43-6e81f76c-4019-4ee1-9f89-903b0c272bdb/pastedimage1633441705132v1.png [quote userid="3042" url="~/developer/connect-iq/f/discussion/275194/red-circle-drawn-around-390x390-round-devices-in-the-simulator/1318808#1318808"]Since "save screen shot" looks fine, I honestly wouldn't worry about it.  Like I said I can't even see it in any of the sim pictures posted here or in the bug report.[/quote] Maybe it's nothing to worry about it (on the real device), but it's still a bug in the simulator. And yeah, looking at the device PNG for venu (venu.png) was actually my first thought. but I never got around to it. It's pretty obviously the case once you open it. It may be hard to tell here because of the PNG's transparency: /resized-image/__size/553x240/__key/commentfiles/fb5d84b10a5745448a7a45dafc1faa43-6e81f76c-4019-4ee1-9f89-903b0c272bdb/pastedimage1633441991240v5.png But here it is zoomed in, in a viewer that changes the transparent pixels to black: /resized-image/__size/320x240/__key/commentfiles/fb5d84b10a5745448a7a45dafc1faa43-6e81f76c-4019-4ee1-9f89-903b0c272bdb/pastedimage1633441964124v4.png
Children
No Data