Axeryok / CocoaInput

A best way to input characters with native mac IM in Minecraft
https://minecraft.curseforge.com/projects/cocoainput
Other
96 stars 39 forks source link

Crash #16

Open Nyaacinth opened 3 years ago

Nyaacinth commented 3 years ago

Similiar to #13 and #12 , but the game crashed on start. So you cannot use mod settings to turn off "AdvancedPreeditDraw".

Then how can I write a configuration or something to fix that?

Axeryok commented 3 years ago

Log is extremely important to find cause on crash. Even if APD is cause, log leads to solution. So I would you like to show log at first.

I think AdvancedPreeditDraw is not involved in crashes on game start and setting screen because it is only determine how preedit draw. If you would like to access config, open "config/cocoainput.json". You can get below

{
  "advancedPreeditDraw": true,
  "nativeCharTyped": true
}

And write true/false on term you would like to change.

nonetrix commented 2 years ago

I think I am getting the same issue here is the log

MultiMC version: 0.6.14-2998

Launched instance in online mode

authserver.mojang.com resolves to:
    [18.64.226.68]

session.minecraft.net resolves to:
    [3.213.200.53, 34.205.58.168, 52.21.65.46]

textures.minecraft.net resolves to:
    [54.230.253.87, 54.230.253.83, 54.230.253.62, 54.230.253.81]

api.mojang.com resolves to:
    [13.249.37.60]

Minecraft folder is:
/home/nonetrix/.local/share/multimc/instances/1.18.1/.minecraft

Java path is:
/usr/lib64/jvm/java-17-openjdk/bin/java

Checking Java version...
Java is version 17.0.1, using 64-bit architecture, from N/A.

AMD Ryzen 7 3700X 8-Core Processor
NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)

Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3362

Kernel driver in use: nvidia

OpenGL version string: 4.6.0 NVIDIA 495.46

Main Class:
  net.fabricmc.loader.impl.launch.knot.KnotClient

Native path:
  /home/nonetrix/.local/share/multimc/instances/1.18.1/natives

Traits:
traits XR:Initial
traits FirstThreadOnMacOS

Libraries:
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/blocklist/1.0.6/blocklist-1.0.6.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/patchy/2.1.6/patchy-2.1.6.jar
  /home/nonetrix/.local/share/multimc/libraries/com/github/oshi/oshi-core/5.8.2/oshi-core-5.8.2.jar
  /home/nonetrix/.local/share/multimc/libraries/net/java/dev/jna/jna/5.9.0/jna-5.9.0.jar
  /home/nonetrix/.local/share/multimc/libraries/net/java/dev/jna/jna-platform/5.9.0/jna-platform-5.9.0.jar
  /home/nonetrix/.local/share/multimc/libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar
  /home/nonetrix/.local/share/multimc/libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.16.0/log4j-slf4j18-impl-2.16.0.jar
  /home/nonetrix/.local/share/multimc/libraries/com/ibm/icu/icu4j/69.1/icu4j-69.1.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/javabridge/1.2.24/javabridge-1.2.24.jar
  /home/nonetrix/.local/share/multimc/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
  /home/nonetrix/.local/share/multimc/libraries/io/netty/netty-all/4.1.68.Final/netty-all-4.1.68.Final.jar
  /home/nonetrix/.local/share/multimc/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
  /home/nonetrix/.local/share/multimc/libraries/com/google/guava/guava/31.0.1-jre/guava-31.0.1-jre.jar
  /home/nonetrix/.local/share/multimc/libraries/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
  /home/nonetrix/.local/share/multimc/libraries/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar
  /home/nonetrix/.local/share/multimc/libraries/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/datafixerupper/4.0.26/datafixerupper-4.0.26.jar
  /home/nonetrix/.local/share/multimc/libraries/com/google/code/gson/gson/2.8.8/gson-2.8.8.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/authlib/3.2.38/authlib-3.2.38.jar
  /home/nonetrix/.local/share/multimc/libraries/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar
  /home/nonetrix/.local/share/multimc/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
  /home/nonetrix/.local/share/multimc/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar
  /home/nonetrix/.local/share/multimc/libraries/it/unimi/dsi/fastutil/8.5.6/fastutil-8.5.6.jar
  /home/nonetrix/.local/share/multimc/libraries/org/apache/logging/log4j/log4j-api/2.16.0/log4j-api-2.16.0.jar
  /home/nonetrix/.local/share/multimc/libraries/org/apache/logging/log4j/log4j-core/2.16.0/log4j-core-2.16.0.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3.jar
  /home/nonetrix/.local/share/multimc/libraries/net/fabricmc/intermediary/1.18.1/intermediary-1.18.1.jar
  /home/nonetrix/.local/share/multimc/libraries/net/fabricmc/tiny-mappings-parser/0.3.0+build.17/tiny-mappings-parser-0.3.0+build.17.jar
  /home/nonetrix/.local/share/multimc/libraries/net/fabricmc/sponge-mixin/0.10.7+mixin.0.8.4/sponge-mixin-0.10.7+mixin.0.8.4.jar
  /home/nonetrix/.local/share/multimc/libraries/net/fabricmc/tiny-remapper/0.6.0/tiny-remapper-0.6.0.jar
  /home/nonetrix/.local/share/multimc/libraries/net/fabricmc/access-widener/2.0.1/access-widener-2.0.1.jar
  /home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm/9.2/asm-9.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar
  /home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm-util/9.2/asm-util-9.2.jar
  /home/nonetrix/.local/share/multimc/libraries/net/fabricmc/fabric-loader/0.12.12/fabric-loader-0.12.12.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/minecraft/1.18.1/minecraft-1.18.1-client.jar

Native libraries:
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2-natives-linux.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2-natives-linux.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2-natives-linux.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2-natives-linux.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2-natives-linux.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2-natives-linux.jar
  /home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2-natives-linux.jar
  /home/nonetrix/.local/share/multimc/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3-natives-linux.jar

Mods:
  [✔️] CocoaInput-1.18-fabric-4.0.4

Params:
  --username  --version MultiMC5 --gameDir /home/nonetrix/.local/share/multimc/instances/1.18.1/.minecraft --assetsDir /home/nonetrix/.local/share/multimc/assets --assetIndex 1.18 --uuid  --accessToken  --userType  --versionType release

Window size: max (if available)

Java Arguments:
[-Xms512m, -Xmx1024m, -Duser.language=en]

Minecraft process ID: 130828

Using onesix launcher.

[16:41:38] [main/INFO]: Loading Minecraft 1.18.1 with Fabric Loader 0.12.12
[16:41:38] [main/INFO]: Loading 4 mods:
    - cocoainput 4.0.4
    - fabricloader 0.12.12
    - java 17
    - minecraft 1.18.1
[16:41:38] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/home/nonetrix/.local/share/multimc/libraries/net/fabricmc/sponge-mixin/0.10.7+mixin.0.8.4/sponge-mixin-0.10.7+mixin.0.8.4.jar Service=Knot/Fabric Env=CLIENT
[16:41:41] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[16:41:42] [Render thread/INFO]: Setting user: NonetrixWasTaken
[16:41:42] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 build 10
[16:41:43] [Render thread/WARN]: ERROR : Couldn't load Narrator library : Unable to load library 'fliteWrapper':
libflite.so.1: cannot open shared object file: No such file or directory
libflite.so.1: cannot open shared object file: No such file or directory
Native library (linux-x86-64/libfliteWrapper.so) not found in resource path (/usr/lib/multimc/jars/NewLaunch.jar:/home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2.jar:/home/nonetrix/.local/share/multimc/libraries/com/mojang/blocklist/1.0.6/blocklist-1.0.6.jar:/home/nonetrix/.local/share/multimc/libraries/com/mojang/patchy/2.1.6/patchy-2.1.6.jar:/home/nonetrix/.local/share/multimc/libraries/com/github/oshi/oshi-core/5.8.2/oshi-core-5.8.2.jar:/home/nonetrix/.local/share/multimc/libraries/net/java/dev/jna/jna/5.9.0/jna-5.9.0.jar:/home/nonetrix/.local/share/multimc/libraries/net/java/dev/jna/jna-platform/5.9.0/jna-platform-5.9.0.jar:/home/nonetrix/.local/share/multimc/libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar:/home/nonetrix/.local/share/multimc/libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.16.0/log4j-slf4j18-impl-2.16.0.jar:/home/nonetrix/.local/share/multimc/libraries/com/ibm/icu/icu4j/69.1/icu4j-69.1.jar:/home/nonetrix/.local/share/multimc/libraries/com/mojang/javabridge/1.2.24/javabridge-1.2.24.jar:/home/nonetrix/.local/share/multimc/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar:/home/nonetrix/.local/share/multimc/libraries/io/netty/netty-all/4.1.68.Final/netty-all-4.1.68.Final.jar:/home/nonetrix/.local/share/multimc/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:/home/nonetrix/.local/share/multimc/libraries/com/google/guava/guava/31.0.1-jre/guava-31.0.1-jre.jar:/home/nonetrix/.local/share/multimc/libraries/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:/home/nonetrix/.local/share/multimc/libraries/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar:/home/nonetrix/.local/share/multimc/libraries/commons-codec/commons-codec/1.15/commons-codec-1.15.jar:/home/nonetrix/.local/share/multimc/libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar:/home/nonetrix/.local/share/multimc/libraries/com/mojang/datafixerupper/4.0.26/datafixerupper-4.0.26.jar:/home/nonetrix/.local/share/multimc/libraries/com/google/code/gson/gson/2.8.8/gson-2.8.8.jar:/home/nonetrix/.local/share/multimc/libraries/com/mojang/authlib/3.2.38/authlib-3.2.38.jar:/home/nonetrix/.local/share/multimc/libraries/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar:/home/nonetrix/.local/share/multimc/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar:/home/nonetrix/.local/share/multimc/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar:/home/nonetrix/.local/share/multimc/libraries/it/unimi/dsi/fastutil/8.5.6/fastutil-8.5.6.jar:/home/nonetrix/.local/share/multimc/libraries/org/apache/logging/log4j/log4j-api/2.16.0/log4j-api-2.16.0.jar:/home/nonetrix/.local/share/multimc/libraries/org/apache/logging/log4j/log4j-core/2.16.0/log4j-core-2.16.0.jar:/home/nonetrix/.local/share/multimc/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3.jar:/home/nonetrix/.local/share/multimc/libraries/net/fabricmc/intermediary/1.18.1/intermediary-1.18.1.jar:/home/nonetrix/.local/share/multimc/libraries/net/fabricmc/tiny-mappings-parser/0.3.0+build.17/tiny-mappings-parser-0.3.0+build.17.jar:/home/nonetrix/.local/share/multimc/libraries/net/fabricmc/sponge-mixin/0.10.7+mixin.0.8.4/sponge-mixin-0.10.7+mixin.0.8.4.jar:/home/nonetrix/.local/share/multimc/libraries/net/fabricmc/tiny-remapper/0.6.0/tiny-remapper-0.6.0.jar:/home/nonetrix/.local/share/multimc/libraries/net/fabricmc/access-widener/2.0.1/access-widener-2.0.1.jar:/home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm/9.2/asm-9.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar:/home/nonetrix/.local/share/multimc/libraries/org/ow2/asm/asm-util/9.2/asm-util-9.2.jar:/home/nonetrix/.local/share/multimc/libraries/net/fabricmc/fabric-loader/0.12.12/fabric-loader-0.12.12.jar:/home/nonetrix/.local/share/multimc/libraries/com/mojang/minecraft/1.18.1/minecraft-1.18.1-client.jar)
[16:41:43] [Render thread/INFO]: Reloading ResourceManager: Default, Default Pack 1.18
[16:41:43] [Render thread/INFO]: Modloader:Fabric
[16:41:43] [Render thread/INFO]: This is X11 Controller
[16:41:43] [Render thread/INFO]: CocoaInput has copied library to native directory.
[16:41:43] [Render thread/INFO]: Call clang initializer
[16:41:43] [Render thread/INFO]: CocoaInput X11 Clang Initializer start. library compiled at  Jun 25 2021 19:53:13
[16:41:43] [Render thread/INFO]: Window ptr:0x2000007
[16:41:43] [Render thread/INFO]: GLFWwindow ptr:0x7ff731dda9b0
[16:41:43] [Render thread/INFO]: Searching _GLFWwindowx11 from GLFWwindow ptr...
[16:41:43] [Render thread/INFO]: Found offset:832 ,_GLFWwindowX11(0x7ff731ddacf0)=GLFWwindow(0x7ff731dda9b0)+832 
[16:41:43] [Render thread/INFO]: XIC mem address:0x7ff731da2d80
[16:41:43] [Render thread/INFO]: XIM mem address:0x7ff731d14fd0
[16:41:43] [Render thread/INFO]: Created inactiveic-> default
[16:41:43] [Render thread/INFO]: Created activeic
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff6fe1b8b70, pid=130828, tid=130829
#
# JRE version: OpenJDK Runtime Environment (17.0.1+12) (build 17.0.1+12)
# Java VM: OpenJDK 64-Bit Server VM (17.0.1+12, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libX11.so.6+0x4eb70]  XUnsetICFocus+0x0
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/nonetrix/.local/share/multimc/instances/1.18.1/.minecraft/core.130828)
#
# An error report file with more information is saved as:
# /home/nonetrix/.local/share/multimc/instances/1.18.1/.minecraft/hs_err_pid130828.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Process crashed with exitcode 6.
Clipboard copy at: 02 Jan 2022 16:44:17 -0600

System specs:

                   -`                    nonetrix@nonetrix-b450aorusprowifi 
                  .o+`                   ---------------------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: B450 AORUS PRO WIFI 
               `+oooooo:                 Kernel: 5.15.12-arch1-1 
               -+oooooo+:                Uptime: 2 days, 21 mins 
             `/:-:++oooo+:               Packages: 974 (pacman), 7 (flatpak) 
            `/++++/+++++++:              Shell: bash 5.1.12 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: GNOME 41.2 
         ./ooosssso++osssssso+`          WM: Mutter 
        .oossssso-````/ossssss+`         WM Theme: Adwaita 
       -osssssso.      :ssssssso.        Theme: Adwaita-dark [GTK2/3] 
      :osssssss/        osssso+++.       Icons: Adwaita [GTK2/3] 
     /ossssssss/        +ssssooo/-       Terminal: gnome-terminal 
   `/ossssso+/:-        -:/+osssso+-     CPU: AMD Ryzen 7 3700X (16) @ 3.600GHz 
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA GeForce GTX 1080 
 `++:.                           `-/+/   Memory: 9208MiB / 32107MiB 
 .`                                 `/

Also I'm using Anthy with ibus

soshimee commented 1 year ago

I have the same issue on Arch Linux with fcitx.

chinese-wzq commented 1 year ago

Try not to use the system's GLFW in the launcher.