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

【Unity 1.0.18】Crash #530

Closed
bluedoom opened this issue Nov 1, 2021 · 0 comments
Closed

【Unity 1.0.18】Crash #530

bluedoom opened this issue Nov 1, 2021 · 0 comments
Assignees

Comments

@bluedoom
Copy link
Contributor

bluedoom commented Nov 1, 2021

error log | 日志或报错信息

0x00007FFF82491164 (puerts) std::enable_shared_from_this<v8_inspector::V8Inspector::Counters>::weak_from_this
0x00007FFF82483C11 (puerts) std::enable_shared_from_this<v8_inspector::V8Inspector::Counters>::weak_from_this
0x00007FFF82414A8C (puerts) GetJSObjectFromResult
0x0000018734ACF17A (Mono JIT Code) (wrapper managed-to-native) Puerts.PuertsDLL:GetJSObjectFromResult (intptr)
0x000001B960D941E3 (Mono JIT Code) [D:\Projects\UnityProject\Assets\Scripts\Puerts\Puerts\Src\NativeValueApiGeneric.cs:139] Puerts.GetValueFromResultImpl:GetJSObject (intptr,intptr,bool)
0x000001B960D94020 (Mono JIT Code) [D:\Projects\UnityProject\Assets\Scripts\Puerts\Puerts\Src\DataTranslate.cs:140] Puerts.GeneralGetterManager:JSObjectTranslator (intptr,Puerts.IGetValueFromJs,intptr,bool)
0x000001B991C9509D (Mono JIT Code) [D:\Projects\UnityProject\Assets\Scripts\Puerts\Puerts\Src\StaticTranslate.cs:29] Puerts.StaticTranslate1<T_REF>:DefaultGetResult (int,intptr,Puerts.IGetValueFromJs,intptr,bool) 0x000001B991C95382 (Mono JIT Code) (wrapper delegate-invoke) Puerts.StaticTranslate1/GetFunc<T_REF>:invoke_T_int_intptr_IGetValueFromJs_intptr_bool (int,intptr,Puerts.IGetValueFromJs,intptr,bool)
0x000001B960D93684 (Mono JIT Code) [D:\Projects\UnityProject\Assets\Scripts\Puerts\Puerts\Src\GenericDelegate.cs:565] Puerts.GenericDelegate:Func<T1_REF, TResult_REF> (T1_REF)

how to reproduce | 复现步骤

1.用C# Func<JsObject>引用 js函数
2.js代码中返回undefine 或 null
3.执行该 Delegate

@bluedoom bluedoom changed the title 【Unity 1.0.17】Crash 【Unity 1.0.18】Crash Nov 1, 2021
@zombieyang zombieyang self-assigned this Nov 1, 2021
zombieyang added a commit that referenced this issue Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants