Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V panic: substr(1, 0) out of bounds (len=39) #101

Open
ckqee opened this issue Jan 2, 2021 · 1 comment
Open

V panic: substr(1, 0) out of bounds (len=39) #101

ckqee opened this issue Jan 2, 2021 · 1 comment

Comments

@ckqee
Copy link

ckqee commented Jan 2, 2021

Saw the following crash -

./ved 
height=1440
FULL SCREEN=true
REGISTERING VED KEY2
open multiple workspaces
./ved
load session "/Users/ckqee/.ved/session"
open file "/Users/ckqee/v_dir/ved/welcome.txt"
getting words
saving session...
V panic: substr(1, 0) out of bounds (len=39)
0   ved                                 0x00000001089f2770 string_substr + 128
1   ved                                 0x0000000108a2fa40 main__Ved_word_under_cursor + 208
2   ved                                 0x0000000108a2ea36 main__Ved_go_to_def + 38
3   ved                                 0x0000000108a2a860 main__Ved_key_normal + 1184
4   ved                                 0x0000000108a27bfb main__key_down + 139
5   ved                                 0x0000000108a1e165 gg__gg_event_fn + 165
6   ved                                 0x00000001089df7cb _sapp_call_event + 91
7   ved                                 0x00000001089dfb24 _sapp_macos_key_event + 100
8   ved                                 0x00000001089df8c4 -[_sapp_macos_view keyDown:] + 180
9   AppKit                              0x00007fff33179d5d -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 6512
10  AppKit                              0x00007fff331781c9 -[NSWindow(NSEventRouting) sendEvent:] + 349
11  AppKit                              0x00007fff33176efe -[NSApplication(NSEvent) sendEvent:] + 2826
12  AppKit                              0x00007fff32fc35bf -[NSApplication run] + 707
13  ved                                 0x00000001089dff7b _sapp_macos_run + 251
14  ved                                 0x00000001089dfe75 sapp_run + 85
15  ved                                 0x0000000108a1bfc0 sokol__sapp__run + 48
16  ved                                 0x0000000108a1e73e gg__Context_run + 30
17  ved                                 0x0000000108a27aa0 main__main + 5120
18  ved                                 0x0000000108a3358e main + 78
19  ved                                 0x00000001089bdd34 start + 52
@JalonSolov
Copy link
Contributor

Was this on a Mac? Useful info... I don't see the crash on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants