Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-1116

Creating a realm db fails in windows docker

      How frequently does the bug occur?

      Always

      Description

      Hey,

      I'm testing my realm database in docker windows and since Kotlin and Realm 2.0.0 it fails with IllegalStateException: GetFileInformationByHandleEx failed.

      Do you run tests on docker windows yourself?

      Stacktrace & log output

      GetFileInformationByHandleEx() failed for 'C:\builds\pathology\pathoshare\pathoshare-manager\database\build\test-2394485240931586502\default.realm': The request is not supported.

      2024-08-03T09:22:53.897+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.interop.CoreErrorConverter.asThrowable(CoreErrorConverter.kt:47)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.interop.realmcJNI.realm_open(Native Method)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.interop.realmc.realm_open(realmc.java:435)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.interop.RealmInterop.realm_open(RealmInterop.kt:237)

      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.ConfigurationImpl.openRealm$lambda$0(ConfigurationImpl.kt:109)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.interop.NativePointerKt.use(NativePointer.kt:53)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.ConfigurationImpl.openRealm$suspendImpl(ConfigurationImpl.kt:108)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.ConfigurationImpl.openRealm(ConfigurationImpl.kt)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.RealmImpl$1.invokeSuspend(RealmImpl.kt:133)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)

      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking(CoroutineUtilsSharedJvm.kt:25)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking$default(CoroutineUtilsSharedJvm.kt:24)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.RealmImpl.<init>(RealmImpl.kt:115)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.RealmImpl.<init>(RealmImpl.kt)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.internal.RealmImpl$Companion.create$io_realm_kotlin_library(RealmImpl.kt:318)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at io.realm.kotlin.Realm$Companion.open(Realm.kt:83)
      2024-08-03T09:22:53.898+0200 [DEBUG] [TestEventLogger] at app.pathoshare.manager.database.DaoRealm.<init>(DaoRealm.kt:31)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at app.pathoshare.manager.database.AccountModelTest$persistAndLoadAccountModel$1.invokeSuspend(AccountModelTest.kt:14)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at app.pathoshare.manager.database.AccountModelTest$persistAndLoadAccountModel$1.invoke(AccountModelTest.kt)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at app.pathoshare.manager.database.AccountModelTest$persistAndLoadAccountModel$1.invoke(AccountModelTest.kt)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:316)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestDispatcher.processEvent$kotlinx_coroutines_test(TestDispatcher.kt:24)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestCoroutineScheduler.tryRunNextTaskUnless$kotlinx_coroutines_test(TestCoroutineScheduler.kt:99)
      2024-08-03T09:22:53.899+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$workRunner$1.invokeSuspend(TestBuilders.kt:322)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)

      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)

      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersJvmKt.createTestResult(TestBuildersJvm.kt:10)

      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:310)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:168)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0$default(TestBuilders.kt:160)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0$default(Unknown Source)

      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at app.pathoshare.manager.database.AccountModelTest.persistAndLoadAccountModel(AccountModelTest.kt:13)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      2024-08-03T09:22:53.900+0200 [DEBUG] [TestEventLogger] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)

      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:54)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:53)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:92)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at jdk.proxy1/jdk.proxy1.$Proxy4.processTestClass(Unknown Source)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:181)
      2024-08-03T09:22:53.901+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:130)
      2024-08-03T09:22:53.902+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:101)
      2024-08-03T09:22:53.902+0200 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:61)
      2024-08-03T09:22:53.902+0200 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
      2024-08-03T09:22:53.902+0200 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:122)
      2024-08-03T09:22:53.902+0200 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:69)
      2024-08-03T09:22:53.902+0200 [DEBUG] [TestEventLogger] at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
      2024-08-03T09:22:53.902+0200 [DEBUG] [TestEventLogger] at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
      2024-08-03T09:22:53.906+0200 [DEBUG] [TestEventLogger]

      Can you reproduce the bug?

      Always

      Reproduction Steps

      Just create a realm database in windows docker.

      Version

      2.0.0

      What Atlas App Services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      eclipse-temurin:21-jdk-windowsservercore-ltsc2022

      Build environment

      Gradle 8.9
      eclipse-temurin:21-jdk-windowsservercore-ltsc2022
      Kotlin 2.0.0
      Realm 2.1.0

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: