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

Clash AssetsManagerEx::prepareUpdateAsync -> diffMap.empty() -> updateSucceed #18361

Open
yjmu opened this issue Feb 21, 2025 · 0 comments
Open
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@yjmu
Copy link

yjmu commented Feb 21, 2025

Cocos Creator version

3.8.5

System information

iOS,android

Issue description

AssetsManagerEx: detects a new version update, but when diffMap.empty(), calling updateSucceed() will directly cause a crash
if (diffMap.empty()) { updateSucceed(); return; }

Current modification plan:
updateSucceed() Call it in the main thread
Or put it in the prepareFinished function
if(_sizeDiffMap == 0){ updateSucceed(); }
Can be solved

Relevant error log output

v8::HandleScope::HandleScope(v8::Isolate*) + 36
1
Ftest-mobile
se::AutoHandleScope::AutoHandleScope() + 40
2
Ftest-mobile
se::AutoHandleScope::AutoHandleScope() + 40
3
Ftest-mobile
se::AutoHandleScope::AutoHandleScope() + 28
4
Ftest-mobile
bool sevalue_to_nativecc::extension::EventAssetsManagerEx*(se::Value const&, std::__1::function<void (cc::extension::EventAssetsManagerEx*)>, se::Object)::'lambda'(cc::extension::EventAssetsManagerEx*)::operator()(cc::extension::EventAssetsManagerEx*) const + 36

Steps to reproduce

1、detects a new version update
2、but diffMap.empty()

Minimal reproduction project

No response

@yjmu yjmu added Bug Needs Triage Needs to be assigned by the team labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

1 participant