Andrey05/14/2023, 11:46 AM
vbsteven05/15/2023, 6:39 PM
Alexander Black05/15/2023, 9:52 PM
The iOS leak detector is reporting this as a memory leak, where librarySelection is a Enum and displayName is a string property in the enum. I also have several utility methods that format data into strings so they display correctly on the iOS side, and many of those are being reported as leaks. I’m wondering if maybe there’s something with the String interop that’s leaking? I’m running Kotlin 1.8.10
Felix05/17/2023, 10:22 AM
• Is this because Kotlin native is not support for Linux ARM targets? • Where can I find the list of supported targets? Thanks.
[2023-05-17T07:34:21.844Z] > Could not find :kotlin-native-prebuilt-linux-aarch64:1.7.21. [2023-05-17T07:34:21.844Z] Searched in the following locations: [2023-05-17T07:34:21.844Z] - <https://download.jetbrains.com/kotlin/native/builds/releases/1.7.21/linux-aarch64/kotlin-native-prebuilt-linux-aarch64-1.7.21.tar.gz>
Ryan Brink05/17/2023, 5:36 PM
import os import cffi ffi = cffi.FFI() header_file = ( "path/to/lib.h" ) if __name__ == "__main__": with open(os.path.join(header_file)) as f: ffi.cdef(f.read())
cffi.CDefError: cannot parse "#ifndef KONAN_LIBRQSWELL_H" <cdef source string>:1:1: Directives not supported yet
Ryan Brink05/19/2023, 7:57 PM
Ahmed Elkhodery05/21/2023, 1:45 PM
print(__FUNCTION__) // Swift NSLog(@"%@", NSStringFromSelector(_cmd)); // Objective-C print(#function)
Venkat05/21/2023, 4:52 PM
Venkat05/22/2023, 6:08 AM
Ryan Brink05/22/2023, 2:29 PM
Giorgi05/22/2023, 2:43 PM
czuckie05/22/2023, 10:25 PM
arnaud.giuliani05/23/2023, 7:05 AM
Sergey Y.05/24/2023, 9:09 AM
Jeff Lockhart05/26/2023, 5:26 PM
to allow this, but I'm getting a compilation error for a specific internal API:
Compilation failed: Backend Internal error: Exception during IR lowering
The root cause org.jetbrains.kotlin.backend.common.CompilationException was thrown at: org.jetbrains.kotlin.ir.symbols.impl.IrBindablePublicSymbolBase.getOwner(IrPublicSymbolBase.kt:52)Is this expected where some internal APIs can't be accessed in this way? It works on JVM, but not native targets.
david dereba05/27/2023, 8:17 PM
jessewilson05/30/2023, 5:37 PM
(I triggered a similar error by writing a recursive function.) Unfortunately I can’t find build-in APIs to manipulate the stack size of spawned threads.
Crashed Thread: 5 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x000000016b0e1120 Exception Codes: 0x0000000000000002, 0x000000016b0e1120 Termination Reason: Namespace SIGNAL, Code 10 Bus error: 10 Terminating Process: exc handler  VM Region Info: 0x16b0e1120 is in 0x16b0e0000-0x16b0e4000; bytes after start: 4384 bytes before end: 11999 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL Stack 16b058000-16b0e0000 [ 544K] rw-/rwx SM=PRV thread 4 ---> STACK GUARD 16b0e0000-16b0e4000 [ 16K] ---/rwx SM=NUL ... for thread 5 Stack 16b0e4000-16b16c000 [ 544K] rw-/rwx SM=PRV thread 5
accepts a thread name, but nothing like pthread_attr_setstacksize. I also couldn’t find a straightforward way to create a thread without going through the
API. Any recommendations? Should I open a ticket to request a new API on Worker?
czuckie05/30/2023, 8:50 PM
Hovo06/01/2023, 9:48 AM
loke06/02/2023, 12:40 PM
I have added this opt-in by the way.
This declaration needs opt-in. Its usage must be marked with '@kotlinx.cinterop.ExperimentalForeignApi' or '@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)'
loke06/02/2023, 12:41 PM
loke06/02/2023, 12:42 PM
loke06/02/2023, 12:43 PM
The feature "multi platform projects" is experimental and should be enabled explicitly
xxfast06/02/2023, 4:57 PM
This is thrown from
Uncaught Kotlin exception: okio.IOException: Operation not permitted
with "wx" or "w" parameters. This throws only on physical devices and not on the simulator. Anyone ran into this issue before? I've raised an issue on okio but I think this more a native issue
Colin White06/05/2023, 7:10 PM
is failing with a mysterious error
Venkat06/05/2023, 8:44 PM
Venkat06/07/2023, 4:39 PM
xiaobailong2406/08/2023, 2:08 PM
Norbi06/13/2023, 8:33 AM
Have you seen something similar? JVM-only targets work as expected with Kotlin 1.8.22 but Windows native target works only with 1.8.21. Thanks.
Could not find :kotlin-native-prebuilt-windows-x86_64:1.8.22
Ali Shirvani06/15/2023, 6:37 AM
, now I want to pass a String bytes to this function. I used
but I got following error:
CValuesRef<uint8_tVar /* = UByteVarOf<UByte> */>?