dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

DragInteraction crashes GraphicsView embedded in ScrollView when deployed to Android device #22434

Open Equabyte opened 4 months ago

Equabyte commented 4 months ago

Description

When a GraphicsView with DragInteraction event handler is embedded in ScrollView, the application crashes at startup. This is only visible when starting the app from the device (no crash occurs in debug mode from Visual Studio).

Steps to Reproduce

  1. Create a MAUI app having at least one GraphicsView with DragInteraction event handler embedded in ScrollView;
  2. deploy the app to an Android device or emulator, and run the app on the device itself (or emulator), independently from Visual Studio: the app will crash at startup.

Link to public reproduction project repository

https://github.com/Equabyte/GraphicsView_CrashTest

Version with bug

8.0.20 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 14 (SDK34)

Did you find any workaround?

No workaround. Also another issue was reported a while ago where someone else highlighted DragInteraction won't propagate to GraphicsView when embedded in ScrollView. See https://github.com/dotnet/maui/issues/7483

Relevant log output

No response

github-actions[bot] commented 4 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

ninachen03 commented 4 months ago

Verified this issue with Version 17.10.0 Preview 7.0 (8.0.40&8.0.20&8.0.14) Can repro it.

Equabyte commented 3 months ago

Any chance to include in SR7 ?