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

在使用Instruments中Allocations监测 app 内存使用情况时,遇到使用 deserialize 将json 转模型的地方会退出 #376

Open
fuhailong opened this issue May 21, 2020 · 8 comments

Comments

@fuhailong
Copy link

我在Instruments中Allocations监测 app 内存使用时,发现只要调用 deserialize 方法,Allocations在启动后,就会退出,无法运行
我把其它代码都注释掉后,就能正常运行,然后再取消注释任意一个 deserialize 方法,Allocations在启动后,就又会退出,无法运行
请问这是啥什么呢?
有没有遇到相同问题的同学,有人使用在使用Allocations遇到问题了么?

@fuhailong
Copy link
Author

swift 5.0 项目工程,正常使用和调试 app 没有任何问题,但只要通过Allocations跑起来 app,就会退出

@kkkelicheng
Copy link

讲真我真不知道怎么说,我是准备换了。

@fuhailong
Copy link
Author

讲真我真不知道怎么说,我是准备换了。

你也是这种情况? 我用了周末2天时间 把工程里所有的地方都换了 累出屁了 今天还得做全面的测试

@kkkelicheng
Copy link

讲真我真不知道怎么说,我是准备换了。

你也是这种情况? 我用了周末2天时间 把工程里所有的地方都换了 累出屁了 今天还得做全面的测试

客户一台机器XS Max 13.4.1 有泛型解析的地方会蹦。
我这边同样的测试机不会蹦,但是拿Instruments就会崩溃。
反正这个库用起来确实不错,性能也好。我还是希望快快修复。。。

@fuhailong
Copy link
Author

讲真我真不知道怎么说,我是准备换了。

你也是这种情况? 我用了周末2天时间 把工程里所有的地方都换了 累出屁了 今天还得做全面的测试

客户一台机器XS Max 13.4.1 有泛型解析的地方会蹦。
我这边同样的测试机不会蹦,但是拿Instruments就会崩溃。
反正这个库用起来确实不错,性能也好。我还是希望快快修复。。。

我现在是全换成 JSONDecoder 和 JSONEncoder 了
换完之后 Instruments 也没问题了

@lynnleelhl
Copy link
Collaborator

lynnleelhl commented May 26, 2020 via email

@fuhailong
Copy link
Author

这个问题我已经记下了,会想办法修的,别着急

On Tue, May 26, 2020 at 10:03 fuhailong @.***> wrote: 讲真我真不知道怎么说,我是准备换了。 你也是这种情况? 我用了周末2天时间 把工程里所有的地方都换了 累出屁了 今天还得做全面的测试 客户一台机器XS Max 13.4.1 有泛型解析的地方会蹦。 我这边同样的测试机不会蹦,但是拿Instruments就会崩溃。 反正这个库用起来确实不错,性能也好。我还是希望快快修复。。。 我现在是全换成 JSONDecoder 和 JSONEncoder 了 换完之后 Instruments 也没问题了 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#376 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOL2QI2GKEYJ3IQ4RO6LDDRTMPPHANCNFSM4NGQNHJA .

@kkkelicheng
Copy link

这个问题我已经记下了,会想办法修的,别着急

On Tue, May 26, 2020 at 10:03 fuhailong @.***> wrote: 讲真我真不知道怎么说,我是准备换了。 你也是这种情况? 我用了周末2天时间 把工程里所有的地方都换了 累出屁了 今天还得做全面的测试 客户一台机器XS Max 13.4.1 有泛型解析的地方会蹦。 我这边同样的测试机不会蹦,但是拿Instruments就会崩溃。 反正这个库用起来确实不错,性能也好。我还是希望快快修复。。。 我现在是全换成 JSONDecoder 和 JSONEncoder 了 换完之后 Instruments 也没问题了 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#376 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOL2QI2GKEYJ3IQ4RO6LDDRTMPPHANCNFSM4NGQNHJA .

5.0.0版本我崩溃的地方是在
ExtendCusomModelType.swift line:175
Thread 1: EXC_BAD_ACCESS(code=1,address=0x29)
我已经换成了5.0.2beta 。
客户机器没问题了。

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

3 participants