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

Gesture recognizer inconsistent state warnings #7646

Open
jeromelaban opened this issue Dec 13, 2021 · 10 comments
Open

Gesture recognizer inconsistent state warnings #7646

jeromelaban opened this issue Dec 13, 2021 · 10 comments
Assignees
Labels
area/drag-drop Categorizes an issue or PR as relevant to drag and drop difficulty/challenging 🤯 Categorizes an issue for which the difficulty level is reachable with internals understanding platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...) project/pointers 🖱️ Categorizes an issue or PR as relevant to mouse/touch/pen pointers

Comments

@jeromelaban
Copy link
Member

It's failing to draw the new window placement. I'm getting the following in the log:

fail: Windows.UI.Input.GestureRecognizer[0]
TabViewItem-124050 Inconsistent state, we already have a pending gesture for a pointer that is going down. Abort the previous gesture.

VM344:1 fail: Windows.UI.Input.GestureRecognizer.Manipulation[0]
Invalid manipulation state: We are receiving a down for the second time for the same pointer!This is however common when using iOS emulator with VNC where we might miss some pointer events due to focus being stole by debugger, in that case you can safely ignore this message.

Originally posted by @peternary in #7008 (comment)

@jeromelaban jeromelaban added area/drag-drop Categorizes an issue or PR as relevant to drag and drop project/pointers 🖱️ Categorizes an issue or PR as relevant to mouse/touch/pen pointers labels Dec 13, 2021
@DierkDroth
Copy link

@jeromelaban where are we at on resolving this issue?

@jeromelaban
Copy link
Member Author

We have not progressed on fixing this issue yet, as we do not have clear repro steps as mentioned on the other issue.

@DierkDroth
Copy link

Ok, I'll poke @peternary if he could get something reproducible.

@DierkDroth
Copy link

DierkDroth commented Jan 5, 2022

@jeromelaban @peternary reported that this needed to be resolved first. Then he could tell/test if issue above actually already might be addressed by the latest UNO release.

@jeromelaban
Copy link
Member Author

Thanks. Then we do not have any update to share at this point, we'll let you know when we do.

@DierkDroth
Copy link

Sorry, @jeromelaban I put in wrong link on my last post. I fixed it and here is the issue again which needed to be fixed before @peternary could resume testing.

@MartinZikmund MartinZikmund added platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...) difficulty/challenging 🤯 Categorizes an issue for which the difficulty level is reachable with internals understanding labels Jul 19, 2023
@MartinZikmund
Copy link
Member

MartinZikmund commented Oct 25, 2024

Happens in other contexts as well, see discussion #18563 - includes a repro of the issue

Newbe question/bug(?) incoming
Can someone review this and tell me what am I doing wrong?

Since WinSDK is out of order at the moment, i am targeting Desktop in visual studio 2022
Same behaviour in xaml and c#-markup
using mvux

terminal tells me: "The specified framework 'Microsoft.WindowsDesktop.App' is not present in the previously loaded runtime.
fail: Microsoft.UI.Input.GestureRecognizer[0]
Microsoft.UI.Xaml.Controls.ScrollContentPresenter Inconsistent state, we already have a pending gesture for a pointer that is going down. Abort the previous gesture.
fail: Microsoft.UI.Input.GestureRecognizer[0]
Microsoft.UI.Xaml.Controls.ScrollContentPresenter Inconsistent state, we already have a pending gesture for a pointer that is going down. Abort the previous gesture."

How to reproduce that:
clicked on 1. the dropdown button 2. the first dropdownitem which haves the new command and after no pop up the seconditem... each item fail message...
I have no clue what I should correct, but might be related to the async?

Untill now I did only vb.net with winforms and never done anything async

Thanks in advance for your help!
Kind regards

@MartinZikmund MartinZikmund changed the title Drag And Drop causes manipulation exception Gesture recognizer inconsistent state warnings Oct 25, 2024
@DevTKSS
Copy link
Contributor

DevTKSS commented Oct 28, 2024

On my case (last one posted here) may consider also a connection to the behaviour i expierienced on the same repo, also after including a first Parameter with xamlroot type, that the contentdialog is not shown which is the fail throwing element in my Project. Maybe that helps with detecting the source of the issue

Will try to include my try of doing a IXAMLRootProvider because it seems to be not possible to provide this type in task parameters. For C# markup using mvux schema(which one is the issue here? Connection?) there is no Dokumentation in the references.
Idea would be, to check if that maybe wrong implementation of information providing might be a error source on my code so its not just coming from this? It would be quite logic that if it thinks a contentdialog is still shown, to throw a "you are not ready with that dialog!" Thing seeing that its only possible to have one contentdialog at a time if i read reference right.
At this time i am still searching for the right place to add a documentation request so maybe in the future there could be a more precise example for contentdialog with c#+mvux maybe using navigator, but without having to use xaml in a c#markup solution🤔 in uno.Extensions.Navigator.UI is a ContentDialogNavigator but no idea if and how this could be used

@DevTKSS
Copy link
Contributor

DevTKSS commented Nov 5, 2024

Hey there!
I did some testing yesterday in a xaml markup application to this issue with unvalid state of (in my case) ScrollContentPresenter - Gesture Recognizer and might have some step forward on the reason of that, but I think I missed something in installing the events, that enables me to check what is happening before this fail appears and would need some help on that if possible.
Also added a lister for the scrollContentPresenter thats in MainPage, but the Console.WriteLine do not like to give me the x:Name I added or the explicit type (if its derrived from this scp).Name, but also no changed output. (Note: Yes, I changed the line for giving the name to type, if you want to tell that getType().Name is not providing the x:Name. I know that :) )

I also installed two Exception handlers and exception handle service for app wide unhandled exception/task exceptions, but seems like "fail" is not catched by that. Could you tell what to use to catch fail in uno app for getting more information to this fail?

Repo to that: https://github.com/DevTKSS/MyUnoXamlApp.git

Interesting side note:

  • The fail only appears if there is another button installed, and only appears on button click.
  • The pointerPressed Event is raised once, the exited or captureLost twice! But also I cant imagine that the others are not raised and can not understand why there is a "clicked" pointer but this pointer do not get ended/exited if this click is solved? Cant be normal isnt it? Maybe I have to add additional event listeners?
  • although I duplicated the working events for the contentDialog from SecondPage to the MainPage, On MainPage it is not showing it? Do you see why? Before moving this buttons and dialog command to the second page, they were on Main Page and worked without trouble... Dont see the problem.

@DevTKSS
Copy link
Contributor

DevTKSS commented Nov 7, 2024

On Regular Button click event it seems to not longer happen on my xaml app.
Done changes: button.click>ButtonClick Eventhandler>call the ShowMyDialog async void (maybe the async is causing the trouble if its called from xaml directly?)

Fail occours now only if I am calling a dialog from a dropdownbutton which will collapse and maybe cause the invalid state on my application.
Will try to get help on that in the discussion or doscord area because this is most likly beeing caused of not waiting until it is collapsed or it might have to be stopped from collapsing in order to not get this faul trown.
If you like to take a look onto the changes its the same Repo like linked before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/drag-drop Categorizes an issue or PR as relevant to drag and drop difficulty/challenging 🤯 Categorizes an issue for which the difficulty level is reachable with internals understanding platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...) project/pointers 🖱️ Categorizes an issue or PR as relevant to mouse/touch/pen pointers
Projects
None yet
Development

No branches or pull requests

5 participants