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

[Bug]: Vim doesn't open (X11, XFCE) #22733

Open
DuilioPerez opened this issue Jan 1, 2025 · 25 comments
Open

[Bug]: Vim doesn't open (X11, XFCE) #22733

DuilioPerez opened this issue Jan 1, 2025 · 25 comments
Labels
bug report Something is not working properly

Comments

@DuilioPerez
Copy link

Problem description

I'm a regular Vim user. I haves used Vim in Termux since a lot of time ago. But now doesn't open since last update. It open just if I don't use my .vimrc, but in that mode, Vim is very basic. It reports the next error:

Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault

What steps will reproduce the bug?

  1. Use this .vimrc file. It have always worked well in Termux
  2. Just open vim. Install plugins with vim-plug.
  3. It have been failing since I use search (typing / or ?).
  4. Close and open again.
    You can see it here

What is the expected behavior?

To open normally

System information

Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~LQzey9mCzS7FzKtqTYRMfw==/com.termux-GhIV57Ap-eqr_cw6kSgV0Q==/base.apk
TERMUX_APP__APK_RELEASE=F_DROID
TERMUX_APP__APP_VERSION_CODE=1020
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.1
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=false
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=12679
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.1
TERMUX__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c33,c257,c512,c768
TERMUX__SE_INFO=default:targetSdkVersion=28:complete
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c33,c257,c512,c768
TERMUX__UID=10289
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb http://mirror.mephi.ru/termux/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb http://mirror.mephi.ru/termux/termux-x11 x11 main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
Updatable packages:
xfce4-calculator-plugin/x11 0.7.3 aarch64 [upgradable from: 0.7.2]
xfce4-clipman-plugin-static/x11 1.6.7 aarch64 [upgradable from: 1.6.6]
xfce4-clipman-plugin/x11 1.6.7-1 aarch64 [upgradable from: 1.6.6]
xfce4-cpugraph-plugin-static/x11 1.2.11 aarch64 [upgradable from: 1.2.10]
xfce4-cpugraph-plugin/x11 1.2.11-1 aarch64 [upgradable from: 1.2.10]
xfce4-docklike-plugin/x11 0.4.3 aarch64 [upgradable from: 0.4.2]
xfce4-eyes-plugin/x11 4.6.2 aarch64 [upgradable from: 4.6.0]
xfce4-genmon-plugin/x11 4.2.1 aarch64 [upgradable from: 4.2.0]
xfce4-mailwatch-plugin/x11 1.3.2 aarch64 [upgradable from: 1.3.1]
xfce4-netload-plugin/x11 1.4.2 aarch64 [upgradable from: 1.4.1]
xfce4-notes-plugin/x11 1.11.1 aarch64 [upgradable from: 1.11.0]
xfce4-places-plugin/x11 1.8.4 aarch64 [upgradable from: 1.8.3]
xfce4-timer-plugin/x11 1.7.3 aarch64 [upgradable from: 1.7.2]
xfce4-wavelan-plugin/x11 0.6.4 aarch64 [upgradable from: 0.6.3]
termux-tools version:
1.44.6
Android version:
11
Kernel build information:
Linux localhost 4.14.186-22735277 #1 SMP PREEMPT Sat Feb 19 02:14:57 KST 2022 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-A225M
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.x11 versionCode:15
com.termux.styling versionCode:32
@DuilioPerez DuilioPerez added bug report Something is not working properly untriaged labels Jan 1, 2025
@robertkirkman
Copy link
Contributor

robertkirkman commented Jan 2, 2025

Could you post a Bash script installer that works to fully reproduce your exact crash non-interactively within a clean installed Termux installation?

I used these commands, but after using them, Vim is not crashing for me, instead, every time I push an arrow key in Vim, I see this error:

Error detected while processing CursorHold Autocommands for "*":
E117: Unknown function: CocActionAsync
Press ENTER or type command to continue
cd
wget https://raw.githubusercontent.com/DuilioPerez/Utilities/refs/heads/main/.vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs     https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir -p ~/.vim/pack/themes/start
cd ~/.vim/pack/themes/start
git clone https://github.com/dracula/vim.git dracula
vim ~/.vimrc

After using those commands, the / search mode in Vim is still working for me, so I have not been able to reproduce the problem yet.

@DuilioPerez
Copy link
Author

To install, excecute this script:

cd ~
wget https://raw.githubusercontent.com/DuilioPerez/Utilities/refs/heads/main/.vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Now open vim, it'll give some errors because plugins aren't downloaded. Inside vim excecute :PlugInstall. Again, it will give you some errors due coc.nvim isn't installed. Now close vim and open it again without arguments. Usually it works if you open it with an argument, but if you open it without them, it crashes. The really strange thing here is that crashes because of a signal, SEGV.

@DuilioPerez
Copy link
Author

Here it is a video with the steps:

XRecorder_02012025_071509.mp4

@robertkirkman
Copy link
Contributor

Very interesting, and I wonder what the difference between your device, and others' devices, must be, that results in the crash, because, I tested what seems to me like the exact same steps you show in your video, multiple times, on both a 32-bit ARM device that has Android 7, and a 64-bit ARM device that has Android 10, and unfortunately I have still not been able to reproduce what you show happening. This is a video of what I recorded happening when I do the same steps on the 32-bit ARM device with a fairly clean, fully updated Termux installation, and I can't see anything out of the ordinary, other than that the large number of Vim plugins begins to slow down Vim a little bit on this device.

vimcrashreproductionattempt.webm

Would it be possible for you to recompile Vim with debug symbols enabled, and try getting what is called a "C language debugging backtrace" of your crash, which is a diagnostic report that contains additional information about the crash, that cannot be obtained on any environment where the crash cannot yet be reproduced? These are the commands to do that (requires an amd64 Docker system to build, after which the .deb file must be copied to the device, because vim is what is called a TERMUX_PKG_ON_DEVICE_BUILD_NOT_SUPPORTED=true package):

# amd64 system with docker installed
git clone https://github.com/termux/termux-packages.git
cd termux-packages
scripts/run-docker.sh ./build-package.sh -I -f -d vim
ls output
# Termux
pkg reinstall ./vim*.deb
pkg install gdb
gdb vim
run
bt

@DuilioPerez
Copy link
Author

Unfortunatly, I can't recompile vim because I don't have access to an AMD environment. Maybe on device. The interesting thing is that it is happening since the last update. I've used vim on Termux for a long time and the plugins I've added have been tested by me. I've been using Vim on Termux for more than two years.

@DuilioPerez
Copy link
Author

I've found the issue. It seems the plugin vim-polyglot cause the crash. I added some month ago. Thank you and closing now.

@truboxl truboxl added not-bug Issue is not a bug or has been resolved and removed bug report Something is not working properly untriaged labels Jan 3, 2025
@robertkirkman
Copy link
Contributor

robertkirkman commented Jan 3, 2025

Weird, because while using your .vimrc and :PlugInstall, vim-polyglot does also get installed for me, but I still could not reproduce the crash, so it would imply, at least to my impression, that the undefined behavior is still somewhere in the vim package of Termux, since, as smemsh noted in a similar issue reported in the vim-polyglot repository, the responsibility probably isn't really with the vim-polyglot project, and rather with the particular distribution or fork of Vim, because,"editor should not crash no matter what the syntax file has in it" sheerun/vim-polyglot#856

@DuilioPerez
Copy link
Author

As note, in the previous version of vim it worked very well. There's a similar bug in Visual Studio Code in the TUR repo, which as far as I tested, because I don't use it much, since the new update, it close if you click in file menu.

@DuilioPerez
Copy link
Author

Take a look here to see the issue with polyglot

XRecorder_02012025_193916.mp4

@DuilioPerez
Copy link
Author

If you think this is an issue with Termux, then I'll reopen the issue report

@TomJo2000
Copy link
Member

Take a look here to see the issue with polyglot

XRecorder_02012025_193916.mp4

Since it works when vim-polyglot is not installed, and fails when it is installed my best guess would have to be that this is an issue with how vim-polyglot handles an empty filetype (:echo &ft == '').
Which doesn't immediately make sense either.

@DuilioPerez
Copy link
Author

If I rememer, it worked just well before updating vim. And If I'm right, there was two updates of vim with less than two weeks of difference

@TomJo2000
Copy link
Member

I'll try to replicate and troubleshoot the issue.

cd ~
wget https://raw.githubusercontent.com/DuilioPerez/Utilities/refs/heads/main/.vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

I assume these up here are the reproduction steps?

@TomJo2000
Copy link
Member

I can't replicate the issue.
I've wiped the ~/.vimrc and ~/.viminfo file and ~/.vim/ directory several times now and reinstalled the vim config file you have provided and initialized the plugins with :PlugInstall.

@truboxl
Copy link
Contributor

truboxl commented Jan 3, 2025

Please share logcat output if you can reproduce the issue again

@DuilioPerez
Copy link
Author

I guess is this:

01-02 20:41:23.661  2788  2788 I ViewRootImpl@362ed34[TermuxActivity]: ViewPostIme key 1
01-02 20:41:24.296  2788  2788 I ViewRootImpl@362ed34[TermuxActivity]: ViewPostIme key 0
01-02 20:41:24.322  2788  2788 D DecorView: semSetRoundedCorners: 5
01-02 20:41:24.341  2788  2788 I ViewRootImpl@362ed34[TermuxActivity]: ViewPostIme key 1
01-02 20:41:24.350  2788  2788 I ViewRootImpl@362ed34[TermuxActivity]: MSG_WINDOW_FOCUS_CHANGED 0 0
01-02 20:41:24.384  2788  2788 I SurfaceControl: nativeRelease nativeObject s[538815209536]
01-02 20:41:24.385  2788  2788 I SurfaceControl: nativeRelease nativeObject e[538815209536]
01-02 20:41:24.385  2788  2788 I SurfaceControl: nativeRelease nativeObject s[538960873024]
01-02 20:41:24.385  2788  2788 I SurfaceControl: nativeRelease nativeObject e[538960873024]
01-02 20:41:24.385  2788  2788 I SurfaceControl: nativeRelease nativeObject s[538815204352]
01-02 20:41:24.385  2788  2788 I SurfaceControl: nativeRelease nativeObject e[538815204352]
01-02 20:41:24.440  2788  2788 D InputTransport: Input channel destroyed: 'ClientS', fd=86
01-02 20:41:24.468  2788  2788 I SurfaceControl: nativeRelease nativeObject s[537049992480]
01-02 20:41:24.468  2788  2788 I SurfaceControl: nativeRelease nativeObject e[537049992480]
01-02 20:41:24.468  2788  2788 D InsetsSourceConsumer: setRequestedVisible: visible=false, type=13, host=com.termux/com.termux.app.TermuxActivity, from=android.view.InsetsSourceConsumer.hide:236 android.view.ImeInsetsSourceConsumer.setControl:156 android.view.InsetsController.onControlsChanged:833 android.view.ViewRootImpl$ViewRootHandler.handleMessage:6122 android.os.Handler.dispatchMessage:106 android.os.Looper.loop:246 android.app.ActivityThread.main:8653 java.lang.reflect.Method.invoke:-2 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run:602 com.android.internal.os.ZygoteInit.main:1130
01-02 20:41:24.483  2788  2788 D AbsListView:  in onLayout changed
01-02 20:41:24.485  2788  2788 D DecorView: semSetRoundedCorners: 5
01-02 20:41:24.707  2788  2788 I SurfaceControl: nativeRelease nativeObject s[539125213600]
01-02 20:41:24.707  2788  2788 I SurfaceControl: nativeRelease nativeObject e[539125213600]
01-02 20:41:24.707  2788  2788 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xc3784a9 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1826 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
01-02 20:41:24.708  2788  2788 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xa47e0ff / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1836 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
01-02 20:41:24.709  2788  2788 I ViewRootImpl@362ed34[TermuxActivity]: Relayout returned: old=(58,0,1600,720) new=(58,0,1600,720) req=(1542,720)8 dur=6 res=0x4 s={false 0} ch=true fn=329
01-02 20:41:24.709  2788  2788 D AbsListView:  in onLayout changed
01-02 20:41:24.713  2788  2788 I ViewRootImpl@362ed34[TermuxActivity]: stopped(true) old=false
01-02 20:41:24.723  2788  2788 I ViewRootImpl@362ed34[TermuxActivity]: dispatchDetachedFromWindow
01-02 20:41:24.726  2788  2788 D InputTransport: Input channel destroyed: 'c871354', fd=85
01-02 20:41:24.727  2788  2788 V ViewRootImpl@362ed34[TermuxActivity]: updateAppliedLetterboxDirection, direction=0, Caller=android.view.ViewRootImpl.handleDispatchLetterboxDirectionChanged:12114
01-02 20:41:25.277  2788 31710 D libMEOW : applied 1 plugins for [com.termux]:
01-02 20:41:25.277  2788 31710 D libMEOW :   plugin 1: [libMEOW_gift.so]:
01-02 20:41:25.296  2788  2788 I DecorView: [INFO] isPopOver=false, config=true
01-02 20:41:25.296  2788  2788 I DecorView: updateCaptionType >> DecorView@f5b66ea[], isFloating=false, isApplication=true, hasWindowDecorCaption=false, hasWindowControllerCallback=true
01-02 20:41:25.296  2788  2788 D DecorView: setCaptionType = 0, this = DecorView@f5b66ea[]
01-02 20:41:25.339  2788  2788 D InputTransport: Input channel constructed: 'b5035a1', fd=85
01-02 20:41:25.340  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: setView = com.android.internal.policy.DecorView@f5b66ea TM=true
01-02 20:41:25.360  2788  2788 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xd4cc03e / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1836 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
01-02 20:41:25.360  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: Relayout returned: old=(0,0,1600,720) new=(58,0,1600,720) req=(1600,720)0 dur=10 res=0x7 s={true 536993710080} ch=true fn=-1
01-02 20:41:25.361  2788  2788 D AbsListView:  in onLayout changed
01-02 20:41:25.395  2788  2788 D Toast   : show: caller = com.termux.app.TermuxActivity.showToast:625
01-02 20:41:25.395  2788  2788 I Toast   : show: focusDisplayId = 0, isFocusInDesktop = false mCustomDisplayId=-1 isDexDualMode=false
01-02 20:41:25.396  2788  2788 I Toast   : show: isActivityContext = true
01-02 20:41:25.431  2788  2788 V ViewRootImpl@93d71a7[TermuxActivity]: updateAppliedLetterboxDirection, direction=1, Caller=android.view.ViewRootImpl.handleDispatchLetterboxDirectionChanged:12114
01-02 20:41:25.432  2788  2788 V ToastPresenter: Text: \1] in android.widget.ToastPresenter@d47b4ee
01-02 20:41:25.438  2788  2788 D InputTransport: Input channel constructed: 'be6e24e', fd=79
01-02 20:41:25.438  2788  2788 I ViewRootImpl@bcbdc25[Toast]: setView = android.widget.LinearLayout@c7e31fa TM=true
01-02 20:41:25.438  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
01-02 20:41:25.438  2788  2788 D InputMethodManager: prepareNavigationBarInfo() DecorView@f5b66ea[TermuxActivity]
01-02 20:41:25.439  2788  2788 D InputMethodManager: getNavigationBarColor() -16711423
01-02 20:41:25.439  2788  2788 D InputMethodManager: prepareNavigationBarInfo() DecorView@f5b66ea[TermuxActivity]
01-02 20:41:25.439  2788  2788 D InputMethodManager: getNavigationBarColor() -16711423
01-02 20:41:25.439  2788  2788 V InputMethodManager: Starting input: tba=com.termux ic=com.termux.view.TerminalView$2@651a3ab mNaviBarColor -16711423 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
01-02 20:41:25.439  2788  2788 D InputMethodManager: startInputInner - Id : 0
01-02 20:41:25.439  2788  2788 I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
01-02 20:41:25.442  2788  2788 D InputTransport: Input channel constructed: 'ClientS', fd=86
01-02 20:41:25.450  2788  2788 I SurfaceControl: nativeRelease nativeObject s[538815204928]
01-02 20:41:25.450  2788  2788 I SurfaceControl: nativeRelease nativeObject e[538815204928]
01-02 20:41:25.451  2788  2788 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xd4cc03e / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1836 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
01-02 20:41:25.452  2788  2788 I SurfaceControl: nativeRelease nativeObject s[538823567904]
01-02 20:41:25.452  2788  2788 I SurfaceControl: nativeRelease nativeObject e[538823567904]
01-02 20:41:25.452  2788  2788 I SurfaceControl: nativeRelease nativeObject s[538823566560]
01-02 20:41:25.452  2788  2788 I SurfaceControl: nativeRelease nativeObject e[538823566560]
01-02 20:41:25.452  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: Relayout returned: old=(58,0,1600,720) new=(58,0,1600,720) req=(1542,720)0 dur=9 res=0x1 s={true 536993710080} ch=false fn=3
01-02 20:41:25.454  2788  2788 D AbsListView:  in onLayout changed
01-02 20:41:25.457  2788  2788 D DecorView: semSetRoundedCorners: 5
01-02 20:41:25.478  2788  2788 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xd6d73c6 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1836 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
01-02 20:41:25.479  2788  2788 I ViewRootImpl@bcbdc25[Toast]: Relayout returned: old=(0,45,1510,720) new=(730,45,837,118) req=(107,73)0 dur=6 res=0x7 s={true 536994684928} ch=true fn=-1
01-02 20:41:25.489  2788  2788 I SurfaceControl: nativeRelease nativeObject s[536993553792]
01-02 20:41:25.489  2788  2788 I SurfaceControl: nativeRelease nativeObject e[536993553792]
01-02 20:41:25.489  2788  2788 I SurfaceControl: nativeRelease nativeObject s[536993553696]
01-02 20:41:25.489  2788  2788 I SurfaceControl: nativeRelease nativeObject e[536993553696]
01-02 20:41:25.489  2788  2788 I SurfaceControl: nativeRelease nativeObject s[538815204928]
01-02 20:41:25.489  2788  2788 I SurfaceControl: nativeRelease nativeObject e[538815204928]
01-02 20:41:25.489  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: MSG_RESIZED_REPORT: frame=(58,0,1600,720) ci=(0,45,90,0) vi=(0,45,90,0) or=2
01-02 20:41:25.495  2788  2788 I SurfaceControl: nativeRelease nativeObject s[536993553600]
01-02 20:41:25.495  2788  2788 I SurfaceControl: nativeRelease nativeObject e[536993553600]
01-02 20:41:25.495  2788  2788 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xd4cc03e / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1836 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
01-02 20:41:25.496  2788  2788 I SurfaceControl: nativeRelease nativeObject s[537049992480]
01-02 20:41:25.496  2788  2788 I SurfaceControl: nativeRelease nativeObject e[537049992480]
01-02 20:41:25.496  2788  2788 I SurfaceControl: nativeRelease nativeObject s[537049992192]
01-02 20:41:25.496  2788  2788 I SurfaceControl: nativeRelease nativeObject e[537049992192]
01-02 20:41:25.496  2788  2788 I SurfaceControl: nativeRelease nativeObject s[537049992288]
01-02 20:41:25.496  2788  2788 I SurfaceControl: nativeRelease nativeObject e[537049992288]
01-02 20:41:25.496  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: Relayout returned: old=(58,0,1600,720) new=(58,0,1600,720) req=(1542,720)0 dur=6 res=0x1 s={true 536993710080} ch=false fn=4
01-02 20:41:25.518  2788  2788 I ViewRootImpl@bcbdc25[Toast]: MSG_RESIZED_REPORT: frame=(730,45,837,118) ci=(0,0,0,0) vi=(0,0,0,0) or=2
01-02 20:41:25.535  2788  2788 I SurfaceControl: nativeRelease nativeObject s[536993553888]
01-02 20:41:25.535  2788  2788 I SurfaceControl: nativeRelease nativeObject e[536993553888]
01-02 20:41:25.536  2788  2788 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xd6d73c6 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1836 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
01-02 20:41:25.536  2788  2788 I ViewRootImpl@bcbdc25[Toast]: Relayout returned: old=(730,45,837,118) new=(730,45,837,118) req=(107,73)0 dur=5 res=0x1 s={true 536994684928} ch=false fn=2
01-02 20:41:25.587  2788  2788 D InsetsSourceConsumer: setRequestedVisible: visible=true, type=13, host=com.termux/com.termux.app.TermuxActivity, from=android.view.InsetsSourceConsumer.show:229 android.view.InsetsController.showDirectly:1437 android.view.InsetsController.controlAnimationUnchecked:1110 android.view.InsetsController.applyAnimation:1417 android.view.InsetsController.show:962 android.view.ViewRootImpl$ViewRootHandler.handleMessage:6146 android.os.Handler.dispatchMessage:106 android.os.Looper.loop:246 android.app.ActivityThread.main:8653 java.lang.reflect.Method.invoke:-2
01-02 20:41:25.600  2788  2788 D AbsListView:  in onLayout changed
01-02 20:41:25.607  2788  2788 D DecorView: semSetRoundedCorners: 5
01-02 20:41:25.621  2788  2788 D DecorView: semSetRoundedCorners: 5
01-02 20:41:25.648  2788  2788 D InputMethodManager: SSI - flag : 0 Pid : 2788 view : com.termux
01-02 20:41:25.648  2788  2788 D InputMethodManager: view is not EditText
01-02 20:41:25.649  2788  2788 D InputMethodManager: prepareNavigationBarInfo() DecorView@f5b66ea[TermuxActivity]
01-02 20:41:25.649  2788  2788 D InputMethodManager: getNavigationBarColor() -16711423
01-02 20:41:25.798  2788 31736 I SurfaceControl: nativeRelease nativeObject s[536993553888]
01-02 20:41:25.798  2788 31736 I SurfaceControl: nativeRelease nativeObject e[536993553888]
01-02 20:41:25.848  2788  2788 D InputMethodManager: SSI - flag : 0 Pid : 2788 view : com.termux
01-02 20:41:25.848  2788  2788 D InputMethodManager: view is not EditText
01-02 20:41:25.849  2788  2788 D InputMethodManager: prepareNavigationBarInfo() DecorView@f5b66ea[TermuxActivity]
01-02 20:41:25.849  2788  2788 D InputMethodManager: getNavigationBarColor() -16711423
01-02 20:41:27.412  2788  2788 I ViewRootImpl@bcbdc25[Toast]: dispatchDetachedFromWindow
01-02 20:41:27.412  2788  2788 I SurfaceControl: nativeRelease nativeObject s[536993554272]
01-02 20:41:27.412  2788  2788 I SurfaceControl: nativeRelease nativeObject e[536993554272]
01-02 20:41:27.423  2788  2788 D InputTransport: Input channel destroyed: 'be6e24e', fd=79
01-02 20:41:32.634  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:32.635  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:32.807  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:32.807  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:32.963  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:32.964  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:38.243  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: setInTouchMode(false), android.view.ViewRootImpl.checkForLeavingTouchModeAndConsume:8693 android.view.ViewRootImpl.access$3100:256 android.view.ViewRootImpl$EarlyPostImeInputStage.processKeyEvent:7038 android.view.ViewRootImpl$EarlyPostImeInputStage.onProcess:7022 android.view.ViewRootImpl$InputStage.deliver:6595 android.view.ViewRootImpl.deliverInputEvent:9880 android.view.ViewRootImpl.doProcessInputEvents:9718 android.view.ViewRootImpl.enqueueInputEvent:9671 android.view.ViewRootImpl$ViewRootHandler.handleMessage:6206 android.os.Handler.dispatchMessage:106
01-02 20:41:38.244  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:38.245  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:38.375  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:38.376  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:38.425  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:38.426  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:38.427  2788  2788 D Vibrator: binder call to service pkg=com.termux, effect=OneShot{mDuration=50, mAmplitude=-1, mMagnitude=-1, mMagnitudeType=TYPE_EXTRA}
01-02 20:41:38.459  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:38.459  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:38.577  2788  2788 D Vibrator: binder call to service pkg=com.termux, effect=OneShot{mDuration=50, mAmplitude=-1, mMagnitude=-1, mMagnitudeType=TYPE_EXTRA}
01-02 20:41:39.408  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:39.409  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:39.573  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:39.573  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:39.747  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:39.747  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:39.902  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:39.903  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:40.087  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:40.087  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:41.320  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:41.320  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:41.493  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:41.493  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:47.413  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:47.414  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:47.587  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:47.587  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:49.441  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:49.441  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:51.598  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:51.598  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:53.269  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:53.269  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 1
01-02 20:41:53.589  2788  2788 E Termux.TerminalEmulator: (ignored) CSI > MODIFY RESOURCE: 4 to 2
01-02 20:41:53.832  2788  2788 E Termux.TerminalEmulator: (ignored) CSI > MODIFY RESOURCE: 4 to -1
01-02 20:41:56.159  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme key 0
01-02 20:41:56.320  2788  2788 I ViewRootImpl@93d71a7[TermuxActivity]: ViewPostIme

@TomJo2000
Copy link
Member

I don't see anything relating to Vim or any segfault in the log above.

Just as a sanity check I also tested this against Neovim, with the same result.
Opening nvim with no arguments works just fine and the configuration loads as expected.

@robertkirkman
Copy link
Contributor

robertkirkman commented Jan 3, 2025

As note, in the previous version of vim it worked very well. There's a similar bug in Visual Studio Code in the TUR repo, which as far as I tested, because I don't use it much, since the new update, it close if you click in file menu.

I posted a detailed workaround for that one in the discord, so I will show it to you too - since it was tracked upstream, I'd just assumed that after enough updates come to TUR for code-oss and its electron and chromium dependencies, it would eventually go away by itself, probably.

microsoft/vscode#230604 (comment)

workaround that can avoid that crash when i tested: press Ctrl + Shift + P to open command palette -> keyboard shortcuts settings -> create: new file -> rebind it to any combination that does not contain the "Super" key

image

@DuilioPerez
Copy link
Author

I've tested today and logcat doesn't register that signal.

XRecorder_03012025_161226.mp4

@truboxl
Copy link
Contributor

truboxl commented Jan 4, 2025

logcat -b all

@DuilioPerez
Copy link
Author

I've fixed the issue in a very strange way. I installed strace to track signals, but it didn't show anything. After restarting Termux it now open vim without arguments loading vim-polyglot very well

@DuilioPerez DuilioPerez reopened this Jan 4, 2025
@DuilioPerez
Copy link
Author

Wait a moment. It seems I've found the source of the issue. It seems to be related to xfce4:

XRecorder_04012025_132333.mp4

@TomJo2000
Copy link
Member

That explains why I haven't been able to replicate it.
A strace log of the crash would still be very useful.

@DuilioPerez
Copy link
Author

I'm sure now. It seems for some reason it propagated to Termux terminal. In LXQt it works well
Screenshot_20250104-132801_TermuxX11

@TomJo2000 TomJo2000 changed the title [Bug]: Vim doesn't open [Bug]: Vim doesn't open (X11, XFCE) Jan 4, 2025
@DuilioPerez
Copy link
Author

This is what I could save to a
output file

@truboxl truboxl added bug report Something is not working properly and removed not-bug Issue is not a bug or has been resolved labels Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly
Projects
None yet
Development

No branches or pull requests

4 participants