https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
kotlin-native
  • s

    saket

    09/14/2020, 6:43 PM
    can you point us to the channel rules for not using threads?
    s
    • 2
    • 2
  • e

    expensivebelly

    09/15/2020, 8:41 AM
    What's the latest news for BigDecimal support in Kotlin Native?
    a
    • 2
    • 3
  • d

    Daniele B

    09/15/2020, 3:15 PM
    I have this Repository class in the `commonMain`:
    class Repository {
        companion object Data {
            var lastUpdate: String? = null
            var countriesListWithSummary: List<CountrySummary> = emptyList()
        }
    }
    when I compile it for iOS, I get these warnings:
    Variable in singleton without @ThreadLocal can't be changed after initialization
    and on runtime I actually get this crash:
    kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen mypackage.Repository.Data@3310e88
    How should I handle this situation?
    a
    l
    • 3
    • 12
  • e

    Elka

    09/16/2020, 8:30 AM
    Hello any idea on how I can print the value of a global variable/method when debugging in native:
    // In Constant.kt
    
    val x: Int = 0
    fun doSomething(): String
    r
    • 2
    • 2
  • d

    Daniele B

    09/16/2020, 5:10 PM
    I have a question about
    StateFlow
    on Kotlin/Native. Let’s say StateFlow is holding/passing an immutable data object, and it’s collected on the iOS side on
    Dispatchers.Main
    , to be used with SwiftUI. On the Application Logic side, I’m processing/setting the new StateFlow values (by using the Kotlin
    copy
    function), inside a coroutine. My question is: according to the current Kotlin/Native multithreading system, should such coroutine where I am processing/setting the new StateFlow values run on
    Dispatchers.Main
    or it can also use a background thread (e.g. Dispatchers.Default)? Being the value immutable, I wonder if
    StateFlow
    is able to provide thread safety under the hood, without having to care what is the thread where the new value is set.
    t
    • 2
    • 6
  • a

    alex_vinz

    09/17/2020, 8:49 AM
    Guys, can anyone help with adding iOS library to shared KMM module? Struggling for 3 days already and cannot make it working... The latest error I get when building app in xcode:
    Undefined symbols for architecture x86_64:
    "_OBJC_CLASS_$_FIROptions", referenced from:
    objc-class-ref in shared(result.o)
    "_OBJC_CLASS_$_FIRApp", referenced from:
    objc-class-ref in shared(result.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    a
    t
    • 3
    • 14
  • m

    Martin Gagnon

    09/17/2020, 1:21 PM
    Since I have enabled Bitcode in my app, I cannot figure out how to get a clean call stack in Crashlytics. • Kotlin 1.4 • Bitcode enabled • Dsyms downloaded from the App Store Connect (Crashlytics does not complains of missing Dsyms) • Static Framework • CrasKIos (with latest version of Crashlytics) Any hints would be appreciated: Details in :thread-please:
    • 1
    • 4
  • d

    Daniele B

    09/17/2020, 2:19 PM
    ld: warning: ignoring file myApp/shared/build/xcode-frameworks/shared.framework/shared, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
    m
    • 2
    • 1
  • d

    Diego

    09/17/2020, 2:22 PM
    Hello guys. In my common library I have two iOS targets
    iosArm64
    and
    iosX64
    . I have configured them to generate a
    .framework
    with the following code:
    iosArm64() {
        binaries {
            framework {
                baseName = "KiplingCommonArm64"
            }
        }
    }
    iosX64() {
        binaries {
            framework {
                baseName = "KiplingCommonX64"
            }
        }
    }
    Like with any other third party iOS framework, I would like to have a single one that can run in the simulator and the real devices. Is that possible? If so, how can I do it?
    k
    • 2
    • 2
  • r

    ribesg

    09/17/2020, 3:23 PM
    How do you, from a coroutine A, run something on another thread (a Ktor request or any coroutine B) and suspend while waiting for the result, without freezing coroutine A, using 1.3.9-native-mt?
    👀 1
    k
    r
    +2
    • 5
    • 25
  • d

    dazza5000

    09/17/2020, 6:24 PM
    I am trying to call a function that is parented to a sealed class - when I try to access the method in iOS I get the following (is this a known issue):
    Application Specific Backtrace 1:
    0   CoreFoundation                      0x00007fff23e3de6e __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff512a19b2 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23e5eb94 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x00007fff23e4286c ___forwarding___ + 1436
    4   CoreFoundation                      0x00007fff23e44b58 _CF_forwarding_prep_0 + 120
    5   FivestarsPay                        0x000000010be83ae7 $s12FivestarsPay0aB8ListenerC02onaB5Event09fivestarsbE0ySo06SharedabE0C_tF + 1655
    6   FivestarsPay                        0x000000010be83cc4 $s12FivestarsPay0aB8ListenerC02onaB5Event09fivestarsbE0ySo06SharedabE0C_tFTo + 68
    7   shared                              0x000000010beed242 objc2kotlin.278 + 802
    8   shared                              0x000000010bed2c48 kfun:fivestars.okpayplugin.OkPayPlugin#handleAction(com.fivestars.integration.okpayplugin.model.Action;kotlin.String?;kotlin.String?){} + 3688
    9   shared                              0x000000010bed14b7 kfun:fivestars.Plugin.object-1.userContentController#internal + 1495
    10  shared                              0x000000010bed19dc _496e746567726174696f6e3a706f696e746f6673616c65_knbridge20 + 300
    11  WebKit                              0x00007fff2d44f4b1 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyEONS0_13FrameInfoDataERN7WebCore21SerializedScriptValueE + 217
    12  WebKit                              0x00007fff2d5febf3 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageERN3IPC10ConnectionEN3WTF16ObjectIdentifierINS_26WebPageProxyIdentifierTypeEEEONS_13FrameInfoDataEyRKNS1_13DataReferenceE + 175
    13  WebKit                              0x00007fff2d809f16 _ZN6WebKit29WebUserContentControllerProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 146
    14  WebKit                              0x00007fff2d2bae6a _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 114
    15  WebKit                              0x00007fff2d53599a _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 24
    16  WebKit                              0x00007fff2d2a993c _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 158
    17  WebKit                              0x00007fff2d2a8f71 _ZN3IPC10Connection24dispatchIncomingMessagesEv + 377
    18  JavaScriptCore                      0x00007fff26aaaa15 _ZN3WTF7RunLoop11performWorkEv + 549
    19  JavaScriptCore                      0x00007fff26aaab82 _ZN3WTF7RunLoop11performWorkEPv + 34
    20  CoreFoundation                      0x00007fff23da1c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    21  CoreFoundation                      0x00007fff23da1bbc __CFRunLoopDoSource0 + 76
    22  CoreFoundation                      0x00007fff23da1394 __CFRunLoopDoSources0 + 180
    23  CoreFoundation                      0x00007fff23d9bf8e __CFRunLoopRun + 974
    24  CoreFoundation                      0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404
    25  GraphicsServices                    0x00007fff38c05bbe GSEventRunModal + 139
    26  UIKitCore                           0x00007fff49372964 UIApplicationMain + 1605
    27  FivestarsPayHyperloop               0x000000010b81eb25 main + 1173
    28  libdyld.dylib                       0x00007fff5211c1fd start + 1
    29  ???                                 0x0000000000000001 0x0 + 1
    l
    • 2
    • 13
  • n

    natario1

    09/18/2020, 4:53 PM
    Can anyone explain why cinterop tasks depend on the project dependencies? 😕 what's the use case here? https://github.com/JetBrains/kotlin/blob/a766369e7283d7b89a5ca2960460dc20365f919a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/native/KotlinNativeTargetConfigurator.kt#L389-L405 My project
    X
    depends on
    project(":Y")
    and on some cinterop libraries. Because of how cinterop tasks are configured by the Kotlin plugin, anytime
    Y
    changes, all the interops are executed again, slowing down the build.
    k
    i
    • 3
    • 5
  • n

    napperley

    09/20/2020, 9:13 PM
    Keep on seeing a buffer overflow type effect occurring when writing messages to a log file. Some of the written messages have the timestamp included twice. What could cause a buffer overflow to occur?
    • 1
    • 3
  • s

    Sourabh Rawat

    09/21/2020, 3:05 AM
    Getting
    C:\Users\srawa\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1\bin\ld: cannot find -lcurl
    I installed libcurl following https://github.com/JetBrains/kotlin-native/blob/master/samples/libcurl/README.md. Not sure what the problem is.
    d
    m
    • 3
    • 8
  • k

    Kroppeb

    09/22/2020, 12:48 PM
    I'm trying to figure out if it's possible to start an executeable and wait for it to close. I have found https://stackoverflow.com/questions/51460921/kotlin-native-execute-an-executable, but that uses the "exec" family which won't return after the process is finished it seems?
    m
    a
    • 3
    • 9
  • k

    Kroppeb

    09/22/2020, 1:30 PM
    I'm trying to make a simple ui with "libui" on windows but I can't get my code to start. After some tweaking it seems it wants a file at
    <KONAN_DATA_DIR or user dir>/.konan/dependencies/msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1/bin/windres
    But I have no idea what's supposed to be there
    a
    m
    • 3
    • 14
  • e

    EvaS

    09/22/2020, 3:31 PM
    Hi, Does anyone know how to use
    kotlin.native.internal
    with Kotlin 1.4 ? It says "unresolved reference" but I see a lot of message mentioning it. Did it change ?
    k
    • 2
    • 3
  • e

    eenriquelopez

    09/23/2020, 9:23 AM
    Hi folks. I am trying to compile some Kotlin code to Swift, and particularly some enums. The enums in Swift are compiled as a class instead of a struct. Later on, I want this compiled class to extend from Decodable, but I receive a message "`Implementation of 'Decodable' cannot be automatically synthesized in an extension in a different file to the type`", since they would need to be on the same file. I wonder if any of you have hit this problem. Is it possible to specify in K/N that a enum should compile to a struct instead of an enum?
    s
    • 2
    • 2
  • j

    James Smith

    09/23/2020, 10:43 AM
    Hi, I'm trying to add Swift-only pod to K/N by adding a Swift wrapper with @objc on top. I created a separate project, created a pod out of it, but the build fails with ambiguous message
    xcodebuild failed with error 65
    . If I try to add the @objc wrapper directly to the pod in question, the build fails with
    Undefined symbols for architecture x86_64:
    "_OBJC_CLASS_$__TtC11CryptoSwift9CryptoAES", referenced from:
    objc-class-ref in result.o
    Which references exactly the wrapper that I created. What am I missing?
    a
    • 2
    • 2
  • n

    Nikky

    09/23/2020, 11:33 AM
    so..i have a hobby project that would be nice to put on a raspi, but i might need it to expose a website for configuring it live (just editing a file) is any of the webserver libraries around suitable to be compiled for arm on raspberry pi ? so far in my googling all of those just mentioned graalvm and similar.. which i don't really want to deal with i just need very simple basic http functionality of PUT or POST to set different variables and GET routes to server static html and js
    n
    • 2
    • 4
  • a

    alex_vinz

    09/24/2020, 3:25 PM
    When developing in commonModule I lint issue that says "Expected class 'SomeClass' has no actual declaration in module shared_iosArm64Main for Native. Though code compiles and works on emulator & real device
    k
    • 2
    • 4
  • j

    James Smith

    09/25/2020, 12:12 PM
    Any idea how to make native library without cocoapod work? I'm following these instructions: https://kotlinlang.org/docs/mobile/add-dependencies.html#add-a-library-without-cocoapods But I get the following error when I try to run the tests:
    dyld: Library not loaded: @rpath/MyFramework.framework/MyFrameworkMyFramework
    Referenced from: /redacted/path/build/bin/ios/debugTest/test.kexe
    Reason: image not found
    My gradle setup is exactly as in the article, there are no warnings from the linker. I've checked several resources about xcode problems like this, tried settings from these answers: https://stackoverflow.com/questions/27174371/ios-8-dynamic-framework-library-not-loaded https://stackoverflow.com/questions/45542928/load-custom-dynamic-library-dylib-in-ios-application
    a
    t
    • 3
    • 8
  • a

    Arnaud Vallat

    09/26/2020, 5:30 PM
    Hi, I'm able to leverage kotlin native to target different platform and ABIs. Right now I'm trying to target arm32 but not hard float. I can't use android arm32 because the target device is not android. Looking up in Slack I see questions about arm32 soft float too but I haven't found anyone managing to target this specific abi. Is there a way to pass a compiler options to clang while building via konanc so that mfloat-abi can be pass as soft? Is the only solution to build kotlin-native locally and change konan.properties? Thank you a lot for your help.
    s
    n
    • 3
    • 3
  • r

    Roger Kreienbühl

    09/27/2020, 1:46 PM
    Hi I’m really new to Kotlin Native. I’m trying to develop with Kotlin Nativ for Raspberry Pi. I successfully added the pigpio library and can use it, but sometimes I have the problem, that the program exits with:
    sigHandler: Unhandled signal 11, terminating
    My code looks like this:
    package ch.lichtwellenreiter.omrr
    
    import kotlinx.cinterop.staticCFunction
    import pigpio.*
    
    const val GPIO_BUTTON = 6
    var lastChange: UInt = 0u
    
    fun main() {
        initGPIO()
        setupButton()
    
        while (true) {}
    }
    
    private fun initGPIO() {
        if (gpioInitialise() < 0) {
            println("GPIO Error initialising")
            return
        }
    }
    
    private fun setupButton() {
        val buttonPort = GPIO_BUTTON.toUInt()
        initPortWithMode(buttonPort, PI_INPUT)
    
        gpioSetAlertFunc(buttonPort, flankChangeDetected)
    }
    
    private fun initPortWithMode(port: UInt, mode: Int) {
        if (gpioSetMode(port, mode.toUInt()) < 0) {
            println("Could not set mode for GPIO$port")
            return
        }
    }
    
    val flankChangeDetected = staticCFunction<Int, Int, UInt, Unit> { gpio, level, tick ->
        val ticker = tick
        val pin = gpio
        val lvl = level
    
    
        when (lvl) {
            0 -> {
                val time = ticker - lastChange
                lastChange = ticker
                println(tick)
                if ((time > 55u && time < 61u) || (time > 113u && time < 119u)) println(time)
                println("Button Pressed down, level 0")
            }
            1 -> {
                val time = ticker - lastChange
                lastChange = ticker
                println(tick)
                if ((time > 55u && time < 61u) || (time > 113u && time < 119u)) println(time)
                println("Button released, level 1")
            }
            2 -> println("Button GPIO timeout, no level change")
        }
    }
    The error occurs not every time, I could not identify the exact place in code where it happens, but I think it is the access to
    lastChange
    inside the when expression. Has anyone some experience with such errors? Is there a way to copy the value from a C Int or UInt?
    g
    n
    • 3
    • 31
  • s

    SrSouza

    09/27/2020, 11:10 PM
    Hi folks, newbe here in Kotlin Native and WASM, just for curiosity, there is someway to call a Rust function compiled to WASM from Kotlin Native that will target WASM as well?
    b
    • 2
    • 1
  • m

    myrronth

    09/28/2020, 4:47 AM
    As this should also be a Kotlin/Native problem, maybe this channel could help me out? 🙂
    👀 1
    a
    • 2
    • 1
  • s

    Sam Garfinkel

    09/28/2020, 5:04 PM
    Will klibs ever enable embedding C source code to support JIT or at least portable dependencies? This would be really nice to have at least with Gradle, where pulling down say a libcurl wrapper also builds the C source on demand. Would make shipping wrappers far easier.
    ➕ 1
    l
    • 2
    • 1
  • m

    Martin Gagnon

    09/28/2020, 9:28 PM
    Just in case someone stumble on the same issue, I am investigating a crash that all our application that are updating to Kotlin 1.4 runs into: /Users/teamcity/buildAgent/work/cae0e6559deed4c4/runtime/src/main/cpp/Memory.cpp:1605: runtime assert: Recursive GC is disallowed The 4 applications were running fine under 1.3.60 and 1.3.70. They are about 1 year old each. I am trying to product a simple app to reproduce the issue but I cannot figure the setup to make that happen. The common denominator is this: • Swift class deinit gets call • The deinit  
    cancellableManager.cancel()
     that cancel and frees a list of object. • The list inside the 
    cancellableManager
     is replaced by a frozen new list (Stored inside an AtomicReference) • Assert happens I would really like some support from @cschramm here 😉 In any case, I’ll continue trying to understand this issue. Could it be possible that the GC can be triggered by the common code and simultaneously by Swift ? (Common Code triggers the GC -> this has an impact on the swift Code, swift code triggers the GC)?
    s
    • 2
    • 7
  • r

    ribesg

    09/29/2020, 9:52 AM
    I am also encountering a lot of various crashes in
    Memory.cpp
    . Looks like every time I relaunch my app it ends up crashing in a different place after a few seconds. It’s a big app, no way I can make a reproducer for these errors.
    a
    s
    • 3
    • 16
  • r

    ribesg

    09/29/2020, 1:58 PM
    I don’t know if this one is different than the others, I get it 100% of the time on startup currently... Weird
    s
    • 2
    • 2
Powered by Linen
Title
r

ribesg

09/29/2020, 1:58 PM
I don’t know if this one is different than the others, I get it 100% of the time on startup currently... Weird
s

svyatoslav.scherbina

10/07/2020, 12:43 PM
Might be fixed in 1.4.20. Not clear without full stacktrace. Please enable it: on the bottom right corner of debug navigator there is a toggle “Show only stack frames with debug symbols and between libraries”, it should be switched off.
r

ribesg

10/07/2020, 12:47 PM
Thanks for the tip, I switched it off and will try to keep it off in the future when reporting issues this way
View count: 6