BenWoodworth / knbt

Kotlin NBT library for kotlinx.serialization
GNU Lesser General Public License v3.0
72 stars 2 forks source link

Test fails on mingwX64 #24

Closed BenWoodworth closed 1 year ago

BenWoodworth commented 1 year ago

BinaryNbtReaderTest.should_decode_to_class_correctly:

> Task :mingwX64ProcessResources NO-SOURCE
> Task :mingwX64MainKlibrary
> Task :compileTestKotlinMingwX64
> Task :linkDebugTestMingwX64

Expiring Daemon because JVM heap space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
Expiring Daemon because JVM heap space is exhausted
Expiring Daemon because JVM heap space is exhausted

> Task :mingwX64Test FAILED

35 tests completed, 1 failed

net.benwoodworth.knbt.internal.BinaryNbtReaderTest.should_decode_to_class_correctly FAILED
    Unknown

4 actionable tasks: 4 executed
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mingwX64Test'.
> Test running process exited unexpectedly.
  Current test: should_decode_to_class_correctly

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org/

BUILD FAILED in 4m
Error: Process completed with exit code 1.
BenWoodworth commented 1 year ago

Crashing on the first call to free (plus the other calls if I comment the earlier ones out): https://github.com/BenWoodworth/knbt/blob/510e26fd171b41cb5a59d0f5e095654cb16537a5/src/nativeMain/kotlin/internal/CompressionIoNative.kt#L112-L114

BenWoodworth commented 1 year ago

Pipeline passed for mingw :)