Closed Ocrosoft closed 1 year ago
Hi, sorry to bother you. There is the same issue in my project. Could you help me analyze it? https://github.com/Scighost/Starward/issues/8
I can't reproduce said issue, tried on my system and current branch that I'm working on https://github.com/bagusnl/Collapse/tree/settings-improvement
Windows 11 (build: 22631.0), as bagusnl_reg
[Schm] Runtime: .NET 7.0.9 - WindowsAppSDK 1.3
I tried running the debug build 10 times and 10/10 tries it success to launch to OOBE dialog.
This shouldn't do much but I thought might as well sending my debug build as well https://www.mediafire.com/file/bdfqfgufor6169l/CL-settings-improvement-bfa2e85-net7.0-windows10.0.22000.0.7z/file
I have no futher progress about this crash. The issue also can be closed. But we can provide one way to skip the crash, for example, place a pre-generated config file in the appdata path. If someone encounters the similar problem, you can try... I hope Microsoft can solve this problem hhh.
Hi, sorry to bother you. There is the same issue in my project. Could you help me analyze it? Scighost/Starward#8
只能说 winui 现在 bug 还是太多了,边骂边用 w
I wonder if this exception is related to these stuff
WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI263: 0xdef0[105](https://github.com/neon-nyan/Collapse/actions/runs/5679125268/job/15390705923#step:6:106)1 - No default or neutral resource given for 'Files/Assets/AiHappy.png'. The application may throw an exception for certain user configurations when retrieving the resources. [D:\a\Collapse\Collapse\CollapseLauncher\CollapseLauncher.csproj::TargetFramework=net7.0-windows10.0.22000.0]
WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI263: 0xdef01051 - No default or neutral resource given for 'Files/Assets/AponiaFly.png'. The application may throw an exception for certain user configurations when retrieving the resources. [D:\a\Collapse\Collapse\CollapseLauncher\CollapseLauncher.csproj::TargetFramework=net7.0-windows10.0.22000.0]
WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI263: 0xdef01051 - No default or neutral resource given for 'Files/Assets/default.png'. The application may throw an exception for certain user configurations when retrieving the resources. [D:\a\Collapse\Collapse\CollapseLauncher\CollapseLauncher.csproj::TargetFramework=net7.0-windows10.0.22000.0]
WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI263: 0xdef01051 - No default or neutral resource given for 'Files/Assets/PaimonSleep.png'. The application may throw an exception for certain user configurations when retrieving the resources. [D:\a\Collapse\Collapse\CollapseLauncher\CollapseLauncher.csproj::TargetFramework=net7.0-windows10.0.22000.0]
WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI263: 0xdef01051 - No default or neutral resource given for 'Files/Assets/PaimonWhat.png'. The application may throw an exception for certain user configurations when retrieving the resources. [D:\a\Collapse\Collapse\CollapseLauncher\CollapseLauncher.csproj::TargetFramework=net7.0-windows10.0.22000.0]
WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI263: 0xdef01051 - No default or neutral resource given for 'Files/Assets/StartUpBG.png'. The application may throw an exception for certain user configurations when retrieving the resources. [D:\a\Collapse\Collapse\CollapseLauncher\CollapseLauncher.csproj::TargetFramework=net7.0-windows10.0.22000.0]
WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI263: 0xdef01051 - No default or neutral resource given for 'Files/Assets/StartUpBG2.png'. The application may throw an exception for certain user configurations when retrieving the resources. [D:\a\Collapse\Collapse\CollapseLauncher\CollapseLauncher.csproj::TargetFramework=net7.0-windows10.0.22000.0]
Digging into it comes a few issues listing:
Will see if I can somehow digest all these and give you an update for it
Hi @Ocrosoft Can you try this debug build? https://www.mediafire.com/file/m4y35m7p38645pb/net7.0-windows10.0.22000.0.zip/file
Let me know how it goes
Hi @Ocrosoft Can you try this debug build? https://www.mediafire.com/file/m4y35m7p38645pb/net7.0-windows10.0.22000.0.zip/file
Let me know how it goes
I run this build 10 times, the first time, it works(the startup is slow). But the remaining 9 times, I got a black window, and then crash.
@bagusnl I have had this issue come quite often when compiling the app. Reading through the stuff you linked, do you think it could be something related to how we load local media assets for the launcher?
Such that maybe this could be due to assets not yet being loaded, or being loaded out of order? I'd need to check for specifics and don't have any PoC for a fix but something to look into for sure.
it could be, also I didn't remember the last build that I sent here contains more fixes for that issue or not so if you don't mind to test new build over at https://github.com/neon-nyan/Collapse/actions/runs/5726828350 Its quite hard to test too as it only happens in certain configuration
I am looking at this now. Let me understand one thing. When you found the bug, did you finish the setup or you closed Collapse before finishing?
I tested locally on latest main debug build and latest stable release using script to help me automate it
@echo off
setlocal enableextensions enabledelayedexpansion
set /a count = 1
set /a crashcount = 0
set collapsepath="E:\GameData\HoYoverse\Collapse\app-1.70.12"
set collapsedatapath="C:\Users\bagusnl_reg\AppData\LocalLow\CollapseLauncher"
cd /d %collapsepath%
:loop
echo cleaning collapse data
rmdir /S /Q %collapsedatapath% >nul
echo running collapse #!count!
echo crash counter !crashcount!
start "" /b %collapsepath%\CollapseLauncher.exe
timeout 3 >nul
taskkill /IM CollapseLauncher.exe
if NOT %ERRORLEVEL% == 0 echo CRASH DETECTED! && echo ErrorLevel %ERRORLEVEL% && set /a crashcount += 1
set /a count += 1
timeout 1 >nul
echo.
GOTO loop
I let it ran for about 50x on each build and saw all 100 instances shown the background image startup. You can try using it (edit it first for the paths and the timeout, depending on how fast is your system you might want to increase the first timeout value) then run it as admin this will clean the entire collapse config in appdata and do a clean state run of collapse for 3s and see what's the errorlevel code after its been killed. While the error level is not a reliable way to detect this problem, we can observe the actual collapse window opening and closing, if it loads to the main screen then its good, if not then something is still up with this issue
We will close this issue for now as there were no new update about this issue and also commit that, as far as we know, should fix it already in place. Feel free to reopen this issue if the issue keep reappearing and/or another fix or clue is known.
Thank you for supporting Collapse project <3
Update: @bagusnl I found that maybe the SougouInput causes this problem... After switch to us keyboard or Microsoft Pinyin, Collapse works fine.
Update: @bagusnl I found that maybe the SougouInput causes this problem... After switch to us keyboard or Microsoft Pinyin, Collapse works fine.
My SougouInput version is 13.10.0.8469.
And this issue should be related with xaml and sougou only, just keep it closed.
Affected Version
1.70.12
Bug Behavior
After the main window appears(It's a black window without any content rendered), the application crashes. This crash just appear in the first use guide view. Some times(randomly), without crash, and I can see "Select your language". Everything is ok when the first use guide is done. And no crash after reboot. If I delete the config files, the crash appears again.
Maybe it is a Xaml's bug.
Debug version (main branch), crash too, and the debugger detach automatically, and a crash dump was generated at "C:\Users\%username%\AppData\Local\CrashDumps". The minimal xaml I can reproduce the crash is:
I have no idea of this crash, any help?
Expected Behavior
Don't crash.
Steps to reproduce
I am not sure if this crash can be reproduce on the same system version.
版本 Windows 11 专业版 版本 22H2 安装日期 2023/7/20 操作系统版本 22621.1992 体验 Windows Feature Experience Pack 1000.22644.1000.0
Related Issues
No response
Screenshot(s)
No response
Additional Information
CollapseLauncher.exe.33260.dmp.zip log-2023-07-22-sta1.70.12-id0.log
Crash stack: