Post

Replies

Boosts

Views

Activity

Find what is causing app to freeze
We've been trying to deal with this issue for weeks now. We suspect might be something related with sendbird and we are also in contact with sendBird team but getting nowhere. Sometimes, when starting our app after the login our app just freezes and becomes unresponsive, sometimes even causing a crash. We are having some trouble finding out what is causing it. Today I was able to replicate the issue using an iPhone 7 simulator with ios 15.4 and I was able to debug a little. The debug view hierarchy is also unresponsive and suggests to try and use time profile, which I did. I also use Thread safe But I couldnt actual make much sense of the results. So I was hoping you could help me with it. Hopefully, you can provide some light on this issue. Thanks
1
0
1.4k
Mar ’22
Whats wrong with my watch during debugging?
When I set breakpoints I keep getting Invalid expression for variables that are clearly set and there "in context". Furthermore lets say I have an object X with a property y I'm able to check object X with all of its properties but If i try to watch for X.y I get "Invalid expression" this doesnt make much sense... I even try to add watch directly from X.y in the watch section but then I got this error Details Failed to set watch point Domain: IDEDebugSessionErrorDomain Code: 2 Failure Reason: error: Watchpoint creation failed (addr=0x282efac68, size=8, variable expression='self.controller'). error: sending gdb watchpoint packet failed User Info: {   DVTRadarComponentKey = 855031; } -- System Information macOS Version 12.1 (Build 21C52) Xcode 13.2.1 (19586) (Build 13C100) Timestamp: 2022-03-02T15:45:33Z I've looked into my build options for the project and optimizations are set to None on Debug... Am I missing something?
0
0
1.1k
Mar ’22
Dictionary Subscript getter crash
I'm having several crashes that I've been unable to replicate <compiler-generated> - Line 4370483668 specialized Dictionary.subscript.getter + 4370483668 I suspect this might be related with dictionaries not being accessed in a safe way due the use of several threads(?) The most common crash happens in this line guard self.service?.handlers[id] != nil else { any ideas or suggestions? Do you think a .async(flags: .barrier) could solve the issue? because I'm unable to replicate it. this code is called via observers over a Realm database so the Unit test i've created does several threads that try to write the database at same time. UNIT TEST PSEUDO CODE func testDictionaryAccess() { &#9; for i in 0...10 &#9; { &#9;&#9; dispatchGroup.enter() &#9;&#9; DispatchQueue(label: "createActivityThreads").async { &#9;&#9;&#9; create records on database() &#9;&#9;&#9; dispatchGroup.leave() &#9;&#9; } &#9; } &#9; dispatchGroup.wait() &#9; XCTAssertTrue(true) } each loop iteration takes about 20 seconds to run so theres plenty of time for them to start having conflicts between each other
1
1
3.5k
Sep ’20