-
Notifications
You must be signed in to change notification settings - Fork 50
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
Crash on iPhone #23
Comments
Hi, Are you sure that your repo contains the most recent version of your code? Your stacktrace references lines/functions that don't seem to exist. |
HI Brian, Crash logs:2019-05-06 17:47:48.714653+0800 QuietShare[1094:179918] granted is 1
Crash backtrace: |
Unfortunately I don'trealy have time to look into this right now. I believe the tests in QuietModemKit do try to test that dealloc works though. Can you verify whether the tests pass for you, and if so, can you try to modify them to reproduce the behavior you're seeing here? If I do get some time for this, it will be much easier for me look into it inside the tests. |
Thanks for the suggestion @brian-armstrong . I will try to run test cases and update if I face any issues. Thanks again for the prompt response. |
Hi @brian-armstrong , I am getting below error while building QuietModemKit in xcode. Please let me know id I need to do any settings in xcode. I can able to build successfully using 'carthage update' Error message:does not appear to contain CMakeLists.txt. |
Hi @brian-armstrong I can able to resolve some of the dependency issues while building QuietModemKit binary for running tests cases in xcode and I struck with below error. Can you please check if you can help on this error. |
It looks like you're missing the submodules. You might need to do something like git submodule update --init --recursive |
thanks very much @brian-armstrong . Actually I installed all sub modules manually, after submodules installation I tried to build, then only I got this error. |
I cloned in a separate folder and did git submodule update --init --recursive. Now I can able to build successfully and able to run the test cases. thanks @brian-armstrong. Now I will try to modify test cases to reproduce my scenario in test cases. |
Hi @brian-armstrong I tried with test cases and no crash issue occurred. Let me explain my scenario, so that you will get better understanding of the crash. My app has three buttons as below.
Scenario 1 (No crash):If I use CFRunLoopRun() in sending/receive mode , crash is not happening. But once started, we cant stop sending/receiving mode in this scenario. Scenario 2 (Crash issue):To have more control on sending/receive mode, I added timer instead of CFRunLoopRun(). In this case crash is happening. Below are the steps to reproduce crash issue:
My Analyses:
can you please help on this? Thanks again for your support. |
I haven't had a chance to try any of the code myself, but one thing that looks suspicious here is setting a receive callback and calling receive. I don't think that would cause a crash, but it probably won't give you predictable behavior. If you specify a callback then QMKit assumes you won't call receive yourself. |
I removed setReceiveCallback method and tried again, still facing crash issue. |
Hi @brian-armstrong I tried using CFRunLoopRun();, in this case there is no crash issue. But when I use setBlocking method, I face crash consistently. Below code may help to find the root cause. No Crash occurring Code :`
} Crash occurring code:` [[AVAudioSession sharedInstance] requestRecordPermission:request_callback];
` Thanks in advance. |
Hi Brian, I can able to transfer data using Quiet framework in iOS. But consistently app is crashing in iOS due to below error message. I think this is related incorrect memory access. But I didn't do any code changes related to memory issue. Can you please help on this?
You can find the code if required https://github.com/chanduthedev/iOS/tree/master/QuietShare
Error log:
2019-05-06 11:39:28.695414+0800 TestSoundPayment[745:112219] In receive profile :ultrasonic-experimental
TestSoundPayment(745,0x104cfebc0) malloc: Incorrect checksum for freed object 0x10581f000: probably modified after being freed.
Corrupt value: 0x0
TestSoundPayment(745,0x104cfebc0) malloc: *** set a breakpoint in malloc_error_break to debug
(lldb)
Crash backtrace:
The text was updated successfully, but these errors were encountered: