gpt4 book ai didi

What `partial apply for closure #1 in closure #1 in Double.init(_:)` crash is about?(在Double.init(_:)`Crash中的闭包#1中`Partial申请闭包#1是关于什么的?)

转载 作者:bug小助手 更新时间:2023-10-25 10:40:55 29 4
gpt4 key购买 nike



I give up: I have been investigating this crash that is impacting hugely my product, without finding the cause. Crashlitics shows me that this bug started on a certain date, after I released a new version, but I can't match anything with this crash.

我放弃了:我一直在调查这起对我的产品产生巨大影响的崩溃事件,但没有找到原因。Crashlitics告诉我,这个错误是在我发布新版本后的某个日期开始的,但我无法将任何东西与这次崩溃相匹配。


Do you have any idea of what this could be caused from?
Can you provide an example of code that could be generating this crash?

你知道这可能是什么原因吗?你能提供一个可能导致这次崩溃的代码示例吗?


Thank you 🙏🏻

谢谢你,🙏🏻


Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000686d303ed870
0
libswiftCore.dylib
_swift_release_dealloc + 32
1
libswiftCore.dylib
bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 136
2
AppName
<compiler-generated> - Line 4309475464
partial apply for closure #1 in closure #1 in Double.init<A>(_:) + 4309475464
3
libswiftCore.dylib
_swift_release_dealloc + 56
4
libswiftCore.dylib
bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 136
5
libsystem_blocks.dylib
_call_dispose_helpers_excp + 48
6
libsystem_blocks.dylib
_Block_release + 252
7
libdispatch.dylib
_dispatch_client_callout + 20
8
libdispatch.dylib
_dispatch_main_queue_drain + 984
9
libdispatch.dylib
_dispatch_main_queue_callback_4CF + 44
10
CoreFoundation
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
11
CoreFoundation
__CFRunLoopRun + 1996
12
CoreFoundation
CFRunLoopRunSpecific + 608
13
GraphicsServices
GSEventRunModal + 164
14
UIKitCore
-[UIApplication _run] + 888
15
UIKitCore
UIApplicationMain + 340
16
AppName
main.m - Line 18
main + 18
17
(Missing)

From Xcode:

来自Xcode:


enter image description here


更多回答

You need to symbolicate the crash log - If you upload your dsyms to crashlytics, it will do it for you. Then you will get a line number and file for the closure where the crash is occurring. It looks like you are passing released memory to Double()

你需要象征崩溃日志-如果你上传你的dsyms到Crashlytics,它会为你做这件事。然后,您将获得发生崩溃的闭包的行号和文件。看起来您正在将释放的内存传递给Double()

@Paulw11 Thx but the crash log is already entirely symbolicated. The error says "compiler generated" because is an inner code generated by the compiler. The question is when this happens.

@Paulw11 Thx但坠机日志已经完全具有象征意义。错误显示“编译器已生成”,因为这是由编译器生成的内部代码。问题是这种情况何时发生。

When that happens ... for us it is hard to tell. We do not know what features you added in your recent update, or what compiler optimisation setting you are using. This could for example be just a force cast in a map function when converting from string to double. But also some objective-c stuff maybe from a library that does not properly handle nullable. Or some other actor modifying an isolated property.

当这种情况发生时..。对我们来说,很难说。我们不知道您在最近的更新中添加了哪些功能,也不知道您使用的是什么编译器优化设置。例如,当从字符串转换为双精度时,这可能只是映射函数中的强制投射。但也有可能来自不能正确处理nullable的库中的一些Objective-c代码。或修改孤立属性的某个其他参与者。

Based on the alleged line number (4309475464) we can deduce that the stack frame in question has not been symbolicated correctly. Whether that's an Apple bug, a Crashlytics bug, or a user error, I don't know. Anyway, try running your app under the address sanitizer and the thread sanitizer. Also consider using a Technical Support Incident. Your paid Apple developer account includes two of these per year (and you can buy more).

根据声称的行号(4309475464),我们可以推断出问题堆栈帧没有正确地用符号表示。无论是苹果的漏洞,Crashlytics的漏洞,还是用户的错误,我都不知道。无论如何,试着在地址消毒器和线程消毒器下运行你的应用程序。还可以考虑使用技术支持事件。你的付费苹果开发者账户每年包括两个这样的账户(你还可以购买更多)。

This is fully symbolicated. Even Xcode returns the same stuff. It seems that it only happens after the first app launch. on both iOS and tvOS.

这完全是象征性的。即使是Xcode也会返回相同的内容。似乎只有在第一个应用程序发布后才会发生这种情况。在iOS和TVOS上都有。

优秀答案推荐
更多回答

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com