Open caseyandgina opened 5 months ago
Downgrading from r179 to r178 fixes the tab UI issue, however the default order is still incorrect, and has been for as long as I can remember. I've just been ignoring it without complaint until r179 made things a lot worse.
I have also experienced weird UI behavior with tabs, as well as MacVim crashes. I experimented today a bit, and I was able to get a crash even when launching MacVim with --clean
. I am running r179 on an M1 MacBook Pro under macOS Monterey (12.7.4).
Here's a diagnostic report. To get this particular crash, I launched MacVim from the command line with --clean
and 7 small (average size 700 bytes) files. I opened a couple tabs with cmd-t
, added a veritcal split to each tab, navigated to a random buffer in each window, and then started clicking around in the tab bar. The UI weirdness described in the original write-up happens pretty quickly. The crash took maybe 30 seconds of fiddling.
{"app_name":"MacVim","timestamp":"2024-05-13 13:57:15.00 -0400","app_version":"9.1.0","slice_uuid":"8871dc82-9093-3fe0-9db7-2a61f7555e28","build_version":"179","platform":1,"bundleID":"org.vim.MacVim","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.7.4 (21H1123)","incident_id":"55C4C054-440B-4A77-A6E8-E3989B8C2DB1","name":"MacVim"}
{
"uptime" : 1100000,
"procLaunch" : "2024-05-13 13:56:13.1427 -0400",
"procRole" : "Foreground",
"version" : 2,
"userID" : 502,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,3",
"procStartAbsTime" : 27118301079226,
"coalitionID" : 1337,
"osVersion" : {
"train" : "macOS 12.7.4",
"build" : "21H1123",
"releaseType" : "User"
},
"captureTime" : "2024-05-13 13:57:15.2927 -0400",
"incident" : "55C4C054-440B-4A77-A6E8-E3989B8C2DB1",
"bug_type" : "309",
"pid" : 65714,
"procExitAbsTime" : 27119792342030,
"translated" : false,
"cpuType" : "ARM-64",
"procName" : "MacVim",
"procPath" : "\/Users\/USER\/*\/MacVim.app\/Contents\/MacOS\/MacVim",
"bundleInfo" : {"CFBundleShortVersionString":"9.1.0","CFBundleVersion":"179","CFBundleIdentifier":"org.vim.MacVim"},
"storeInfo" : {"deviceIdentifierForVendor":"4BB4D31B-FD87-5EF8-884E-23E7AC9D37C2","thirdParty":true},
"parentProc" : "Vim",
"parentPid" : 65713,
"coalitionName" : "com.googlecode.iterm2",
"crashReporterKey" : "BF86247E-2D48-7EDD-A949-30352D262893",
"responsiblePid" : 1125,
"responsibleProc" : "iTerm2",
"wakeTime" : 36103,
"sleepWakeUUID" : "42B1BDEA-6AF8-4D43-BE07-3AFE7D175629",
"sip" : "enabled",
"vmRegionInfo" : "0x1c is not in any region. Bytes before following region: 105553518919652\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n MALLOC_NANO (reserved) 600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL ...(unallocated)",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000001, 0x000000000000001c","rawCodes":[1,28],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x000000000000001c"},
"termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":65714},
"vmregioninfo" : "0x1c is not in any region. Bytes before following region: 105553518919652\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n MALLOC_NANO (reserved) 600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL ...(unallocated)",
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":5418151,"threadState":{"x":[{"value":105553154261632},{"value":8529525594,"objc-selector":"view:stringForToolTip:point:userData:"},{"value":8529525594,"objc-selector":"view:stringForToolTip:point:userData:"},{"value":105553168127424},{"value":0},{"value":0},{"value":0},{"value":105553127179696},{"value":0},{"value":8529852318,"objc-selector":"ownerIsDisplayDelegate"},{"value":105570135759990},{"value":15},{"value":14},{"value":105553130783392},{"value":0},{"value":8770709992,"symbolLocation":0,"symbol":"OBJC_CLASS_$_NSToolTip"},{"value":0},{"value":0},{"value":0},{"value":105553143892944},{"value":105553143897984},{"value":4771091568},{"value":4771209888},{"value":8529852318,"objc-selector":"ownerIsDisplayDelegate"},{"value":8528727215,"objc-selector":"view"},{"value":0},{"value":105553154261632},{"value":8529525594,"objc-selector":"view:stringForToolTip:point:userData:"},{"value":8770977792,"symbolLocation":416,"symbol":"_CFXNotificationPost.samples"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7331907500},"cpsr":{"value":1610616832},"fp":{"value":6164941392},"sp":{"value":6164941216},"esr":{"value":2449473542,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":7282033828,"matchesCrashFrame":1},"far":{"value":28}},"queue":"com.apple.main-thread","frames":[{"imageOffset":185508,"symbol":"objc_opt_respondsToSelector","symbolLocation":52,"imageIndex":0},{"imageOffset":2402220,"symbol":"-[NSToolTipManager displayToolTip:]","symbolLocation":408,"imageIndex":1},{"imageOffset":2401468,"symbol":"toolTipTimerFired","symbolLocation":48,"imageIndex":1},{"imageOffset":653308,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__","symbolLocation":32,"imageIndex":2},{"imageOffset":652260,"symbol":"__CFRunLoopDoTimer","symbolLocation":1064,"imageIndex":2},{"imageOffset":650860,"symbol":"__CFRunLoopDoTimers","symbolLocation":392,"imageIndex":2},{"imageOffset":538852,"symbol":"__CFRunLoopRun","symbolLocation":1936,"imageIndex":2},{"imageOffset":534964,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":2},{"imageOffset":205624,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":3},{"imageOffset":204740,"symbol":"ReceiveNextEventCommon","symbolLocation":324,"imageIndex":3},{"imageOffset":204392,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":72,"imageIndex":3},{"imageOffset":269608,"symbol":"_DPSNextEvent","symbolLocation":860,"imageIndex":1},{"imageOffset":263712,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1328,"imageIndex":1},{"imageOffset":206828,"symbol":"-[NSApplication run]","symbolLocation":596,"imageIndex":1},{"imageOffset":16136,"symbol":"NSApplicationMain","symbolLocation":1132,"imageIndex":1},{"imageOffset":20620,"symbol":"start","symbolLocation":520,"imageIndex":4}]},{"id":5418180,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6224,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":5},{"imageOffset":7360,"symbol":"mach_msg","symbolLocation":76,"imageIndex":5},{"imageOffset":545088,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":2},{"imageOffset":538096,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":2},{"imageOffset":534964,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":2},{"imageOffset":1763776,"symbol":"_NSEventThread","symbolLocation":196,"imageIndex":1},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":5418185,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":5418470,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":5418529,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":5418563,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64e",
"base" : 7281848320,
"size" : 253952,
"uuid" : "44d5d68a-ad18-33b8-adea-eb65b4dc906c",
"path" : "\/usr\/lib\/libobjc.A.dylib",
"name" : "libobjc.A.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7329505280,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.AppKit",
"size" : 15441920,
"uuid" : "4da09ede-ae73-346e-a77a-970d9c69790d",
"path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
"name" : "AppKit",
"CFBundleVersion" : "2113.65.150"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7283720192,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 5533696,
"uuid" : "07e05b49-8c3c-354e-89a7-cc7994572dfe",
"path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
"name" : "CoreFoundation",
"CFBundleVersion" : "1866"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7431139328,
"CFBundleShortVersionString" : "2.1.1",
"CFBundleIdentifier" : "com.apple.HIToolbox",
"size" : 3358720,
"uuid" : "07987381-b579-3f72-8ba8-97fa5b5a3352",
"path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
"name" : "HIToolbox"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 4305092608,
"size" : 393216,
"uuid" : "8a9fc57b-83a2-36b5-8b86-7045756d8b7a",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7283167232,
"size" : 229376,
"uuid" : "75c295e4-4fe2-36e7-bbbd-31e5f9d4b0e3",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7283396608,
"size" : 53248,
"uuid" : "ac6277b6-5c7c-3cdf-8896-44e6072a885c",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"sharedCache" : {
"base" : 7280099328,
"size" : 3144810496,
"uuid" : "f177c0b6-4f82-3dd9-a026-bab013545cf7"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=989.4M resident=0K(0%) swapped_out_or_unallocated=989.4M(100%)\nWritable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 384K 3 \nActivity Tracing 256K 1 \nCG backing stores 960K 4 \nCG image 160K 9 \nColorSync 528K 26 \nCoreAnimation 10.1M 24 \nCoreGraphics 32K 2 \nCoreUI image data 528K 8 \nFoundation 48K 2 \nKernel Alloc Once 32K 1 \nMALLOC 298.5M 58 \nMALLOC guard page 192K 10 \nMALLOC_MEDIUM (reserved) 960.0M 8 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.1M 6 \nStack 10.6M 6 \nVM_ALLOCATE 208K 13 \n__AUTH 2162K 231 \n__AUTH_CONST 17.5M 407 \n__CTF 756 1 \n__DATA 10.6M 399 \n__DATA_CONST 15.3M 416 \n__DATA_DIRTY 1311K 155 \n__FONT_DATA 4K 1 \n__LINKEDIT 578.2M 10 \n__OBJC_CONST 2590K 204 \n__OBJC_RO 83.0M 1 \n__OBJC_RW 3168K 1 \n__TEXT 411.2M 433 \n__UNICODE 592K 1 \ndyld private memory 1024K 1 \nmapped file 157.2M 25 \nshared memory 1456K 16 \n=========== ======= ======= \nTOTAL 2.9G 2484 \nTOTAL, minus reserved VM space 1.6G 2484 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "60da5e84ab0ca017dace9abf",
"factorPackIds" : {
},
"deploymentId" : 240000008
},
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {
},
"deploymentId" : 240000384
}
],
"experiments" : [
]
}
}
@caseyandgina I think the open
command will make MacVim open the files in alphabetical order. See here: https://github.com/macvim-dev/macvim/blob/e10ad1f5085cf2f0ae45b05cc4a92f77025629af/src/MacVim/MMAppController.m#L628-L633
Steps to reproduce
open up.sql down.sql
.down.sql
is the first tab, andup.sql
is the second tab.down.sql
remains the first and only visible tab. There is then no way to get to theup.sql
file. When quitting MacVim, a confirmation appears warning that there are two files open.Expected behaviour
open
command, just as they do if I typevim up.sql down.sql
in a terminal.Version of Vim and architecture
r179 (Vim 9.1.0), arm64
Environment
MacOS Sonoma 14.2.1
How MacVim was installed
Downloaded from GitHub, then updated periodically via the built-in updater
Logs and stack traces
Vim configuration where issue is reproducable
Using unmodified default configuration
Issue has been tested with given configuration
Issue has been tested with no configuration
mvim --clean
(orgvim
, supplied by MacVim distribution)vim --clean
(in terminal, supplied by MacVim distribution)vim --clean
(in terminal, other suppliers, e.g. /usr/bin/vim)Other conditions