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

RadioButtonGroup/RadioButton throw CGContextSetLineWidth error on iOS 18.0/18.1. #25273

Open
cbuzzsaw opened this issue Oct 15, 2024 · 2 comments · May be fixed by #25542
Open

RadioButtonGroup/RadioButton throw CGContextSetLineWidth error on iOS 18.0/18.1. #25273

cbuzzsaw opened this issue Oct 15, 2024 · 2 comments · May be fixed by #25542
Labels
area-controls-radiobutton RadioButton, RadioButtonGroup platform/iOS 🍎 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed t/bug Something isn't working

Comments

@cbuzzsaw
Copy link

Description

MACOS Sequoia (Version 15.0)
XCode : 16.0 (16A242d)
.NET MAUI 8.0 (.NET Maui workload listed versions:)
maui-ios Manifext Version: 8.0.82/8.0.100 Installation Source: SDK 8.0.400
maui-android Manifext Version: 8.0.82/8.0.100 Installation Source: SDK 8.0.400
maui Manifext Version: 8.0.82/8.0.100 Installation Source: SDK 8.0.400

(XAML code in page)



Compile and run on iOS (iPAD 10th Gen Emulator with iOS 18.0 and Physical iPAD with 18.0 and 18.1 throw errors) - you will notice errors in the Debug output log

When you navigate to the page with the above XAML snippet, iOS throws one error per each element you have in the group to the Debug.Output (ex.)
<timestamp/process omitted>... [Unknown process name] CGContextSetLineWidth: invalid line width: negative values are not allowed.
<timestamp/process omitted>... [Unknown process name] CGContextSetLineWidth: invalid line width: negative values are not allowed.

Steps to Reproduce

  1. Create sample - .net maui project dotnet new maui -o mauisample
  2. Add the snippet to the MainPage.xaml

...




...

Link to public reproduction project repository

No response

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 18/ iOS 18.1 on iPAD and Emulator iPAD 10th Generation

Did you find any workaround?

No workaround found.

Relevant log output

<timestamp/process omitted>... [Unknown process name] CGContextSetLineWidth: invalid line width: negative values are not allowed.
<timestamp/process omitted>... [Unknown process name] CGContextSetLineWidth: invalid line width: negative values are not allowed.

@cbuzzsaw cbuzzsaw added the t/bug Something isn't working label Oct 15, 2024
@PureWeen PureWeen added the s/needs-repro Attach a solution or code which reproduces the issue label Oct 15, 2024
@StephaneDelcroix StephaneDelcroix added the s/triaged Issue has been reviewed label Oct 16, 2024
@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Oct 21, 2024
@cbuzzsaw
Copy link
Author

cbuzzsaw commented Oct 22, 2024

The repro instructions got stripped from the post... let me grab and add them, It is a simple Radio Button grouping. Plase the follwoing in the newly generated page from the dotnet new command, compile and run on iOS.

<HorizontalStackLayout RadioButtonGroup.GroupName="G1" RadioButtonGroup.SelectedValue="{Binding BIND1}">
	 <RadioButton x:Name="OptionA" Content="Yes" Value="Yes" />
	 <RadioButton x:Name="OptionB" Content="No" Value="No" />
	 <RadioButton x:Name="OptionC" Content="Partially" Value="Partially" />
</HorizontalStackLayout>

I believe it errors without the Binding information as well. Can't remember and not at my MAC dev machine currently.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue s/no-recent-activity Issue has had no recent activity labels Oct 22, 2024
@PureWeen PureWeen added s/needs-repro Attach a solution or code which reproduces the issue and removed s/needs-attention Issue has more information and needs another look labels Oct 23, 2024
@cbuzzsaw
Copy link
Author

  1. Create a new .net maui project with dotnet new maui -o mauiapp
  2. Edit the MainPage.xaml code and add the following code before the last
<HorizontalStackLayout RadioButtonGroup.GroupName="G1" RadioButtonGroup.SelectedValue="{Binding BIND1}">
	 <RadioButton x:Name="OptionA" Content="Yes" Value="Yes" />
	 <RadioButton x:Name="OptionB" Content="No" Value="No" />
	 <RadioButton x:Name="OptionC" Content="Partially" Value="Partially" />
</HorizontalStackLayout>
  1. restore the project with dotnet restore
  2. build the project using dotnet build
  3. run the project using dotnet run or use Visual Studio Code on MAC
  4. Deploy the application to iOS and run
  5. Change the radio button selection and watch the output log to see the errors.

This is the simplest repro using the standard starter project for .NET MAUI.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-radiobutton RadioButton, RadioButtonGroup platform/iOS 🍎 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants