Andrey
05/14/2023, 11:46 AMvbsteven
05/15/2023, 6:39 PMKClass<*>
?Alexander Black
05/15/2023, 9:52 PMText(librarySelection.displayName)
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.10Felix
05/17/2023, 10:22 AM[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>
• Is this because Kotlin native is not support for Linux ARM targets?
• Where can I find the list of supported targets?
Thanks.Ryan Brink
05/17/2023, 5:36 PMimport 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 Brink
05/19/2023, 7:57 PMAhmed Elkhodery
05/21/2023, 1:45 PMprint(__FUNCTION__) // Swift
NSLog(@"%@", NSStringFromSelector(_cmd)); // Objective-C
print(#function)
Venkat
05/21/2023, 4:52 PMVenkat
05/22/2023, 6:08 AMRyan Brink
05/22/2023, 2:29 PMGiorgi
05/22/2023, 2:43 PMczuckie
05/22/2023, 10:25 PMarnaud.giuliani
05/23/2023, 7:05 AMSergey Y.
05/24/2023, 9:09 AMJeff Lockhart
05/26/2023, 5:26 PM@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
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 dereba
05/27/2023, 8:17 PMjessewilson
05/30/2023, 5:37 PMCrashed 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 [67893]
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
(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. Worker.start()
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 Worker
API.
Any recommendations? Should I open a ticket to request a new API on Worker?czuckie
05/30/2023, 8:50 PMHovo
06/01/2023, 9:48 AMloke
06/02/2023, 12:40 PMThis declaration needs opt-in. Its usage must be marked with '@kotlinx.cinterop.ExperimentalForeignApi' or '@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)'
I have added this opt-in by the way.loke
06/02/2023, 12:41 PMloke
06/02/2023, 12:42 PMloke
06/02/2023, 12:43 PMThe feature "multi platform projects" is experimental and should be enabled explicitly
xxfast
06/02/2023, 4:57 PMUncaught Kotlin exception: okio.IOException: Operation not permitted
This is thrown from fopen
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 issueColin White
06/05/2023, 7:10 PMcommonizeCInterop
is failing with a mysterious errorVenkat
06/05/2023, 8:44 PMVenkat
06/07/2023, 4:39 PMxiaobailong24
06/08/2023, 2:08 PMNorbi
06/13/2023, 8:33 AMCould not find :kotlin-native-prebuilt-windows-x86_64:1.8.22
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.Ali Shirvani
06/15/2023, 6:37 AMuint8_t *
, now I want to pass a String bytes to this function. I used myStringVal.cstr.getPointer()
but I got following error:
Type mismatch.
Required:
CValuesRef<uint8_tVar /* = UByteVarOf<UByte> */>?
Found:
CPointer<ByteVarOf<Byte>>