Bug 43900 - Rendering Today Extension regression in alpha channel
Summary: Rendering Today Extension regression in alpha channel
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.99 (iOS 10 previews)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Xcode8 (iOS10)
Assignee: Alex Soto [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-08-31 14:48 UTC by ulrike_axen
Modified: 2016-09-03 14:10 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: Yes
Last known good build:


Attachments
Screen shot alpha channel build (260.51 KB, image/png)
2016-08-31 14:48 UTC, ulrike_axen
Details
Screen Shot stable channel build (246.18 KB, image/png)
2016-08-31 14:49 UTC, ulrike_axen
Details
Simpler test cases and screenshots (2.04 MB, application/zip)
2016-09-03 05:14 UTC, Alex Soto [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description ulrike_axen 2016-08-31 14:48:45 UTC
Created attachment 17271 [details]
Screen shot alpha channel build

Please see attached screenshots. There appears to be a regression with rendering the Today extension. Stable channel and alpha channel screenshots are attached.
Comment 1 ulrike_axen 2016-08-31 14:49:24 UTC
Created attachment 17272 [details]
Screen Shot stable channel build
Comment 2 Alex Soto [MSFT] 2016-08-31 19:26:32 UTC
Hello!

Please include your full build logs, crash reports (if any), 
test case (to reproduce) and all version informations.

The easiest way to get exact version information is to use the 
"Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" 
button and copy/paste the version informations (you can use the 
"Copy Information" button).
Comment 3 Sebastien Pouliot 2016-08-31 19:36:07 UTC
@Ulrike correct me if I'm wrong but they seems to be screenshots both taken from iOS10 ?

Beside what @Alex already asked (for both stable and beta) can you tell me if the UI was made using the iOS designer (from XS or VS) ? 

There's nothing that comes to my mind that could affect the UI like this... thanks!
Comment 4 ulrike_axen 2016-08-31 19:44:36 UTC
Hi, there are no crash logs -- it's simply a rendering problem. Yes both are ios10 screenshots. Only difference is one app was build with stable channel and the other was built on alpha channel. The UI was designed using Xcode interface builder.

We have seen this problem intermittently when testing in iOS 10 betas. Now it seems that the only difference is alpha/stable.

=== Xamarin Studio Enterprise ===

Version 6.1 (build 5365)
Installation UUID: 0ca42116-8f54-4ad6-bd25-aa90f20c571f
Runtime:
	Mono 4.6.0 (mono-4.6.0-branch/23c6a4d) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406000165

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Version: 0.20.0.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: 6.2.0.47 (Xamarin Enterprise)
Android SDK: /Users/axenu/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 25.1.1
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.3

Java SDK: /usr
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.0 (11228.2)
Build 8S193k

=== Xamarin.iOS ===

Version: 9.99.4.23 (Xamarin Enterprise)
Hash: f63ecd7
Branch: cycle8
Build date: 2016-08-23 14:45:42-0400

=== Xamarin.Mac ===

Version: 2.10.0.68 (Xamarin Enterprise)

=== Build Information ===

Release ID: 601005365
Git revision: 4fb2e8b3f2042f3be28b370d01f1c8057e993e51
Build date: 2016-08-23 08:54:41-04
Xamarin addins: 60c0f9d8f0eb210499e1f8c6daf4972c10f4663f
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.11.6
Darwin ulrikes-mbp-2.ms.starkey.com 15.6.0 Darwin Kernel Version 15.6.0
    Thu Jun 23 18:25:34 PDT 2016
    root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
Comment 5 ulrike_axen 2016-08-31 19:51:47 UTC
For a test project, the one I submitted for 43178 should display the same issue -- we have not changed any code in the Today extension
Comment 6 ulrike_axen 2016-09-01 15:15:38 UTC
Update: Sorry, I should have said the project that was submitted for 42389 (privately). 43178 submission was a more simple app.
Comment 7 Sebastien Pouliot 2016-09-01 19:13:55 UTC
@Alex please try to duplicate the issue with the sample attached to the bug report mentioned in comment #6

@Ulrike did you use Xcode 8.0 (11228.2) with both XI stable and beta ?
or did you use a stable Xcode (e.g. 7.3) with XI 9.8.x ?
Comment 8 ulrike_axen 2016-09-01 20:16:18 UTC
@Sebastien 

Xcode Version 8.0 beta 5 (8S193k) with the alpha channel XI.
XI stable used Version 7.3 (7D175).
Comment 9 Alex Soto [MSFT] 2016-09-03 05:14:17 UTC
Created attachment 17325 [details]
Simpler test cases and screenshots

This attachment includes

- Xcode project
- Xamarin.iOS project
- Screenshots
  - Xamarin.iOS 9.8.2 with Xcode 8b6
  - Xamarin.iOS 9.8.2 with Xcode 7.3
  - Xamarin.iOS 9.99.5 with Xcode 7.3
  - Xamarin.iOS 9.99.5 with Xcode 8b6
  - Xcode project on both Simulators
Comment 10 Alex Soto [MSFT] 2016-09-03 06:03:06 UTC
Hello @Ulrike

This seems to be a new Xcode 8 feature (bug?) let me explain why.

I have tested 4 different configurations between Xcode and Xamarin.iOS with a simpler view containing 4 buttons and some constraints to align them, the tests were performed directly on an iPhone 6 plus to actually see the device result. Here is the test matrix:

|-----------------------------------------------------|
|  Xamarin.iOS  |  Xcode  |   Version   |   Renders   |
|---------------|---------|-------------|-------------|
| 9.8.2(stable) |  7.3.1  |  iOS 10.0   | as expected |
| 9.8.2(stable) | 8 Beta6 |  iOS 10.0   | incorrectly |
| 9.99.2(Alpha) |  7.3.1  |  iOS 10.0   | as expected |
| 9.99.2(Alpha) | 8 Beta6 |  iOS 10.0   | incorrectly |
|-----------------------------------------------------|

Can you see the pattern here? Yep, building using the Xcode 8 toolchain ends up changing the actual rendering of the today extension. I have added screenshots (described in comment #9) of the device rendering the result. In my tests using Xcode 8 my constraints are not completely honoured, I get a smaller view slightly off to the left and with a different background colour which is consistent with the screenshots you provided us in comment #0 and comment #1.

So I decided to run the extra mile and see if I could replicate this in an Xcode project and I got exactly the same results building the Xcode project using version 7.3 vs 8.0b6 I also attached the screenshot of both simulators running the app.

This is definitely not a bug in Xamarin.iOS. I did some googling for you and found this thread that might result useful to you. 

https://forums.developer.apple.com/thread/48930

Hope this helps cheers!!!
Comment 11 ulrike_axen 2016-09-03 14:10:11 UTC
Thank you for your thorough analysis! I'll pass this information on to our team.