ajalt/mordant

Error 'Inappropriate ioctl for device' when running drawing sample

Closed this issue · 1 comments

I have checked-out the master branch https://github.com/ajalt/mordant/tree/1660323a27b99c47a119ee39947fb13190c042df and run the drawing sample, but I get an error.

  • JVM: 17.0.10 (Eclipse Adoptium 17.0.10+7)
  • OS: Mac OS X 14.5 aarch64
> ./gradlew :samples:drawing:run

> Configure project :mordant
w: New 'wasm' target is Work-in-Progress and is subject to change without notice. Please report encountered issues to https://kotl.in/issue


> Task :samples:drawing:run FAILED
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
Exception in thread "main" com.sun.jna.LastErrorException: [25] Inappropriate ioctl for device
        at com.sun.jna.Native.invokeVoid(Native Method)
        at com.sun.jna.Function.invoke(Function.java:418)
        at com.sun.jna.Function.invoke(Function.java:364)
        at com.sun.jna.Library$Handler.invoke(Library.java:270)
        at com.github.ajalt.mordant.internal.syscalls.jna.$Proxy0.tcgetattr(Unknown Source)
        at com.github.ajalt.mordant.internal.syscalls.jna.SyscallHandlerJnaMacos.getStdinTermios(SyscallHandler.jna.macos.kt:95)
        at com.github.ajalt.mordant.internal.syscalls.SyscallHandlerPosix.enterRawMode(SyscallHandler.posix.kt:102)

                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':samples:drawing:run'.
> Process 'command '/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1s
17 actionable tasks: 3 executed, 14 up-to-date

Sorry, I missed the other issue.

Duplicate of #195