Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TreeView crash when too many TreeviewNode is expanded. #7618

Closed
herolss opened this issue Aug 17, 2022 · 7 comments
Closed

TreeView crash when too many TreeviewNode is expanded. #7618

herolss opened this issue Aug 17, 2022 · 7 comments
Labels
area-TreeView bug Something isn't working Crash whenever user reports a crash or app freeze needs-triage Issue needs to be triaged by the area owners no-issue-activity product-winui3 WinUI 3 issues team-Controls Issue for the Controls team transfer-repo

Comments

@herolss
Copy link

herolss commented Aug 17, 2022

Describe the bug

using template Selector,Loaded about thousands Treeview Node。

System.ArgumentException
HResult=0x80070057
Message=Source object type is not a projected type and does not inherit from a projected type. Arg_ParamName_Name
Source=WinRT.Runtime
StackTrace:
在 WinRT.CastExtensions.GetRefForObject(Object value)

Steps to reproduce the bug

  1. expanded ItemNode.
  2. drag scrollbar
  3. WINUI3 app crash

Expected behavior

No response

Screenshots

Treeview scrash  2022-08-17 092509

NuGet package version

1.1.4

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 21H2 (22000)

IDE

Visual Studio 2022

Additional context

No response

@btueffers btueffers transferred this issue from microsoft/WindowsAppSDK Aug 18, 2022
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Aug 18, 2022
@gabbybilka gabbybilka added bug Something isn't working area-TreeView product-winui3 WinUI 3 issues team-Controls Issue for the Controls team labels Aug 19, 2022
@bpulliam bpulliam added the Crash whenever user reports a crash or app freeze label Oct 13, 2022
@bpulliam bpulliam removed the needs-triage Issue needs to be triaged by the area owners label Dec 7, 2022
@Suriman
Copy link

Suriman commented Feb 6, 2023

The same happens to us. I post here a sample application and a picture with the exception. It seems like it is trying to reuse a node but if it was bound formerly to a specific viewmodel type, and later it is bound to another type, it still tries to cast the current viewmodel to the other one's type.

PD.- You get the exception right after starting the application.
WinUITreeViewIssue

@ADD-Lorenzo-Martin
Copy link

WinUITreeviewErrors.zip
This is the sample application.

@herolss
Copy link
Author

herolss commented Feb 8, 2023 via email

@herolss
Copy link
Author

herolss commented Feb 8, 2023 via email

@ADD-Lorenzo-Martin
Copy link

thanks for that. ----- 原始邮件 ----- 发件人:ADD-Lorenzo-Martin @.> 收件人:microsoft/microsoft-ui-xaml @.> 抄送人:herolss @.>, Author @.> 主题:Re: [microsoft/microsoft-ui-xaml] TreeView crash when too many TreeviewNode is expanded. (Issue #7618) 日期:2023年02月07日 01点03分 WinUITreeviewErrors.zip This is the sample application. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

You are welcome :)

@github-actions
Copy link

github-actions bot commented Aug 7, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@fabianoriccardi
Copy link

For the ones navigating in this TreeView nightmare, refers to #8791.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jul 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-TreeView bug Something isn't working Crash whenever user reports a crash or app freeze needs-triage Issue needs to be triaged by the area owners no-issue-activity product-winui3 WinUI 3 issues team-Controls Issue for the Controls team transfer-repo
Projects
None yet
Development

No branches or pull requests

7 participants