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

Crash in Combine.swift #8450

Open
chris-jarvi opened this issue Jan 4, 2024 · 0 comments
Open

Crash in Combine.swift #8450

chris-jarvi opened this issue Jan 4, 2024 · 0 comments

Comments

@chris-jarvi
Copy link

How frequently does the bug occur?

Sometimes

Description

We are getting numerous crash reports in Combine.swift which looks to only be touching Realm code. Crash happens at application launch.

The error thrown is

Sigtrap . closure #1 in RealmCollectionImpl.observe(: on:_:) (Combine.swift:821)
Combine/Publisher+AsyncSequence.swift:112: Fatal error: Received an output without requesting demand

Stacktrace & log output

0    libswiftCore.dylib                       0x1915d33e4     0x19159c000
1    Combine                                  0x1a001dac4     0x19ff75000
2    Combine                                  0x1a001e604     0x19ff75000
3    Pest Service                             0x100ad1154     closure #1 in RealmCollectionImpl._observe<A>(_:on:_:) (Combine.swift:821)
4    Pest Service                             0x100ae4fc8     partial apply for closure #1 in RealmCollectionImpl._observe<A>(_:on:_:) (<compiler-generated>:0)
5    Pest Service                             0x100b39e18     thunk for @escaping @callee_guaranteed (@guaranteed RLMResults<Swift.AnyObject>?, @guaranteed RLMCollectionChange?, @guaranteed Error?) -> () (<compiler-generated>:0)
6    Pest Service                             0x100999a64     realm::CollectionChangeCallback::Impl<(anonymous namespace)::CollectionCallbackWrapper>::after(realm::CollectionChangeSet const&) (collection_notifications.hpp:195)
7    Pest Service                             0x100c49cd4     realm::_impl::CollectionNotifier::after_advance() (collection_notifier.cpp:323)
8    Pest Service                             0x100c580ac     realm::_impl::RealmCoordinator::process_available_async(realm::Realm&) (realm_coordinator.cpp:1166)
9    Pest Service                             0x100cc919c     realm::Realm::notify() (shared_realm.cpp:1205)
10   Pest Service                             0x100c62450     realm::util::UniqueFunction<void ()>::SpecificImpl<realm::_impl::WeakRealmNotifier::notify()::$_0>::call() (functional.hpp:154)
11   Pest Service                             0x100d2764c     realm::util::InvocationQueue::invoke_all() (scheduler.cpp:105)
12   CoreFoundation                           0x19793e0cc     0x19786b000
13   CoreFoundation                           0x19794a758     0x19786b000
14   CoreFoundation                           0x1978cf578     0x19786b000
15   CoreFoundation                           0x1978e5064     0x19786b000
16   CoreFoundation                           0x1978ea37c     0x19786b000
17   GraphicsServices                         0x1d2e1135c     0x1d2e10000
18   UIKitCore                                0x199c76f58     0x1998da000
19   UIKitCore                                0x199c76bbc     0x1998da000
20   Pest Service                             0x100635a30     main (AppDelegate.swift:17)

Can you reproduce the bug?

No

Reproduction Steps

No response

Version

10.40.2

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 16.1.1 +

Build environment

ProductName:		macOS
ProductVersion:		14.2.1
BuildVersion:		23C71

/Applications/Xcode.app/Contents/Developer
Xcode 15.1
Build version 15C65

pod not found
(not in use here)

/bin/bash
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)

carthage not found
(not in use here)

/usr/bin/git
git version 2.39.3 (Apple Git-145)

we are using SPM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant