[vim/vim] Vim crashes at start (#8916)

48 views
Skip to first unread message

Nadve

unread,
Sep 25, 2021, 5:37:16 AM9/25/21
to vim/vim, Subscribed

Describe the bug
Vim crashes at start.

To Reproduce
Detailed steps to reproduce the behavior:

  1. Run vim or gvim after fresh install on Windows 10 machine

Expected behavior
Vim starts

Environment:

  • Vim version: 8.2.3444.0
  • OS: Windows 10

Additional context
Error: The application was unable to start correctly (0xc0000005)
ID of the faulty procces: 0xdec

I don't know how to deal with this problem or how to debug it further.
If you deem this report not sufficient please tell me how to obtain more information about the problem.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Christian Brabandt

unread,
Sep 27, 2021, 10:31:52 AM9/27/21
to vim/vim, Subscribed

Does it work when starting vim --clean

Nadve

unread,
Sep 29, 2021, 10:19:34 AM9/29/21
to vim/vim, Subscribed

No, it doesn't.
Exactly same behaviour is observed => nothing happens at all, AppCrash log can be seen in Event Viewer

Christian Brabandt

unread,
Sep 29, 2021, 10:27:07 AM9/29/21
to vim/vim, Subscribed

So is this the release from https://github.com/vim/vim-win32-installer/releases ? The current information isn't very useful. We may need your help to produce better stack traces. You can possibly use the .pdb files for your release from https://github.com/vim/vim-win32-installer/releases

However I do not actually know how to use those. According to this microsoft documentation https://docs.microsoft.com/en-us/visualstudio/debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger?view=vs-2019 you would need microsoft visual studio to debug this crash

Nadve

unread,
Sep 29, 2021, 12:27:03 PM9/29/21
to vim/vim, Subscribed

  1. Yes it is a release from https://github.com/vim/vim-win32-installer/releases
  2. I opened gVim in a Visual Studio and included .pdb files but as soon as I started debugging I received a Search Folder dialog VS prompting me to locate mbyte.c which I don't have
    I suppose I need vim source code to succesfully debug this problem

Christian Brabandt

unread,
Sep 30, 2021, 1:11:04 PM9/30/21
to vim/vim, Subscribed

yes, quite possible. Can you try with the source and point us to a useful stacktrace?

zuloloxi

unread,
Oct 2, 2021, 4:18:15 AM10/2/21
to vim/vim, Subscribed

@ #8916 (comment)
Hello ! Could you build from vim source code ( the src vim folder ) on you windozs in debug mode with nmake script make_mvc,mak ?
To help find the crash line change in make_mvc,mak file the CFLAGS, and add these options to cl compiler:

/FAcs /Fa$(OUTDIR) /Fo$(OUTDIR)
also conflags
conflags = /nologo /subsystem:$(SUBSYSTEM) /DYNAMICBASE:NO /FIXED /NXCOMPAT /MACHINE:X86 /opt:ref
I attached a modified file of make_mvc,mak ...
Before to compile, in VS studio 2019 Community ed, you have to start the cmd :

x86 Native Tools Command Prompt for VS 2019,
to configure compiler and linker PATH.

In command prompt windows build vim executable with, change to the vim source code, src folder, by example ;

cd c:\your_vim_folder\vim-51491adfa86fd66a857cd7ec50d0b57dbdf3da59\src

and compile

nmake -f make_mvc.mak FEATURES=HUGE MBYTE=YES GETTEXT=NO MAP=YES
Make_mvc.mak.txt

Nadve

unread,
Oct 7, 2021, 9:59:54 AM10/7/21
to vim/vim, Subscribed

I feel stupid for asking but how to I access vim source code?
I installed vim and I don't have a vim\src folder

Yegappan Lakshmanan

unread,
Oct 7, 2021, 10:40:56 AM10/7/21
to vim_dev, reply+ACY5DGB3WE6IPJQMGD...@reply.github.com, vim/vim, Subscribed
Hi,

On Thu, Oct 7, 2021 at 6:59 AM Nadve <vim-dev...@256bit.org> wrote:

I feel stupid for asking but how to I access vim source code?
I installed vim and I don't have a vim\src folder



The Vim source code is available at https://github.com/vim/vim. When you install
Vim, it will install only the binary files and the runtime files but not the source code.

- Yegappan

vim-dev ML

unread,
Oct 7, 2021, 10:41:28 AM10/7/21
to vim/vim, vim-dev ML, Your activity

Hi,


On Thu, Oct 7, 2021 at 6:59 AM Nadve ***@***.***> wrote:

> I feel stupid for asking but how to I access vim source code?
> I installed vim and I don't have a vim\src folder
>
>
>
The Vim source code is available at https://github.com/vim/vim. When you
install
Vim, it will install only the binary files and the runtime files but not
the source code.

- Yegappan

K.Takata

unread,
Oct 7, 2021, 6:19:54 PM10/7/21
to vim/vim, vim-dev ML, Comment

Actually, you don't need to compile Vim by yourself.

2. I opened gVim in a Visual Studio and included .pdb files but as soon as I started debugging I received a Search Folder dialog VS prompting me to locate mbyte.c which I don't have

You should download the corresponding version of the Vim source code by the following commands (using Git for Windows):

git clone https://github.com/vim/vim
cd vim
git checkout v8.2.XXXX


You are receiving this because you commented.

Christian Brabandt

unread,
Nov 29, 2021, 10:24:08 AM11/29/21
to vim/vim, vim-dev ML, Comment

any update or can this issue be closed?


You are receiving this because you commented.

Nadve

unread,
Nov 30, 2021, 3:21:04 AM11/30/21
to vim/vim, vim-dev ML, Comment

Sorry I didn't have time to sit down and work on it.

@zuloloxi
This part is confusing me a lot and I don't know what to do:

/FAcs /Fa$(OUTDIR) /Fo$(OUTDIR)
also conflags
conflags = /nologo /subsystem:$(SUBSYSTEM) /DYNAMICBASE:NO /FIXED /NXCOMPAT /MACHINE:X86 /opt:ref
I attached a modified file of make_mvc,mak ...
Before to compile, in VS studio 2019 Community ed, you have to start the cmd :

x86 Native Tools Command Prompt for VS 2019,
to configure compiler and linker PATH.


You are receiving this because you commented.

Christian Brabandt

unread,
Mar 12, 2022, 12:25:08 PM3/12/22
to vim/vim, vim-dev ML, Comment

any update here?


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you commented.Message ID: <vim/vim/issues/8916/1065924764@github.com>

Nadve

unread,
Mar 12, 2022, 2:39:40 PM3/12/22
to vim/vim, vim-dev ML, Comment

So the issue was caused by my windows account user name. It contained characters from czech alphabet which broke the program.
My username: Tomáš
Issue was solved by creating account with ascii characters


Reply to this email directly, view it on GitHub, or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you commented.Message ID: <vim/vim/issues/8916/1065950421@github.com>

Nadve

unread,
Mar 12, 2022, 2:39:43 PM3/12/22
to vim/vim, vim-dev ML, Comment

Closed #8916.


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you commented.Message ID: <vim/vim/issue/8916/issue_event/6230167674@github.com>

Reply all
Reply to author
Forward
0 new messages