You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #4009, I encounter an EXC_BAD_ACCESS crash using the FFI bindings for iOS.
Tried using the simulator and real devices, no difference. Used the current latest main branch.
The stacktrace indicates it could again be a problem in the poll method for rooms_stream, where the clone method throws an error for fetch_add.
I built the Swift package using cargo xtask swift build-framework --target aarch64-apple-ios --target aarch64-apple-ios-sim (as a result of #4009 the build defaults to the reldbg profile, as seen in the log).
One thing to note is that on the first run (no saved user, user logging in manually) the RoomListEntriesListener returns a reset (expected) with no items (?). The crash only happens on the second run, but does not appear to be caused by the session restoration, as a deviceId hard-coding also produces this crash (initial login, save deviceId and hard-code it into client.login()).
Edit:
If sessionPaths is not specified in the ClientBuilder constructor, the app does not crash, but the RoomListEntriesListener does not receive any Rooms.
Using element-hq/matrix-rust-components-swift v25.3.6 (currently newest) or building in release (--release) also crashes, but with The file path does not exist on the file system: /rustc/xxx/library/alloc/src/boxed.rs (the error nonetheless is located in Client.rooms_stream, so this may be an expected error message).
As described in RoomList.entries_with_dynamic_adapters if the call to setFilter is omitted, the app does not crash, as it does nothing.
Using element-hq/element-web I created a private, public and DM room with the users "admin" and "test".
The text was updated successfully, but these errors were encountered:
Similar to #4009, I encounter an EXC_BAD_ACCESS crash using the FFI bindings for iOS.
Tried using the simulator and real devices, no difference. Used the current latest main branch.
The stacktrace indicates it could again be a problem in the
poll
method forrooms_stream
, where theclone
method throws an error forfetch_add
.I built the Swift package using
cargo xtask swift build-framework --target aarch64-apple-ios --target aarch64-apple-ios-sim
(as a result of #4009 the build defaults to thereldbg
profile, as seen in the log).My example code is the following:
One thing to note is that on the first run (no saved user, user logging in manually) the
RoomListEntriesListener
returns areset
(expected) with no items (?). The crash only happens on the second run, but does not appear to be caused by the session restoration, as adeviceId
hard-coding also produces this crash (initial login, savedeviceId
and hard-code it intoclient.login()
).Edit:
sessionPaths
is not specified in theClientBuilder
constructor, the app does not crash, but the RoomListEntriesListener does not receive any Rooms.element-hq/matrix-rust-components-swift
v25.3.6 (currently newest) or building in release (--release
) also crashes, but withThe file path does not exist on the file system: /rustc/xxx/library/alloc/src/boxed.rs
(the error nonetheless is located inClient.rooms_stream
, so this may be an expected error message).RoomList.entries_with_dynamic_adapters
if the call tosetFilter
is omitted, the app does not crash, as it does nothing.element-hq/element-web
I created a private, public and DM room with the users "admin" and "test".The text was updated successfully, but these errors were encountered: