hismailbulut / Neoray

Simple and lightweight GUI client for Neovim
MIT License
148 stars 5 forks source link

Crash on launch #25

Closed andis-sprinkis closed 3 years ago

andis-sprinkis commented 3 years ago

Please complete the following information:

Describe the bug Crash on launch.

neoray-win64_OlAFbdzI5E

Does start normally with

.\neoray-win64.exe -u NORC --noplugin

Steps to reproduce

Launch program normally.

Your neoray config in init.vim (Only the part that concerns neoray!)

let s:fontname = 'CascadiaCodePL'
let s:fontsize = 13

exe 'set guifont=' . s:fontname . ':h' . s:fontsize

NeoraySet KeyZoomIn <C-ScrollWheelUp>
NeoraySet KeyZoomOut <C-ScrollWheelDown>

Crash log if available (may be generated by neoray after crash)

NEORAY v0.1.1 Release Crash Report 2021-09-24 14:29:21.8315012 +0000 UTC
Please open an issue in github with this file.
The program is crashed because of the following reasons:
[FATAL] [NEORAY] [PANIC!] runtime error: invalid memory address or nil pointer dereference

goroutine dump:
goroutine 1 [running, locked to thread]:
main.createCrashReport({0xc000452060, 0x5b})
    D:/a/neoray/neoray/src/logger.go:104 +0x330
main.logMessage(0x35b7e8, 0xc0, {0xc00035b7f0, 0xc00035b7f8, 0x662000})
    D:/a/neoray/neoray/src/logger.go:168 +0x25a
main.shutdownLogger()
    D:/a/neoray/neoray/src/logger.go:77 +0x70
panic({0x66af80, 0x5d4ae0})
    C:/hostedtoolcache/windows/go/1.17.1/x64/src/runtime/panic.go:1038 +0x215
main.(*Font).GetCellSize(0xc00035ba80)
    D:/a/neoray/neoray/src/font.go:166 +0x43
main.(*Renderer).updateCellSize(0x842450, 0xc000398cd0)
    D:/a/neoray/neoray/src/renderer.go:107 +0x25
main.(*Renderer).setFont(0x842450, {0x41500000, {0xc000454330, 0x10}, 0xc000380e00, 0x0, 0x0, 0x0})
    D:/a/neoray/neoray/src/renderer.go:68 +0xab
main.(*UIOptions).setGuiFont(0x842530, {0xc000454048, 0x842450})
    D:/a/neoray/neoray/src/uioptions.go:65 +0x26a
main.option_set({0xc00045c990, 0x1, 0xffffffffffffffff})
    D:/a/neoray/neoray/src/redrawevents.go:108 +0x265
main.handleRedrawEvents()
    D:/a/neoray/neoray/src/redrawevents.go:28 +0x4b9
main.(*Editor).update(0x8422c0)
    D:/a/neoray/neoray/src/editor.go:179 +0x1e
main.(*Editor).MainLoop(0x8422c0)
    D:/a/neoray/neoray/src/editor.go:162 +0x38a
main.main()
    D:/a/neoray/neoray/src/main.go:71 +0x296

goroutine 13 [chan send]:
main.(*NvimProcess).startUI.func2()
    D:/a/neoray/neoray/src/nvimproc.go:195 +0xcc
created by main.(*NvimProcess).startUI
    D:/a/neoray/neoray/src/nvimproc.go:189 +0x3b4

Debug output (you can generate starting neoray with --verbose option)

NEORAY v0.1.1 Release LOG 2021-09-24 14:31:03.8802397 +0000 UTC
[DEBUG] [NVIM] Neovim started with command: nvim --embed
[TRACE] [NVIM] Neovim version 0.5.0
[TRACE] [NEORAY] Glfw version: 3.3.4 Win32 WGL EGL OSMesa MinGW
[DEBUG] [NEORAY] Monitor count: 1 Selected monitor: Generic PnP Monitor
[DEBUG] [NEORAY] Video mode &{Width:1440 Height:2560 RedBits:8 GreenBits:8 BlueBits:8 RefreshRate:60}
[DEBUG] [NEORAY] Glfw window created with size 883 662
[DEBUG] [NEORAY] Window content scale is: 1.10, 1.10
[DEBUG] [NEORAY] Input callbacks are initialized.
[DEBUG] [RENDERER] Initializing opengl.
[TRACE] [RENDERER] Opengl Version: 3.3.148202 Core Profile Forward-Compatible Context 21.3.1 27.20.15003.1004
[DEBUG] [RENDERER] Vendor: ATI Technologies Inc.
[DEBUG] [RENDERER] Renderer: Radeon RX 5500 XT
[DEBUG] [RENDERER] GLSL: 4.60
[DEBUG] [NEORAY] Loading default font.
[DEBUG] [NEORAY] Default font loaded.
[DEBUG] [NVIM] Attached to neovim as an ui client.
[DEBUG] [NEORAY] Checking user options.
[DEBUG] [NVIM] Option KeyZoomIn is <C-ScrollWheelUp>
[DEBUG] [NVIM] Option KeyZoomOut is <C-ScrollWheelDown>
[DEBUG] [NEORAY] Window is now visible.
[TRACE] [PERFORMANCE] Start time: 460.8739ms
[DEBUG] [NEORAY] Loading font CascadiaCodePL with size 13
[TRACE] [NEORAY] Regular: CascadiaCodePL.ttf
[WARNING] [NEORAY] Font has no bold italic face.
[WARNING] [NEORAY] Font has no italic face.
[WARNING] [NEORAY] Font has no bold face.
[TRACE] [NVIM] Neovim child process closed.
[DEBUG] [NEORAY] Window destroyed.
[DEBUG] [NEORAY] Glfw terminated.
[FATAL] [NEORAY] [PANIC!] runtime error: invalid memory address or nil pointer dereference
hismailbulut commented 3 years ago

I am not sure this is the last crash issue because I always touch/broke working things :) I will release again this version because this is a very important issue. Thanks.

andis-sprinkis commented 3 years ago

I can confirm 0.1.1 re-release fixed the issue.