-
Notifications
You must be signed in to change notification settings - Fork 459
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
EXC_BAD_ACCESS NameMap.init #1113
Comments
Does this only fail in debug or does it also fail in release? This sounds some what like some past issues (#779, #1034). The swift compiler ends up generating code that uses a lot of memory in non optimized cases, we've done some changes to try and work around things, but watchOS might have smaller limits that are causing this to happen. Can you share any details about your proto file(s) so we can see if there is something we can change in code generation to try and help reduce things? |
It fails on real devices. I can't catch it with simulator. But the key point is, this appears only on watch series 3. Series 5, 6 or se work great with no crash. Can I user your email address that is on your GitHub profile to send the proto file? |
Is that a debug build or a release build when it fails?
Sure. |
It is a release build. I sent you the proto file. |
The raw .proto file is the most useful (I can always regenerate), but it makes it a little easier to see your structure quickly. :) |
oh yes, let me check. :) |
Recording some quick notes from a quick glance -
Random ideas:
|
Calling this an enhancement for the moment, because nothing we're doing is wrong, it's just a side effect of how Swift does some things that is resulting in the stack issues. |
Thank you very much for your feedback. These are so valuable. I will check it out. Thank you again! |
Hello, this is happening to me as well on an Apple Watch 3, when decoding protobuf JSON for the first time. |
@tkafka If you find a solution or a way, can you let me know too? I have been suffering from this problem for months. My app doesn't support watch3 Series because of the crash. |
@Turacbey I just changed the app to use binary protobuf format everywhere, instead of json. |
@tkafka Thank for your answer. It needs too much effort for my project to do that. I hope there will be a solution for the crash. |
The app is crashing while converting data to json string.
It crashes only on watch 3 series and WatchOS 7.0+. (haven't tried below of OS 7.0 ).
SwiftProtobuf version 1.14.0 is used.
Here is the crash log;
The text was updated successfully, but these errors were encountered: