cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.32k stars 71 forks source link

panic: vulkan error: vulkan error: out of host memory (-1) #868

Closed ddkwork closed 4 months ago

ddkwork commented 5 months ago

Describe the bug

panic: vulkan error: vulkan error: out of host memory (-1)

How to reproduce

It's a bug that has been bothering me for a long time, I can't reproduce it every time, so I can't write a demo, and I've had dozens of crashes with the same error in recent times

Example code

func (sf *Surface) AcquireNextImage() uint32 {
    dev := sf.Device.Device
    for {
        vk.WaitForFences(dev, 1, []vk.Fence{sf.RenderFence}, vk.True, vk.MaxUint64)
        vk.ResetFences(dev, 1, []vk.Fence{sf.RenderFence})
        var idx uint32
        ret := vk.AcquireNextImage(dev, sf.Swapchain, vk.MaxUint64, sf.ImageAcquired, vk.NullFence, &idx)
        switch ret {
        case vk.ErrorOutOfDate, vk.Suboptimal:
            sf.ReConfigSwapchain()
            if Debug {
                fmt.Printf("vgpu.Surface.AcquireNextImage, new format: %#v\n", sf.Format)
            }
            continue // try again
        case vk.Success:
            return idx
        default:
            IfPanic(NewError(ret))
            return idx
        }
    }
}

Relevant output

############################ LayoutScene SizeUp start: /Crash details DebugSettings.UpdateTrace Update: /Crash details/to...ar-0/overflow-menu updt: true DebugSettings.UpdateTrace: NeedsRender: /Crash details/to...ar-0/overflow-menu /Crash details/to...-0/back.parts/icon SizeUp from Style: (33, 33) SzUp i: 0 /Crash details/to...-0/back.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) /Crash details/to...olbar-0/back.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 row: 0 sum X: 37 max Y: 37 sum grX: 0 max grY: 0 /Crash details/to...olbar-0/back.parts SizeUpPass FromChildren: (37, 37) Content: (37, 37) Internal: (37, 37) /Crash details/to...chooser.parts/text SizeUp from Style: (478, 32) /Crash details/to...ad-icon.parts/icon SizeUp from Style: (33, 33) SzUp i: 0 /Crash details/to...ad-icon.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) /Crash details/to...ts/lead-icon.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 row: 0 sum X: 37 max Y: 37 sum grX: 0 max grY: 0 /Crash details/to...ts/lead-icon.parts SizeUpPass FromChildren: (37, 37) Content: (37, 37) Internal: (37, 37) /Crash details/to...rts/trail-icon-str SizeUp from Style: (14, 29) /Crash details/to...il-icon.parts/icon SizeUp from Style: (33, 33) SzUp i: 0 /Crash details/to...il-icon.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) /Crash details/to...s/trail-icon.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 row: 0 sum X: 37 max Y: 37 sum grX: 0 max grY: 0 /Crash details/to...s/trail-icon.parts SizeUpPass FromChildren: (37, 37) Content: (37, 37) Internal: (37, 37) SzUp i: 0 /Crash details/to...xt.parts/lead-icon cidx: (0,0) sz: (48, 41) grw: (0, 0) SzUp i: 1 /Crash details/to...rts/trail-icon-str cidx: (1,0) sz: (18, 33) grw: (1, 1) SzUp i: 2 /Crash details/to...t.parts/trail-icon cidx: (2,0) sz: (48, 41) grw: (0, 0) /Crash details/to...r.parts/text.parts SizeFromChildren col: 0 max X: 48 sum Y: 41 max grX: 0 sum grY: 0 col: 1 max X: 18 sum Y: 33 max grX: 1 sum grY: 1 col: 2 max X: 48 sum Y: 41 max grX: 0 sum grY: 0 row: 0 sum X: 114 max Y: 41 sum grX: 1 max grY: 1 /Crash details/to...r.parts/text.parts SizeUpPass FromChildren: (114, 41) Content: (114, 41) Internal: (114, 41) SzUp i: 0 /Crash details/to...chooser.parts/text cidx: (0,0) sz: (506, 63) grw: (0, 0) /Crash details/to.../app-chooser.parts SizeFromChildren col: 0 max X: 506 sum Y: 63 max grX: 0 sum grY: 0 row: 0 sum X: 506 max Y: 63 sum grX: 0 max grY: 0 /Crash details/to.../app-chooser.parts SizeUpPass FromChildren: (506, 63) Content: (506, 63) Internal: (506, 63) /Crash details/to...ow-menu.parts/icon SizeUp from Style: (33, 33) SzUp i: 0 /Crash details/to...ow-menu.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) /Crash details/to...verflow-menu.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 row: 0 sum X: 37 max Y: 37 sum grX: 0 max grY: 0 /Crash details/to...verflow-menu.parts SizeUpPass FromChildren: (37, 37) Content: (37, 37) Internal: (37, 37) SzUp i: 0 /Crash details/top-bar/toolbar-0/back cidx: (0,0) sz: (69, 59) grw: (0, 0) SzUp i: 1 /Crash details/to...lbar-0/app-chooser cidx: (1,0) sz: (506, 63) grw: (0, 0) SzUp i: 2 /Crash details/to...ar-0/overflow-menu cidx: (2,0) sz: (69, 59) grw: (0, 0) /Crash details/top-bar/toolbar-0 SizeFromChildren col: 0 max X: 69 sum Y: 59 max grX: 0 sum grY: 0 col: 1 max X: 506 sum Y: 63 max grX: 0 sum grY: 0 col: 2 max X: 69 sum Y: 59 max grX: 0 sum grY: 0 row: 0 sum X: 644 max Y: 63 sum grX: 0 max grY: 0 /Crash details/top-bar/toolbar-0 SizeUpPass FromChildren: (69, 63) Content: (69, 63) Internal: (69, 63) SzUp i: 0 /Crash details/top-bar/toolbar-0 cidx: (0,0) sz: (101, 67) grw: (1, 0) /Crash details/top-bar SizeFromChildren col: 0 max X: 101 sum Y: 67 max grX: 1 sum grY: 0 row: 0 sum X: 101 max Y: 67 sum grX: 1 max grY: 0 /Crash details/top-bar SizeUpPass FromChildren: (101, 67) Content: (101, 67) Internal: (101, 67) /Crash details/crash-details/title SizeUpWrapSize chars: 13 area: 15028 sz: (122.58697, 75.7645) /Crash details/crash-details/title Label SizeUp: (128, 116) Actual: (128, 116) /Crash details/crash-details/label-1 SizeUpWrapSize chars: 2059 area: 3.131739e+06 sz: (1769.6462, 1093.7245) /Crash details/crash-details/label-1 Label SizeUp: (1958, 1772) Actual: (1958, 1772) SzUp i: 0 /Crash details/crash-details/title cidx: (0,0) sz: (132, 120) grw: (1, 0) SzUp i: 1 /Crash details/crash-details/label-1 cidx: (0,1) sz: (1962, 1776) grw: (1, 0) /Crash details/crash-details SizeFromChildren col: 0 max X: 1962 sum Y: 1896 max grX: 1 sum grY: 0 row: 0 sum X: 132 max Y: 120 sum grX: 1 max grY: 0 row: 1 sum X: 1962 max Y: 1776 sum grX: 1 max grY: 0 /Crash details/crash-details SizeUpPass FromChildren: (1962, 1903) Content: (0, 0) Internal: (1962, 1903) /Crash details/bo...utton-0.parts/icon SizeUp from Style: (33, 33) /Crash details/bo...tton-0.parts/space SizeUp from Style: (14, 29) /Crash details/bo...tton-0.parts/label Label SizeUp: (58, 36) Actual: (58, 36) SzUp i: 0 /Crash details/bo...utton-0.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) SzUp i: 1 /Crash details/bo...tton-0.parts/space cidx: (1,0) sz: (14, 29) grw: (0, 0) SzUp i: 2 /Crash details/bo...tton-0.parts/label cidx: (2,0) sz: (62, 40) grw: (1, 0) /Crash details/bo...bar/button-0.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 col: 1 max X: 14 sum Y: 29 max grX: 0 sum grY: 0 col: 2 max X: 62 sum Y: 40 max grX: 1 sum grY: 0 row: 0 sum X: 113 max Y: 40 sum grX: 1 max grY: 0 /Crash details/bo...bar/button-0.parts SizeUpPass FromChildren: (113, 40) Content: (113, 40) Internal: (113, 40) /Crash details/bo...bar/ok.parts/label Label SizeUp: (34, 36) Actual: (34, 36) SzUp i: 0 /Crash details/bo...bar/ok.parts/label cidx: (0,0) sz: (38, 40) grw: (1, 0) /Crash details/bottom-bar/ok.parts SizeFromChildren col: 0 max X: 38 sum Y: 40 max grX: 1 sum grY: 0 row: 0 sum X: 38 max Y: 40 sum grX: 1 max grY: 0 /Crash details/bottom-bar/ok.parts SizeUpPass FromChildren: (38, 40) Content: (38, 40) Internal: (38, 40) SzUp i: 0 /Crash details/bottom-bar/button-0 cidx: (0,0) sz: (162, 72) grw: (0, 0) SzUp i: 1 /Crash details/bottom-bar/ok cidx: (1,0) sz: (94, 72) grw: (0, 0) /Crash details/bottom-bar SizeFromChildren col: 0 max X: 162 sum Y: 72 max grX: 0 sum grY: 0 col: 1 max X: 94 sum Y: 72 max grX: 0 sum grY: 0 row: 0 sum X: 256 max Y: 72 sum grX: 0 max grY: 0 /Crash details/bottom-bar SizeUpPass FromChildren: (263, 72) Content: (263, 72) Internal: (263, 72) SzUp i: 0 /Crash details/top-bar cidx: (0,0) sz: (101, 67) grw: (1, 0) SzUp i: 1 /Crash details/crash-details cidx: (0,1) sz: (4, 4) grw: (1, 1) SzUp i: 2 /Crash details/bottom-bar cidx: (0,2) sz: (263, 72) grw: (1, 0) /Crash details SizeFromChildren col: 0 max X: 263 sum Y: 143 max grX: 1 sum grY: 1 row: 0 sum X: 101 max Y: 67 sum grX: 1 max grY: 0 row: 1 sum X: 4 max Y: 4 sum grX: 1 max grY: 1 row: 2 sum X: 263 max Y: 72 sum grX: 1 max grY: 0 /Crash details SizeUpPass FromChildren: (263, 157) Content: (263, 157) Internal: (263, 157) ############################ SizeDown start: /Crash details /Crash details Managing Alloc: (1895, 1286) /Crash details SizeDown extra: (1632, 1129) Internal: (263, 157) Alloc: (1895, 1286) /Crash details/top-bar X alloc: 1895 was act: 277 mx: 263 gsum: 1 gr: 1 ex: 1632 /Crash details/top-bar Y alloc: 67 was act: 171 mx: 67 gsum: 1 gr: 0 ex: 1129 /Crash details/crash-details X alloc: 1895 was act: 277 mx: 263 gsum: 1 gr: 1 ex: 1632 /Crash details/crash-details Y alloc: 1133 was act: 171 mx: 4 gsum: 1 gr: 1 ex: 1129 /Crash details/bottom-bar X alloc: 1895 was act: 277 mx: 263 gsum: 1 gr: 1 ex: 1632 /Crash details/bottom-bar Y alloc: 72 was act: 171 mx: 72 gsum: 1 gr: 0 ex: 1129 /Crash details/top-bar Managing Alloc: (1895, 67) /Crash details/top-bar SizeDown extra: (1794, 0) Internal: (101, 67) Alloc: (1895, 67) /Crash details/top-bar/toolbar-0 X alloc: 1895 was act: 101 mx: 101 gsum: 1 gr: 1 ex: 1794 /Crash details/top-bar/toolbar-0 Y alloc: 67 was act: 67 mx: 67 gsum: 0 gr: 0 ex: 0 /Crash details/top-bar/toolbar-0 Managing Alloc: (1863, 63) /Crash details/top-bar/toolbar-0 SizeDown extra: (1794, 0) Internal: (69, 63) Alloc: (1863, 63) /Crash details/top-bar/toolbar-0/back X alloc: 69 was act: 101 mx: 69 gsum: 0 gr: 0 ex: 1794 /Crash details/top-bar/toolbar-0/back Y alloc: 63 was act: 67 mx: 63 gsum: 0 gr: 0 ex: 0 /Crash details/to...lbar-0/app-chooser X alloc: 506 was act: 101 mx: 506 gsum: 0 gr: 0 ex: 1794 /Crash details/to...lbar-0/app-chooser Y alloc: 63 was act: 67 mx: 63 gsum: 0 gr: 0 ex: 0 /Crash details/to...ar-0/overflow-menu X alloc: 69 was act: 101 mx: 69 gsum: 0 gr: 0 ex: 1794 /Crash details/to...ar-0/overflow-menu Y alloc: 63 was act: 67 mx: 63 gsum: 0 gr: 0 ex: 0 /Crash details/to...olbar-0/back.parts Managing Alloc: (37, 37) /Crash details/to.../app-chooser.parts Managing Alloc: (506, 63) /Crash details/to...r.parts/text.parts Managing Alloc: (478, 41) /Crash details/to...r.parts/text.parts SizeDown extra: (364, 0) Internal: (114, 41) Alloc: (478, 41) /Crash details/to...xt.parts/lead-icon X alloc: 48 was act: 114 mx: 48 gsum: 1 gr: 0 ex: 364 /Crash details/to...xt.parts/lead-icon Y alloc: 41 was act: 41 mx: 41 gsum: 0 gr: 0 ex: 0 /Crash details/to...rts/trail-icon-str X alloc: 382 was act: 114 mx: 18 gsum: 1 gr: 1 ex: 364 /Crash details/to...rts/trail-icon-str Y alloc: 41 was act: 41 mx: 41 gsum: 1 gr: 1 ex: 0 /Crash details/to...t.parts/trail-icon X alloc: 48 was act: 114 mx: 48 gsum: 1 gr: 0 ex: 364 /Crash details/to...t.parts/trail-icon Y alloc: 41 was act: 41 mx: 41 gsum: 0 gr: 0 ex: 0 /Crash details/to...ts/lead-icon.parts Managing Alloc: (37, 37) /Crash details/to...s/trail-icon.parts Managing Alloc: (37, 37) /Crash details/to...verflow-menu.parts Managing Alloc: (37, 37) /Crash details/top-bar SizeDownChildren child: toolbar-0 triggered redo SzUp i: 0 /Crash details/top-bar/toolbar-0 cidx: (0,0) sz: (101, 67) grw: (1, 0) /Crash details/top-bar SizeFromChildren col: 0 max X: 101 sum Y: 67 max grX: 1 sum grY: 0 row: 0 sum X: 101 max Y: 67 sum grX: 1 max grY: 0 /Crash details/top-bar SizeDownPass FromChildren: (101, 67) Content: (101, 67) Internal: (101, 67) /Crash details/top-bar SizeDown redo /Crash details SizeDownChildren child: top-bar triggered redo /Crash details/crash-details Managing Alloc: (1891, 1129) /Crash details/crash-details OverflowAuto enabling scrollbars for dim for overflow: X 71 alloc: 1891 internal: 1962 /Crash details/crash-details OverflowAuto enabling scrollbars for dim for overflow: Y 774 alloc: 1129 internal: 1903 /Crash details/crash-details ManageOverflow changed /Crash details/crash-details/title Label Size Changed: (250, 58) was: (128, 116) /Crash details/crash-details SizeDownChildren child: title triggered redo /Crash details/crash-details/label-1 Label Size Changed: (1958, 1685) was: (1958, 1772) /Crash details/crash-details SizeDownChildren child: label-1 triggered redo SzUp i: 0 /Crash details/crash-details/title cidx: (0,0) sz: (254, 62) grw: (1, 0) SzUp i: 1 /Crash details/crash-details/label-1 cidx: (0,1) sz: (1962, 1689) grw: (1, 0) /Crash details/crash-details SizeFromChildren col: 0 max X: 1962 sum Y: 1751 max grX: 1 sum grY: 0 row: 0 sum X: 254 max Y: 62 sum grX: 1 max grY: 0 row: 1 sum X: 1962 max Y: 1689 sum grX: 1 max grY: 0 /Crash details/crash-details SizeDownPass FromChildren: (1962, 1758) Content: (0, 0) Internal: (1962, 1758) /Crash details/crash-details SizeDown redo /Crash details SizeDownChildren child: crash-details triggered redo /Crash details/bottom-bar Managing Alloc: (1895, 72) /Crash details/bottom-bar SizeDown extra: (1632, 0) Internal: (263, 72) Alloc: (1895, 72) /Crash details/bottom-bar/button-0 X alloc: 162 was act: 263 mx: 162 gsum: 0 gr: 0 ex: 1632 /Crash details/bottom-bar/button-0 Y alloc: 72 was act: 72 mx: 72 gsum: 0 gr: 0 ex: 0 /Crash details/bottom-bar/ok X alloc: 94 was act: 263 mx: 94 gsum: 0 gr: 0 ex: 1632 /Crash details/bottom-bar/ok Y alloc: 72 was act: 72 mx: 72 gsum: 0 gr: 0 ex: 0 /Crash details/bo...bar/button-0.parts Managing Alloc: (113, 40) /Crash details/bottom-bar/ok.parts Managing Alloc: (38, 40) SzUp i: 0 /Crash details/top-bar cidx: (0,0) sz: (101, 67) grw: (1, 0) SzUp i: 1 /Crash details/crash-details cidx: (0,1) sz: (22, 22) grw: (1, 1) SzUp i: 2 /Crash details/bottom-bar cidx: (0,2) sz: (263, 72) grw: (1, 0) /Crash details SizeFromChildren col: 0 max X: 263 sum Y: 161 max grX: 1 sum grY: 1 row: 0 sum X: 101 max Y: 67 sum grX: 1 max grY: 0 row: 1 sum X: 22 max Y: 22 sum grX: 1 max grY: 1 row: 2 sum X: 263 max Y: 72 sum grX: 1 max grY: 0 /Crash details SizeDownPass FromChildren: (263, 175) Content: (263, 175) Internal: (263, 175) /Crash details SizeDown redo ############################ SizeDown redo: /Crash details iter: 1 /Crash details Managing Alloc: (1895, 1286) /Crash details SizeDown extra: (1632, 1111) Internal: (263, 175) Alloc: (1895, 1286) /Crash details/top-bar X alloc: 1895 was act: 277 mx: 263 gsum: 1 gr: 1 ex: 1632 /Crash details/top-bar Y alloc: 67 was act: 189 mx: 67 gsum: 1 gr: 0 ex: 1111 /Crash details/crash-details X alloc: 1895 was act: 277 mx: 263 gsum: 1 gr: 1 ex: 1632 /Crash details/crash-details Y alloc: 1133 was act: 189 mx: 22 gsum: 1 gr: 1 ex: 1111 /Crash details/bottom-bar X alloc: 1895 was act: 277 mx: 263 gsum: 1 gr: 1 ex: 1632 /Crash details/bottom-bar Y alloc: 72 was act: 189 mx: 72 gsum: 1 gr: 0 ex: 1111 /Crash details/top-bar Managing Alloc: (1895, 67) /Crash details/top-bar SizeDown extra: (1794, 0) Internal: (101, 67) Alloc: (1895, 67) /Crash details/top-bar/toolbar-0 X alloc: 1895 was act: 101 mx: 101 gsum: 1 gr: 1 ex: 1794 /Crash details/top-bar/toolbar-0 Y alloc: 67 was act: 67 mx: 67 gsum: 0 gr: 0 ex: 0 /Crash details/top-bar/toolbar-0 Managing Alloc: (1863, 63) /Crash details/top-bar/toolbar-0 SizeDown extra: (1794, 0) Internal: (69, 63) Alloc: (1863, 63) /Crash details/top-bar/toolbar-0/back X alloc: 69 was act: 101 mx: 69 gsum: 0 gr: 0 ex: 1794 /Crash details/top-bar/toolbar-0/back Y alloc: 63 was act: 67 mx: 63 gsum: 0 gr: 0 ex: 0 /Crash details/to...lbar-0/app-chooser X alloc: 506 was act: 101 mx: 506 gsum: 0 gr: 0 ex: 1794 /Crash details/to...lbar-0/app-chooser Y alloc: 63 was act: 67 mx: 63 gsum: 0 gr: 0 ex: 0 /Crash details/to...ar-0/overflow-menu X alloc: 69 was act: 101 mx: 69 gsum: 0 gr: 0 ex: 1794 /Crash details/to...ar-0/overflow-menu Y alloc: 63 was act: 67 mx: 63 gsum: 0 gr: 0 ex: 0 /Crash details/to...olbar-0/back.parts Managing Alloc: (37, 37) /Crash details/to.../app-chooser.parts Managing Alloc: (506, 63) /Crash details/to...r.parts/text.parts Managing Alloc: (478, 41) /Crash details/to...r.parts/text.parts SizeDown extra: (364, 0) Internal: (114, 41) Alloc: (478, 41) /Crash details/to...xt.parts/lead-icon X alloc: 48 was act: 114 mx: 48 gsum: 1 gr: 0 ex: 364 /Crash details/to...xt.parts/lead-icon Y alloc: 41 was act: 41 mx: 41 gsum: 0 gr: 0 ex: 0 /Crash details/to...rts/trail-icon-str X alloc: 382 was act: 114 mx: 18 gsum: 1 gr: 1 ex: 364 /Crash details/to...rts/trail-icon-str Y alloc: 41 was act: 41 mx: 41 gsum: 1 gr: 1 ex: 0 /Crash details/to...t.parts/trail-icon X alloc: 48 was act: 114 mx: 48 gsum: 1 gr: 0 ex: 364 /Crash details/to...t.parts/trail-icon Y alloc: 41 was act: 41 mx: 41 gsum: 0 gr: 0 ex: 0 /Crash details/to...ts/lead-icon.parts Managing Alloc: (37, 37) /Crash details/to...s/trail-icon.parts Managing Alloc: (37, 37) /Crash details/to...verflow-menu.parts Managing Alloc: (37, 37) DebugSettings.UpdateTrace Update: /Crash details/to...ar-0/overflow-menu updt: true DebugSettings.UpdateTrace: NeedsRender: /Crash details/to...ar-0/overflow-menu /Crash details/crash-details Managing Alloc: (1873, 1111) /Crash details/bottom-bar Managing Alloc: (1895, 72) /Crash details/bottom-bar SizeDown extra: (1632, 0) Internal: (263, 72) Alloc: (1895, 72) /Crash details/bottom-bar/button-0 X alloc: 162 was act: 263 mx: 162 gsum: 0 gr: 0 ex: 1632 /Crash details/bottom-bar/button-0 Y alloc: 72 was act: 72 mx: 72 gsum: 0 gr: 0 ex: 0 /Crash details/bottom-bar/ok X alloc: 94 was act: 263 mx: 94 gsum: 0 gr: 0 ex: 1632 /Crash details/bottom-bar/ok Y alloc: 72 was act: 72 mx: 72 gsum: 0 gr: 0 ex: 0 /Crash details/bo...bar/button-0.parts Managing Alloc: (113, 40) /Crash details/bottom-bar/ok.parts Managing Alloc: (38, 40) ############################ SizeFinal start: /Crash details SzUp i: 0 /Crash details/to...-0/back.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) /Crash details/to...olbar-0/back.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 row: 0 sum X: 37 max Y: 37 sum grX: 0 max grY: 0 /Crash details/to...olbar-0/back.parts SizeFinalPass FromChildren: (37, 37) Content: (37, 37) Internal: (37, 37) SzUp i: 0 /Crash details/to...ad-icon.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) /Crash details/to...ts/lead-icon.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 row: 0 sum X: 37 max Y: 37 sum grX: 0 max grY: 0 /Crash details/to...ts/lead-icon.parts SizeFinalPass FromChildren: (37, 37) Content: (37, 37) Internal: (37, 37) /Crash details/to...rts/trail-icon-str GrowToAlloc: (382, 41) from actual: (18, 33) SzUp i: 0 /Crash details/to...il-icon.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) /Crash details/to...s/trail-icon.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 row: 0 sum X: 37 max Y: 37 sum grX: 0 max grY: 0 /Crash details/to...s/trail-icon.parts SizeFinalPass FromChildren: (37, 37) Content: (37, 37) Internal: (37, 37) SzUp i: 0 /Crash details/to...xt.parts/lead-icon cidx: (0,0) sz: (48, 41) grw: (0, 0) SzUp i: 1 /Crash details/to...rts/trail-icon-str cidx: (1,0) sz: (382, 41) grw: (1, 1) SzUp i: 2 /Crash details/to...t.parts/trail-icon cidx: (2,0) sz: (48, 41) grw: (0, 0) /Crash details/to...r.parts/text.parts SizeFromChildren col: 0 max X: 48 sum Y: 41 max grX: 0 sum grY: 0 col: 1 max X: 382 sum Y: 41 max grX: 1 sum grY: 1 col: 2 max X: 48 sum Y: 41 max grX: 0 sum grY: 0 row: 0 sum X: 478 max Y: 41 sum grX: 1 max grY: 1 /Crash details/to...r.parts/text.parts SizeFinalPass FromChildren: (478, 41) Content: (478, 41) Internal: (478, 41) SzUp i: 0 /Crash details/to...chooser.parts/text cidx: (0,0) sz: (506, 63) grw: (0, 0) /Crash details/to.../app-chooser.parts SizeFromChildren col: 0 max X: 506 sum Y: 63 max grX: 0 sum grY: 0 row: 0 sum X: 506 max Y: 63 sum grX: 0 max grY: 0 /Crash details/to.../app-chooser.parts SizeFinalPass FromChildren: (506, 63) Content: (506, 63) Internal: (506, 63) SzUp i: 0 /Crash details/to...ow-menu.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) /Crash details/to...verflow-menu.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 row: 0 sum X: 37 max Y: 37 sum grX: 0 max grY: 0 /Crash details/to...verflow-menu.parts SizeFinalPass FromChildren: (37, 37) Content: (37, 37) Internal: (37, 37) SzUp i: 0 /Crash details/top-bar/toolbar-0/back cidx: (0,0) sz: (69, 59) grw: (0, 0) SzUp i: 1 /Crash details/to...lbar-0/app-chooser cidx: (1,0) sz: (506, 63) grw: (0, 0) SzUp i: 2 /Crash details/to...ar-0/overflow-menu cidx: (2,0) sz: (69, 59) grw: (0, 0) /Crash details/top-bar/toolbar-0 SizeFromChildren col: 0 max X: 69 sum Y: 59 max grX: 0 sum grY: 0 col: 1 max X: 506 sum Y: 63 max grX: 0 sum grY: 0 col: 2 max X: 69 sum Y: 59 max grX: 0 sum grY: 0 row: 0 sum X: 644 max Y: 63 sum grX: 0 max grY: 0 /Crash details/top-bar/toolbar-0 SizeFinalPass FromChildren: (69, 63) Content: (69, 63) Internal: (69, 63) /Crash details/top-bar/toolbar-0 GrowToAlloc: (1863, 67) from actual: (101, 67) SzUp i: 0 /Crash details/top-bar/toolbar-0 cidx: (0,0) sz: (1863, 67) grw: (1, 0) /Crash details/top-bar SizeFromChildren col: 0 max X: 1863 sum Y: 67 max grX: 1 sum grY: 0 row: 0 sum X: 1863 max Y: 67 sum grX: 1 max grY: 0 /Crash details/top-bar SizeFinalPass FromChildren: (1863, 67) Content: (1863, 67) Internal: (1863, 67) /Crash details/top-bar GrowToAlloc: (1895, 67) from actual: (1863, 67) SzUp i: 0 /Crash details/crash-details/title cidx: (0,0) sz: (254, 62) grw: (1, 0) SzUp i: 1 /Crash details/crash-details/label-1 cidx: (0,1) sz: (1962, 1689) grw: (1, 0) /Crash details/crash-details SizeFromChildren col: 0 max X: 1962 sum Y: 1751 max grX: 1 sum grY: 0 row: 0 sum X: 254 max Y: 62 sum grX: 1 max grY: 0 row: 1 sum X: 1962 max Y: 1689 sum grX: 1 max grY: 0 /Crash details/crash-details SizeFinalPass FromChildren: (1962, 1758) Content: (0, 0) Internal: (1962, 1758) /Crash details/crash-details GrowToAlloc: (1895, 1133) from actual: (22, 22) SzUp i: 0 /Crash details/bo...utton-0.parts/icon cidx: (0,0) sz: (37, 37) grw: (0, 0) SzUp i: 1 /Crash details/bo...tton-0.parts/space cidx: (1,0) sz: (14, 29) grw: (0, 0) SzUp i: 2 /Crash details/bo...tton-0.parts/label cidx: (2,0) sz: (62, 40) grw: (1, 0) /Crash details/bo...bar/button-0.parts SizeFromChildren col: 0 max X: 37 sum Y: 37 max grX: 0 sum grY: 0 col: 1 max X: 14 sum Y: 29 max grX: 0 sum grY: 0 col: 2 max X: 62 sum Y: 40 max grX: 1 sum grY: 0 row: 0 sum X: 113 max Y: 40 sum grX: 1 max grY: 0 /Crash details/bo...bar/button-0.parts SizeFinalPass FromChildren: (113, 40) Content: (113, 40) Internal: (113, 40) SzUp i: 0 /Crash details/bo...bar/ok.parts/label cidx: (0,0) sz: (38, 40) grw: (1, 0) /Crash details/bottom-bar/ok.parts SizeFromChildren col: 0 max X: 38 sum Y: 40 max grX: 1 sum grY: 0 row: 0 sum X: 38 max Y: 40 sum grX: 1 max grY: 0 /Crash details/bottom-bar/ok.parts SizeFinalPass FromChildren: (38, 40) Content: (38, 40) Internal: (38, 40) SzUp i: 0 /Crash details/bottom-bar/button-0 cidx: (0,0) sz: (162, 72) grw: (0, 0) SzUp i: 1 /Crash details/bottom-bar/ok cidx: (1,0) sz: (94, 72) grw: (0, 0) /Crash details/bottom-bar SizeFromChildren col: 0 max X: 162 sum Y: 72 max grX: 0 sum grY: 0 col: 1 max X: 94 sum Y: 72 max grX: 0 sum grY: 0 row: 0 sum X: 256 max Y: 72 sum grX: 0 max grY: 0 /Crash details/bottom-bar SizeFinalPass FromChildren: (263, 72) Content: (263, 72) Internal: (263, 72) /Crash details/bottom-bar GrowToAlloc: (1895, 72) from actual: (263, 72) SzUp i: 0 /Crash details/top-bar cidx: (0,0) sz: (1895, 67) grw: (1, 0) SzUp i: 1 /Crash details/crash-details cidx: (0,1) sz: (1895, 1133) grw: (1, 1) SzUp i: 2 /Crash details/bottom-bar cidx: (0,2) sz: (1895, 72) grw: (1, 0) /Crash details SizeFromChildren col: 0 max X: 1895 sum Y: 1272 max grX: 1 sum grY: 1 row: 0 sum X: 1895 max Y: 67 sum grX: 1 max grY: 0 row: 1 sum X: 1895 max Y: 1133 sum grX: 1 max grY: 1 row: 2 sum X: 1895 max Y: 72 sum grX: 1 max grY: 0 /Crash details SizeFinalPass FromChildren: (1895, 1286) Content: (1895, 1286) Internal: (1895, 1286) ############################ Position start: /Crash details /Crash details Position within Main=Y: (0, 0) /Crash details PositionCells, alloc: (1895, 1286) internal: (1895, 1286) /Crash details/top-bar Position within Main=Y: (0, 0) /Crash details/crash-details Position within Main=Y: (0, 74) /Crash details/bottom-bar Position within Main=Y: (0, 1214) /Crash details/top-bar PositionCells Main X, alloc: (1895, 67) internal: (1863, 67) /Crash details/top-bar/toolbar-0 Position within Main=X: (0, 0) /Crash details/top-bar/toolbar-0 PositionCells Main X, alloc: (1831, 63) internal: (69, 63) /Crash details/top-bar/toolbar-0/back Position within Main=X: (0, 0) /Crash details/to...lbar-0/app-chooser Position within Main=X: (69, 0) /Crash details/to...ar-0/overflow-menu Position within Main=X: (575, 0) /Crash details/to...olbar-0/back.parts parts align pos: (0, 0) /Crash details/to...olbar-0/back.parts PositionCells Main X, alloc: (37, 37) internal: (37, 37) /Crash details/to...-0/back.parts/icon Position within Main=X: (0, 0) /Crash details/to.../app-chooser.parts parts align pos: (0, 0) /Crash details/to.../app-chooser.parts PositionCells Main X, alloc: (506, 63) internal: (506, 63) /Crash details/to...chooser.parts/text Position within Main=X: (0, 0) /Crash details/to...r.parts/text.parts parts align pos: (0, 0) /Crash details/to...r.parts/text.parts PositionCells Main X, alloc: (478, 41) internal: (478, 41) /Crash details/to...xt.parts/lead-icon Position within Main=X: (0, 0) /Crash details/to...rts/trail-icon-str Position within Main=X: (48, 0) /Crash details/to...t.parts/trail-icon Position within Main=X: (430, 0) /Crash details/to...ts/lead-icon.parts parts align pos: (0, 0) /Crash details/to...ts/lead-icon.parts PositionCells Main X, alloc: (37, 37) internal: (37, 37) /Crash details/to...ad-icon.parts/icon Position within Main=X: (0, 0) /Crash details/to...s/trail-icon.parts parts align pos: (0, 0) /Crash details/to...s/trail-icon.parts PositionCells Main X, alloc: (37, 37) internal: (37, 37) /Crash details/to...il-icon.parts/icon Position within Main=X: (0, 0) /Crash details/to...verflow-menu.parts parts align pos: (0, 0) /Crash details/to...verflow-menu.parts PositionCells Main X, alloc: (37, 37) internal: (37, 37) /Crash details/to...ow-menu.parts/icon Position within Main=X: (0, 0) /Crash details/crash-details PositionCells, alloc: (1873, 1111) internal: (1962, 1758) /Crash details/crash-details/title Position within Main=Y: (0, 0) /Crash details/crash-details/label-1 Position within Main=Y: (0, 69) /Crash details/bottom-bar PositionCells Main X, alloc: (1895, 72) internal: (263, 72) /Crash details/bottom-bar/button-0 Position within Main=X: (1632, 0) /Crash details/bottom-bar/ok Position within Main=X: (1801, 0) /Crash details/bo...bar/button-0.parts parts align pos: (0, 0) /Crash details/bo...bar/button-0.parts PositionCells Main X, alloc: (113, 40) internal: (113, 40) /Crash details/bo...utton-0.parts/icon Position within Main=X: (0, 1) /Crash details/bo...tton-0.parts/space Position within Main=X: (37, 5) /Crash details/bo...tton-0.parts/label Position within Main=X: (51, 0) /Crash details/bottom-bar/ok.parts parts align pos: (0, 0) /Crash details/bottom-bar/ok.parts PositionCells Main X, alloc: (38, 40) internal: (38, 40) /Crash details/bo...bar/ok.parts/label Position within Main=X: (0, 0) ############################ ScenePos start: /Crash details /Crash details pos: (0, 0) parPos: (0, 0) /Crash details Total BBox: (0,0)-(1909,1300) /Crash details Content BBox: (7,7)-(1902,1293) /Crash details/top-bar pos: (7, 7) parPos: (7, 7) /Crash details/top-bar Total BBox: (7,7)-(1902,74) parBB: (7,7)-(1902,1293) BBox: (7,7)-(1902,74) /Crash details/top-bar Content BBox: (7,7)-(1902,74) parBB: (7,7)-(1902,1293) BBox: (7,7)-(1902,74) /Crash details/top-bar/toolbar-0 pos: (7, 7) parPos: (7, 7) /Crash details/top-bar/toolbar-0 Total BBox: (7,7)-(1870,74) parBB: (7,7)-(1902,74) BBox: (7,7)-(1870,74) /Crash details/top-bar/toolbar-0 Content BBox: (23,9)-(1854,72) parBB: (7,7)-(1902,74) BBox: (23,9)-(1854,72) /Crash details/top-bar/toolbar-0/back pos: (23, 9) parPos: (23, 9) /Crash details/top-bar/toolbar-0/back Total BBox: (23,9)-(92,68) parBB: (23,9)-(1854,72) BBox: (23,9)-(92,68) /Crash details/top-bar/toolbar-0/back Content BBox: (39,20)-(76,57) parBB: (23,9)-(1854,72) BBox: (39,20)-(76,57) /Crash details/to...olbar-0/back.parts pos: (39, 20) parPos: (39, 20) /Crash details/to...olbar-0/back.parts Total BBox: (39,20)-(76,57) parBB: (39,20)-(76,57) BBox: (39,20)-(76,57) /Crash details/to...olbar-0/back.parts Content BBox: (39,20)-(76,57) parBB: (39,20)-(76,57) BBox: (39,20)-(76,57) /Crash details/to...-0/back.parts/icon pos: (39, 20) parPos: (39, 20) /Crash details/to...-0/back.parts/icon Total BBox: (39,20)-(76,57) parBB: (39,20)-(76,57) BBox: (39,20)-(76,57) /Crash details/to...-0/back.parts/icon Content BBox: (41,22)-(74,55) parBB: (39,20)-(76,57) BBox: (41,22)-(74,55) /Crash details/to...lbar-0/app-chooser pos: (92, 9) parPos: (23, 9) /Crash details/to...lbar-0/app-chooser Total BBox: (92,9)-(598,72) parBB: (23,9)-(1854,72) BBox: (92,9)-(598,72) /Crash details/to...lbar-0/app-chooser Content BBox: (92,9)-(598,72) parBB: (23,9)-(1854,72) BBox: (92,9)-(598,72) /Crash details/to.../app-chooser.parts pos: (92, 9) parPos: (92, 9) /Crash details/to.../app-chooser.parts Total BBox: (92,9)-(598,72) parBB: (92,9)-(598,72) BBox: (92,9)-(598,72) /Crash details/to.../app-chooser.parts Content BBox: (92,9)-(598,72) parBB: (92,9)-(598,72) BBox: (92,9)-(598,72) /Crash details/to...chooser.parts/text pos: (92, 9) parPos: (92, 9) /Crash details/to...chooser.parts/text Total BBox: (92,9)-(598,72) parBB: (92,9)-(598,72) BBox: (92,9)-(598,72) /Crash details/to...chooser.parts/text Content BBox: (106,20)-(584,61) parBB: (92,9)-(598,72) BBox: (106,20)-(584,61) /Crash details/to...r.parts/text.parts pos: (106, 20) parPos: (106, 20) /Crash details/to...r.parts/text.parts Total BBox: (106,20)-(584,61) parBB: (106,20)-(584,61) BBox: (106,20)-(584,61) /Crash details/to...r.parts/text.parts Content BBox: (106,20)-(584,61) parBB: (106,20)-(584,61) BBox: (106,20)-(584,61) /Crash details/to...xt.parts/lead-icon pos: (106, 20) parPos: (106, 20) /Crash details/to...xt.parts/lead-icon Total BBox: (106,20)-(154,61) parBB: (106,20)-(584,61) BBox: (106,20)-(154,61) /Crash details/to...xt.parts/lead-icon Content BBox: (108,22)-(145,59) parBB: (106,20)-(584,61) BBox: (108,22)-(145,59) /Crash details/to...ts/lead-icon.parts pos: (108, 22) parPos: (108, 22) /Crash details/to...ts/lead-icon.parts Total BBox: (108,22)-(145,59) parBB: (108,22)-(145,59) BBox: (108,22)-(145,59) /Crash details/to...ts/lead-icon.parts Content BBox: (108,22)-(145,59) parBB: (108,22)-(145,59) BBox: (108,22)-(145,59) /Crash details/to...ad-icon.parts/icon pos: (108, 22) parPos: (108, 22) /Crash details/to...ad-icon.parts/icon Total BBox: (108,22)-(145,59) parBB: (108,22)-(145,59) BBox: (108,22)-(145,59) /Crash details/to...ad-icon.parts/icon Content BBox: (110,24)-(143,57) parBB: (108,22)-(145,59) BBox: (110,24)-(143,57) /Crash details/to...rts/trail-icon-str pos: (154, 20) parPos: (106, 20) /Crash details/to...rts/trail-icon-str Total BBox: (154,20)-(536,61) parBB: (106,20)-(584,61) BBox: (154,20)-(536,61) /Crash details/to...rts/trail-icon-str Content BBox: (156,22)-(534,59) parBB: (106,20)-(584,61) BBox: (156,22)-(534,59) /Crash details/to...t.parts/trail-icon pos: (536, 20) parPos: (106, 20) /Crash details/to...t.parts/trail-icon Total BBox: (536,20)-(584,61) parBB: (106,20)-(584,61) BBox: (536,20)-(584,61) /Crash details/to...t.parts/trail-icon Content BBox: (545,22)-(582,59) parBB: (106,20)-(584,61) BBox: (545,22)-(582,59) /Crash details/to...s/trail-icon.parts pos: (545, 22) parPos: (545, 22) /Crash details/to...s/trail-icon.parts Total BBox: (545,22)-(582,59) parBB: (545,22)-(582,59) BBox: (545,22)-(582,59) /Crash details/to...s/trail-icon.parts Content BBox: (545,22)-(582,59) parBB: (545,22)-(582,59) BBox: (545,22)-(582,59) /Crash details/to...il-icon.parts/icon pos: (545, 22) parPos: (545, 22) /Crash details/to...il-icon.parts/icon Total BBox: (545,22)-(582,59) parBB: (545,22)-(582,59) BBox: (545,22)-(582,59) /Crash details/to...il-icon.parts/icon Content BBox: (547,24)-(580,57) parBB: (545,22)-(582,59) BBox: (547,24)-(580,57) /Crash details/to...ar-0/overflow-menu pos: (598, 9) parPos: (23, 9) /Crash details/to...ar-0/overflow-menu Total BBox: (598,9)-(667,68) parBB: (23,9)-(1854,72) BBox: (598,9)-(667,68) /Crash details/to...ar-0/overflow-menu Content BBox: (614,20)-(651,57) parBB: (23,9)-(1854,72) BBox: (614,20)-(651,57) /Crash details/to...verflow-menu.parts pos: (614, 20) parPos: (614, 20) /Crash details/to...verflow-menu.parts Total BBox: (614,20)-(651,57) parBB: (614,20)-(651,57) BBox: (614,20)-(651,57) /Crash details/to...verflow-menu.parts Content BBox: (614,20)-(651,57) parBB: (614,20)-(651,57) BBox: (614,20)-(651,57) /Crash details/to...ow-menu.parts/icon pos: (614, 20) parPos: (614, 20) /Crash details/to...ow-menu.parts/icon Total BBox: (614,20)-(651,57) parBB: (614,20)-(651,57) BBox: (614,20)-(651,57) /Crash details/to...ow-menu.parts/icon Content BBox: (616,22)-(649,55) parBB: (614,20)-(651,57) BBox: (616,22)-(649,55) /Crash details/crash-details pos: (7, 81) parPos: (7, 7) /Crash details/crash-details Total BBox: (7,81)-(1902,1214) parBB: (7,7)-(1902,1293) BBox: (7,81)-(1902,1214) /Crash details/crash-details Content BBox: (9,83)-(1882,1194) parBB: (7,7)-(1902,1293) BBox: (9,83)-(1882,1194) /Crash details/crash-details/title pos: (9, 83) parPos: (9, 83) /Crash details/crash-details/title Total BBox: (9,83)-(263,145) parBB: (9,83)-(1882,1194) BBox: (9,83)-(263,145) /Crash details/crash-details/title Content BBox: (11,85)-(261,143) parBB: (9,83)-(1882,1194) BBox: (11,85)-(261,143) /Crash details/crash-details/label-1 pos: (9, 152) parPos: (9, 83) /Crash details/crash-details/label-1 Total BBox: (9,152)-(1971,1841) parBB: (9,83)-(1882,1194) BBox: (9,152)-(1882,1194) /Crash details/crash-details/label-1 Content BBox: (11,154)-(1969,1839) parBB: (9,83)-(1882,1194) BBox: (11,154)-(1882,1194) /Crash details/bottom-bar pos: (7, 1221) parPos: (7, 7) /Crash details/bottom-bar Total BBox: (7,1221)-(1902,1293) parBB: (7,7)-(1902,1293) BBox: (7,1221)-(1902,1293) /Crash details/bottom-bar Content BBox: (7,1221)-(1902,1293) parBB: (7,7)-(1902,1293) BBox: (7,1221)-(1902,1293) /Crash details/bottom-bar/button-0 pos: (1639, 1221) parPos: (7, 1221) /Crash details/bottom-bar/button-0 Total BBox: (1639,1221)-(1801,1293) parBB: (7,1221)-(1902,1293) BBox: (1639,1221)-(1801,1293) /Crash details/bottom-bar/button-0 Content BBox: (1660,1235)-(1773,1275) parBB: (7,1221)-(1902,1293) BBox: (1660,1235)-(1773,1275) /Crash details/bo...bar/button-0.parts pos: (1660, 1235) parPos: (1660, 1235) /Crash details/bo...bar/button-0.parts Total BBox: (1660,1235)-(1773,1275) parBB: (1660,1235)-(1773,1275) BBox: (1660,1235)-(1773,1275) /Crash details/bo...bar/button-0.parts Content BBox: (1660,1235)-(1773,1275) parBB: (1660,1235)-(1773,1275) BBox: (1660,1235)-(1773,1275) /Crash details/bo...utton-0.parts/icon pos: (1660, 1236) parPos: (1660, 1235) /Crash details/bo...utton-0.parts/icon Total BBox: (1660,1236)-(1697,1273) parBB: (1660,1235)-(1773,1275) BBox: (1660,1236)-(1697,1273) /Crash details/bo...utton-0.parts/icon Content BBox: (1662,1238)-(1695,1271) parBB: (1660,1235)-(1773,1275) BBox: (1662,1238)-(1695,1271) /Crash details/bo...tton-0.parts/space pos: (1697, 1240) parPos: (1660, 1235) /Crash details/bo...tton-0.parts/space Total BBox: (1697,1240)-(1711,1269) parBB: (1660,1235)-(1773,1275) BBox: (1697,1240)-(1711,1269) /Crash details/bo...tton-0.parts/space Content BBox: (1697,1240)-(1711,1269) parBB: (1660,1235)-(1773,1275) BBox: (1697,1240)-(1711,1269) /Crash details/bo...tton-0.parts/label pos: (1711, 1235) parPos: (1660, 1235) /Crash details/bo...tton-0.parts/label Total BBox: (1711,1235)-(1773,1275) parBB: (1660,1235)-(1773,1275) BBox: (1711,1235)-(1773,1275) /Crash details/bo...tton-0.parts/label Content BBox: (1713,1237)-(1771,1273) parBB: (1660,1235)-(1773,1275) BBox: (1713,1237)-(1771,1273) /Crash details/bottom-bar/ok pos: (1808, 1221) parPos: (7, 1221) /Crash details/bottom-bar/ok Total BBox: (1808,1221)-(1902,1293) parBB: (7,1221)-(1902,1293) BBox: (1808,1221)-(1902,1293) /Crash details/bottom-bar/ok Content BBox: (1836,1235)-(1874,1275) parBB: (7,1221)-(1902,1293) BBox: (1836,1235)-(1874,1275) /Crash details/bottom-bar/ok.parts pos: (1836, 1235) parPos: (1836, 1235) /Crash details/bottom-bar/ok.parts Total BBox: (1836,1235)-(1874,1275) parBB: (1836,1235)-(1874,1275) BBox: (1836,1235)-(1874,1275) /Crash details/bottom-bar/ok.parts Content BBox: (1836,1235)-(1874,1275) parBB: (1836,1235)-(1874,1275) BBox: (1836,1235)-(1874,1275) /Crash details/bo...bar/ok.parts/label pos: (1836, 1235) parPos: (1836, 1235) /Crash details/bo...bar/ok.parts/label Total BBox: (1836,1235)-(1874,1275) parBB: (1836,1235)-(1874,1275) BBox: (1836,1235)-(1874,1275) /Crash details/bo...bar/ok.parts/label Content BBox: (1838,1237)-(1872,1273) parBB: (1836,1235)-(1874,1275) BBox: (1838,1237)-(1872,1273) Render: /Crash details at (0,0)-(1909,1300) Render: /Crash details/top-bar at (7,7)-(1902,74) Render: /Crash details/top-bar/toolbar-0 at (7,7)-(1870,74) Render: /Crash details/top-bar/toolbar-0/back at (23,9)-(92,68) Render: /Crash details/top-bar/toolbar-0/back.parts at (39,20)-(76,57) Render: /Crash details/top-bar/toolbar-0/back.parts/icon at (39,20)-(76,57) Render: /Crash details/top-bar/toolbar-0/app-chooser at (92,9)-(598,72) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts at (92,9)-(598,72) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text at (92,9)-(598,72) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text.parts at (106,20)-(584,61) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text.parts/lead-icon at (106,20)-(154,61) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text.parts/lead-icon.parts at (108,22)-(145,59) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text.parts/lead-icon.parts/icon at (108,22)-(145,59) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text.parts/trail-icon-str at (154,20)-(536,61) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text.parts/trail-icon at (536,20)-(584,61) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text.parts/trail-icon.parts at (545,22)-(582,59) Render: /Crash details/top-bar/toolbar-0/app-chooser.parts/text.parts/trail-icon.parts/icon at (545,22)-(582,59) Render: /Crash details/top-bar/toolbar-0/overflow-menu at (598,9)-(667,68) Render: /Crash details/top-bar/toolbar-0/overflow-menu.parts at (614,20)-(651,57) Render: /Crash details/top-bar/toolbar-0/overflow-menu.parts/icon at (614,20)-(651,57) Render: /Crash details/crash-details at (7,81)-(1902,1214) Render: /Crash details/crash-details/title at (9,83)-(263,145) Render: /Crash details/crash-details/label-1 at (9,152)-(1882,1194) Render: /Crash details/crash-details/scrollX at (9,1194)-(1878,1212) DebugSettings.UpdateTrace: NeedsRender: /Crash details/crash-details/scrollX Render: /Crash details/crash-details/scrollY at (1882,83)-(1900,1190) DebugSettings.UpdateTrace: NeedsRender: /Crash details/crash-details/scrollY Render: /Crash details/bottom-bar at (7,1221)-(1902,1293) Render: /Crash details/bottom-bar/button-0 at (1639,1221)-(1801,1293) Render: /Crash details/bottom-bar/button-0.parts at (1660,1235)-(1773,1275) Render: /Crash details/bottom-bar/button-0.parts/icon at (1660,1236)-(1697,1273) Render: /Crash details/bottom-bar/button-0.parts/space at (1697,1240)-(1711,1269) Render: /Crash details/bottom-bar/button-0.parts/label at (1711,1235)-(1773,1275) Render: /Crash details/bottom-bar/ok at (1808,1221)-(1902,1293) Render: /Crash details/bottom-bar/ok.parts at (1836,1235)-(1874,1275) Render: /Crash details/bottom-bar/ok.parts/label at (1836,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) RenderScenes.SetImages: Crash details (0,0)-(1909,1300) MouseLeave{Time: 19:49, Handled: false} to /Crash details/bottom-bar/button-0 DebugSettings.UpdateTrace: NeedsRender: /Crash details/bottom-bar/button-0 MouseEnter{Time: 19:49, Handled: false} to /Crash details/bottom-bar/ok DebugSettings.UpdateTrace: NeedsRender: /Crash details/bottom-bar/ok Render: /Crash details/crash-details/scrollX at (9,1194)-(1878,1212) DebugSettings.UpdateTrace: NeedsRender: /Crash details/crash-details/scrollX Render: /Crash details/crash-details/scrollY at (1882,83)-(1900,1190) DebugSettings.UpdateTrace: NeedsRender: /Crash details/crash-details/scrollY Render: /Crash details/bottom-bar/button-0 at (1639,1221)-(1801,1293) Render: /Crash details/bottom-bar/button-0.parts at (1660,1235)-(1773,1275) Render: /Crash details/bottom-bar/button-0.parts/icon at (1660,1236)-(1697,1273) Render: /Crash details/bottom-bar/button-0.parts/space at (1697,1240)-(1711,1269) Render: /Crash details/bottom-bar/button-0.parts/label at (1711,1235)-(1773,1275) Render: /Crash details/bottom-bar/ok at (1808,1221)-(1902,1293) Render: /Crash details/bottom-bar/ok.parts at (1836,1235)-(1874,1275) Render: /Crash details/bottom-bar/ok.parts/label at (1836,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: sc Image NotUpdated mitmproxy stopped unexpectedly RenderScenes.SetImages: Crash details (0,0)-(1909,1300) Window got event MouseDown{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} MouseDown{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details/bo...bar/ok.parts/label MouseDown{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details/bottom-bar/ok.parts MouseDown{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details/bottom-bar/ok DebugSettings.UpdateTrace: NeedsRender: /Crash details/bottom-bar/ok MouseDown{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details/bottom-bar MouseDown{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details Render: /Crash details/crash-details/scrollX at (9,1194)-(1878,1212) DebugSettings.UpdateTrace: NeedsRender: /Crash details/crash-details/scrollX Render: /Crash details/crash-details/scrollY at (1882,83)-(1900,1190) DebugSettings.UpdateTrace: NeedsRender: /Crash details/crash-details/scrollY Render: /Crash details/bottom-bar/ok at (1808,1221)-(1902,1293) Render: /Crash details/bottom-bar/ok.parts at (1836,1235)-(1874,1275) Render: /Crash details/bottom-bar/ok.parts/label at (1836,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: sc Image NotUpdated mitmproxy stopped unexpectedly RenderScenes.SetImages: Crash details (0,0)-(1909,1300) Window got event MouseUp{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} MouseUp{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details/bo...bar/ok.parts/label MouseUp{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details/bottom-bar/ok.parts MouseUp{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details/bottom-bar/ok DebugSettings.UpdateTrace: NeedsRender: /Crash details/bottom-bar/ok MouseUp{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details/bottom-bar MouseUp{Button: Left, Pos: (1864,1259), Mods: , Time: 19:49} to /Crash details Click{Time: 19:49, Handled: false} to /Crash details/bottom-bar/ok /Crash details SetFocusEvent: /Crash details SetFocus: /Crash details/bottom-bar/ok Close{Time: 19:49, Handled: false} to /Crash details RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: true sceneMods: false GatherScenes: main Window: mitmproxy stopped unexpectedly-windowstage Type: WindowStage Scene: mitmproxy stopped unexpectedly Rc: Geom: {(0,0) (1909,1300)} Visible: true RenderScenes.SetImages: sc Image NotUpdated mitmproxy stopped unexpectedly MouseLeave{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-0 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-0 MouseEnter{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-1 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-1 Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0 at (1649,1221)-(1788,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts at (1677,1235)-(1760,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts/label at (1677,1235)-(1760,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1 at (1795,1221)-(1902,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts at (1823,1235)-(1874,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts/label at (1823,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) MouseLeave{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-1 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-1 MouseEnter{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-0 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-0 Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0 at (1649,1221)-(1788,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts at (1677,1235)-(1760,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts/label at (1677,1235)-(1760,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1 at (1795,1221)-(1902,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts at (1823,1235)-(1874,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts/label at (1823,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) MouseLeave{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-0 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-0 Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0 at (1649,1221)-(1788,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts at (1677,1235)-(1760,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts/label at (1677,1235)-(1760,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) MouseEnter{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-0 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-0 Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0 at (1649,1221)-(1788,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts at (1677,1235)-(1760,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts/label at (1677,1235)-(1760,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) MouseLeave{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-0 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-0 Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0 at (1649,1221)-(1788,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts at (1677,1235)-(1760,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-0.parts/label at (1677,1235)-(1760,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) MouseEnter{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-1 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-1 Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1 at (1795,1221)-(1902,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts at (1823,1235)-(1874,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts/label at (1823,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) MouseLeave{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-1 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-1 Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1 at (1795,1221)-(1902,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts at (1823,1235)-(1874,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts/label at (1823,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) MouseEnter{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-1 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-1 Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1 at (1795,1221)-(1902,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts at (1823,1235)-(1874,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts/label at (1823,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) Window got event MouseDown{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} MouseDown{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stoppe...tton-1.parts/label MouseDown{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stoppe...bar/button-1.parts MouseDown{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stoppe...ottom-bar/button-1 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-1 MouseDown{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stoppe...ectedly/bottom-bar MouseDown{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stopped unexpectedly Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1 at (1795,1221)-(1902,1293) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts at (1823,1235)-(1874,1275) Render: /mitmproxy stopped unexpectedly/bottom-bar/button-1.parts/label at (1823,1235)-(1874,1275) RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage rebuild: false stageMods: false sceneMods: true RenderScenes.SetImages: mitmproxy stopped unexpectedly (0,0)-(1909,1300) Window got event MouseUp{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} MouseUp{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stoppe...tton-1.parts/label MouseUp{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stoppe...bar/button-1.parts MouseUp{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stoppe...ottom-bar/button-1 DebugSettings.UpdateTrace: NeedsRender: /mitmproxy stoppe...ottom-bar/button-1 MouseUp{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stoppe...ectedly/bottom-bar MouseUp{Button: Left, Pos: (1838,1266), Mods: , Time: 19:50} to /mitmproxy stopped unexpectedly Click{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-1 /mitmproxy stopped unexpectedly SetFocus: /mitmproxy stoppe...ottom-bar/button-1 /mitmproxy stopped unexpectedly Losing focus: /mitmproxy stoppe...ottom-bar/button-0 FocusLost{Time: 19:50, Handled: false} to /mitmproxy stoppe...ottom-bar/button-0 panic: vulkan error: vulkan error: out of host memory (-1) [recovered] panic: vulkan error: vulkan error: out of host memory (-1) goroutine 37 [running]: cogentcore.org/core/gi.HandleRecover({0x7ff7bea29880, 0xc001ae6170}) D:/workspace/workspace/core/gi/recover.go:60 +0x233 cogentcore.org/core/gi.(*RenderWin).EventLoop.func1() D:/workspace/workspace/core/gi/renderwin.go:589 +0x24 panic({0x7ff7bea29880?, 0xc001ae6170?}) C:/Users/Admin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.6.windows-amd64/src/runtime/panic.go:914 +0x21f cogentcore.org/core/vgpu.IfPanic(...) D:/workspace/workspace/core/vgpu/errors.go:39 cogentcore.org/core/vgpu.(*Surface).ConfigSwapchain(0xc00104c420) D:/workspace/workspace/core/vgpu/surface.go:254 +0xa66 cogentcore.org/core/vgpu.(*Surface).ReConfigSwapchain(0xc00104c420) D:/workspace/workspace/core/vgpu/surface.go:302 +0x25 cogentcore.org/core/vgpu.(*Surface).AcquireNextImage(0xc00104c420) D:/workspace/workspace/core/vgpu/surface.go:347 +0x10b cogentcore.org/core/vgpu/vdraw.(*Drawer).StartDraw(0xc00021d680, 0x7ff7c0223540?) D:/workspace/workspace/core/vgpu/vdraw/draw.go:234 +0xa7 cogentcore.org/core/gi.(*RenderWin).DrawScenes(0xc001e36000) D:/workspace/workspace/core/gi/renderwin.go:1036 +0x262 cogentcore.org/core/gi.(*RenderWin).RenderWindow(0xc001e36000) D:/workspace/workspace/core/gi/renderwin.go:1000 +0x379 cogentcore.org/core/gi.(*RenderWin).HandleWindowEvents(0xc001e36000, {0x7ff7c022cf30, 0xc000309500}) D:/workspace/workspace/core/gi/renderwin.go:651 +0x55f cogentcore.org/core/gi.(*RenderWin).HandleEvent(0xc001e36000, {0x7ff7c022cf30, 0xc000309500}) D:/workspace/workspace/core/gi/renderwin.go:636 +0xe5 cogentcore.org/core/gi.(*RenderWin).EventLoop(0xc001e36000) D:/workspace/workspace/core/gi/renderwin.go:603 +0x125 created by cogentcore.org/core/gi.(*RenderWin).GoStartEventLoop in goroutine 1 D:/workspace/workspace/core/gi/renderwin.go:557 +0xa5 进程 已完成,退出代码为 2

Platform

windows

kkoreilly commented 5 months ago

The RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage messages indicate that the program is crashing, and then it is recovering from that crash and making a window displaying a crash error message, and it is failing while doing that as well. Can you try doing goosi.HandleRecover = goosi.HandleRecoverPanic in your program and then tell me whether it still crashes like this or whether it crashes with a different message? That information will help me figure out the problem.

ddkwork commented 5 months ago

The RenderWindow: doing render: mitmproxy stopped unexpectedly-windowstage messages indicate that the program is crashing, and then it is recovering from that crash and making a window displaying a crash error message, and it is failing while doing that as well. Can you try doing goosi.HandleRecover = goosi.HandleRecoverPanic in your program and then tell me whether it still crashes like this or whether it crashes with a different message? That information will help me figure out the problem.

Recently about 8 applications crashed stack tracebacks have come here, all the same error, at first I thought it was a recursive writing that caused the heap memory release problem, now I suspect the problem of Vulkan's swap chain to release memory, and I don't understand goosi. HandleRecover = goosi. HandleRecoverPanic' how should this be done? Is it to include this code in an application that is expected to experience this crash?

There are several applications that have this crash: Task Manager, File Manager, Code, some demos that have been core, and some programs that I have made temporarily, unfortunately I can't force this crash, if you need more application crash information, I will store the crash logs of all the applications mentioned above in the subsequent time

kkoreilly commented 5 months ago

goosi.HandleRecover = goosi.HandleRecoverPanic is not a fix for the issue; it will just help me get more information about it. I can not reproduce this crash, so I need you to put that line in a core program, run it, get it to crash, and then send me the stack trace. Thanks!

ddkwork commented 5 months ago

goosi.HandleRecover = goosi.HandleRecoverPanic is not a fix for the issue; it will just help me get more information about it. I can not reproduce this crash, so I need you to put that line in a core program, run it, get it to crash, and then send me the stack trace. Thanks!

screenshots

Details

Crash log saved in C:\Users\Admin\AppData\Roaming\Cogent Task Manager\crash-logs panic: vulkan error: vulkan error: out of host memory (-1) goroutine 16 [running]: runtime/debug.Stack() C:/Users/Admin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.6.windows-amd64/src/runtime/debug/stack.go:24 +0x5e cogentcore.org/core/gi.HandleRecover({0x7ff7c8c4f700, 0xc001cdfcb0}) D:/workspace/workspace/core/gi/recover.go:28 +0x52 cogentcore.org/core/gi.(*RenderWin).EventLoop.func1() D:/workspace/workspace/core/gi/renderwin.go:589 +0x24 panic({0x7ff7c8c4f700?, 0xc001cdfcb0?}) C:/Users/Admin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.6.windows-amd64/src/runtime/panic.go:914 +0x21f cogentcore.org/core/vgpu.IfPanic(...) D:/workspace/workspace/core/vgpu/errors.go:39 cogentcore.org/core/vgpu.(*Surface).ConfigSwapchain(0xc000322630) D:/workspace/workspace/core/vgpu/surface.go:254 +0xa66 cogentcore.org/core/vgpu.(*Surface).ReConfigSwapchain(0xc000322630) D:/workspace/workspace/core/vgpu/surface.go:302 +0x25 cogentcore.org/core/vgpu.(*Surface).AcquireNextImage(0xc000322630) D:/workspace/workspace/core/vgpu/surface.go:347 +0x10b cogentcore.org/core/vgpu/vdraw.(*Drawer).StartDraw(0xc00021c900, 0x7ff7c919a9e0?) D:/workspace/workspace/core/vgpu/vdraw/draw.go:234 +0xa7 cogentcore.org/core/gi.(*RenderWin).DrawScenes(0xc00033c0f0) D:/workspace/workspace/core/gi/renderwin.go:1036 +0x262 cogentcore.org/core/gi.(*RenderWin).RenderWindow(0xc00033c0f0) D:/workspace/workspace/core/gi/renderwin.go:1000 +0x379 cogentcore.org/core/gi.(*RenderWin).HandleWindowEvents(0xc00033c0f0, {0x7ff7c919fd90, 0xc000571880}) D:/workspace/workspace/core/gi/renderwin.go:651 +0x55f cogentcore.org/core/gi.(*RenderWin).HandleEvent(0xc00033c0f0, {0x7ff7c919fd90, 0xc000571880}) D:/workspace/workspace/core/gi/renderwin.go:636 +0xe5 cogentcore.org/core/gi.(*RenderWin).EventLoop(0xc00033c0f0) D:/workspace/workspace/core/gi/renderwin.go:603 +0x125 created by cogentcore.org/core/gi.(*RenderWin).GoStartEventLoop in goroutine 1 D:/workspace/workspace/core/gi/renderwin.go:557 +0xa5

kkoreilly commented 5 months ago

Thanks! I will look into this further.

ddkwork commented 5 months ago

goosi.HandleRecover = goosi.HandleRecoverPanic is not a fix for the issue; it will just help me get more information about it. I can not reproduce this crash, so I need you to put that line in a core program, run it, get it to crash, and then send me the stack trace. Thanks!

There were very few crashes today, I crashed more than 10 times the day before yesterday, but I feel like it's a memory leak today, because I didn't observe the process memory usage of the task manager before today. In order to reproduce the memory leak and vulkan's host memory overflow error, I think we can mock the following scenario: create a table widget, and add 50,000 rows to the table in a Ctrip without setting a delay, and force scrolling to the bottom of the table for each additional row.

ddkwork commented 5 months ago
Details

<<<---------------<<<---------------<<<---------------<<< HTTP/1.1 200 OK Transfer-Encoding: chunked Connection: keep-alive Content-Type: application/x-javascript Date: Wed, 07 Feb 2024 10:22:09 GMT Etag: W/"65a73aee-1ad1" Last-Modified: Wed, 17 Jan 2024 02:26:54 GMT Server: BWS Strict-Transport-Security: max-age=31536000 Tracecode: 25703484672827727114020718 Vary: Accept-Encoding ---------------------------------------------------------------------------------------------------------------------------------------- panic: vulkan error: vulkan error: out of host memory (-1) [recovered] panic: vulkan error: vulkan error: out of host memory (-1) goroutine 39 [running]: cogentcore.org/core/goosi.HandleRecoverPanic({0x7ff6427921a0, 0xc000b63610}) D:/workspace/workspace/core/goosi/recover.go:85 +0x9a cogentcore.org/core/gi.(*RenderWin).EventLoop.func1() D:/workspace/workspace/core/gi/renderwin.go:589 +0x24 panic({0x7ff6427921a0?, 0xc000b63610?}) C:/Users/Admin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.windows-amd64/src/runtime/panic.go:770 +0x132 cogentcore.org/core/vgpu.IfPanic(...) D:/workspace/workspace/core/vgpu/errors.go:39 cogentcore.org/core/vgpu.(*Surface).ConfigSwapchain(0xc0012228f0) D:/workspace/workspace/core/vgpu/surface.go:254 +0x906 cogentcore.org/core/vgpu.(*Surface).ReConfigSwapchain(0xc0012228f0) D:/workspace/workspace/core/vgpu/surface.go:302 +0x25 cogentcore.org/core/vgpu.(*Surface).AcquireNextImage(0xc0012228f0) D:/workspace/workspace/core/vgpu/surface.go:347 +0x105 cogentcore.org/core/vgpu/vdraw.(*Drawer).StartDraw(0xc000286908, 0x0) D:/workspace/workspace/core/vgpu/vdraw/draw.go:234 +0xa7 cogentcore.org/core/gi.(*RenderWin).DrawScenes(0xc00115c000) D:/workspace/workspace/core/gi/renderwin.go:1036 +0x262 cogentcore.org/core/gi.(*RenderWin).RenderWindow(0xc00115c000) D:/workspace/workspace/core/gi/renderwin.go:1000 +0x399 cogentcore.org/core/gi.(*RenderWin).HandleWindowEvents(0xc00115c000, {0x7ff643fa0290, 0xc001151ea0}) D:/workspace/workspace/core/gi/renderwin.go:651 +0x565 cogentcore.org/core/gi.(*RenderWin).HandleEvent(0xc00115c000, {0x7ff643fa0290, 0xc001151ea0}) D:/workspace/workspace/core/gi/renderwin.go:636 +0xe5 cogentcore.org/core/gi.(*RenderWin).EventLoop(0xc00115c000) D:/workspace/workspace/core/gi/renderwin.go:603 +0x125 created by cogentcore.org/core/gi.(*RenderWin).GoStartEventLoop in goroutine 1 D:/workspace/workspace/core/gi/renderwin.go:557 +0xa5 进程 已完成,退出代码为 2

ddkwork commented 5 months ago
package main

//go:generate core generate

import (
    "cogentcore.org/core/gi"
    "cogentcore.org/core/giv"
    "cogentcore.org/core/icons"
)

type TableStruct struct { //gti:add
    Icon       icons.Icon
    IntField   int `default:"2"`
    FloatField float32
    StrField   string
    File       gi.Filename
}

func main() {
    tsttable := make([]*TableStruct, 0)
    b := gi.NewBody("leak")
    tv := giv.NewTableView(b, "tv")
    tv.SetReadOnly(true)
    tv.SetSlice(&tsttable)

    go func() {
        for i := 0; i < 100000; i++ {
            tsttable = append(tsttable, &TableStruct{IntField: i, FloatField: float32(i) / 10.0})
            tv.SetSlice(&tsttable)
    if len(tsttable) > 0 {
            tv.ScrollToIdx(len(tsttable) - 1)
        }
        }

    }()

    b.RunMainWindow()
}

![Uploading screenshots.gif…]()

Details

GOROOT=C:\Users\Admin\go\pkg\mod\golang.org\toolchain@v0.0.1-go1.22.0.windows-amd64 #gosetup GOPATH=C:\Users\Admin\go #gosetup C:\Users\Admin\go\pkg\mod\golang.org\toolchain@v0.0.1-go1.22.0.windows-amd64\bin\go.exe build -o C:\Users\Admin\AppData\Local\JetBrains\GoLand2023.3\tmp\GoLand\___go_build_github_com_ddkwork_workspace_leak.exe github.com/ddkwork/workspace/leak #gosetup C:\Users\Admin\AppData\Local\JetBrains\GoLand2023.3\tmp\GoLand\___go_build_github_com_ddkwork_workspace_leak.exe panic: vulkan error: vulkan error: out of host memory (-1) ----- START OF STACK TRACE: ----- goroutine 38 [running]: runtime/debug.Stack() C:/Users/Admin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.windows-amd64/src/runtime/debug/stack.go:24 +0x5e cogentcore.org/core/goosi.HandleRecoverBase({0x7ff6714b8560, 0xc002769170}) D:/workspace/workspace/core/goosi/recover.go:50 +0x4b cogentcore.org/core/gi.HandleRecover({0x7ff6714b8560, 0xc002769170}) D:/workspace/workspace/core/gi/recover.go:26 +0x4d cogentcore.org/core/gi.(*RenderWin).EventLoop.func1() D:/workspace/workspace/core/gi/renderwin.go:589 +0x24 panic({0x7ff6714b8560?, 0xc002769170?}) C:/Users/Admin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.windows-amd64/src/runtime/panic.go:770 +0x132 cogentcore.org/core/vgpu.IfPanic(...) D:/workspace/workspace/core/vgpu/errors.go:39 cogentcore.org/core/vgpu.(*Surface).ConfigSwapchain(0xc000221ad0) D:/workspace/workspace/core/vgpu/surface.go:254 +0x906 cogentcore.org/core/vgpu.(*Surface).ReConfigSwapchain(0xc000221ad0) D:/workspace/workspace/core/vgpu/surface.go:302 +0x25 cogentcore.org/core/vgpu.(*Surface).AcquireNextImage(0xc000221ad0) D:/workspace/workspace/core/vgpu/surface.go:347 +0x105 cogentcore.org/core/vgpu/vdraw.(*Drawer).StartDraw(0xc000348008, 0x0) D:/workspace/workspace/core/vgpu/vdraw/draw.go:234 +0xa7 cogentcore.org/core/gi.(*RenderWin).DrawScenes(0xc000380000) D:/workspace/workspace/core/gi/renderwin.go:1036 +0x262 cogentcore.org/core/gi.(*RenderWin).RenderWindow(0xc000380000) D:/workspace/workspace/core/gi/renderwin.go:1000 +0x399 cogentcore.org/core/gi.(*RenderWin).HandleWindowEvents(0xc000380000, {0x7ff671a047e8, 0xc002760ee0}) D:/workspace/workspace/core/gi/renderwin.go:651 +0x565 cogentcore.org/core/gi.(*RenderWin).HandleEvent(0xc000380000, {0x7ff671a047e8, 0xc002760ee0}) D:/workspace/workspace/core/gi/renderwin.go:636 +0xe5 cogentcore.org/core/gi.(*RenderWin).EventLoop(0xc000380000) D:/workspace/workspace/core/gi/renderwin.go:603 +0x125 created by cogentcore.org/core/gi.(*RenderWin).GoStartEventLoop in goroutine 1 D:/workspace/workspace/core/gi/renderwin.go:557 +0xa5 ----- END OF STACK TRACE ----- 2024/02/07 04:44:54 SAVED CRASH LOG TO C:\Users\Admin\AppData\Roaming\leak\crash-logs\crash_2024-02-07_04-44-54 进程 已完成,退出代码为 -1073740940 (0xC0000374)

ddkwork commented 4 months ago

I've finally found a way to reproduce the bug every time: minimizing the main window. However, I have the impression that in addition to this operation, there are other operations that can also cause this bug, such as not moving the main window for a long time, and then pulling the scroll bar, and there are several other operations that I can't remember clearly, and there seem to be many ways to trigger this bug, but not all of them work. In addition, after a commit, the selected row seems to become stuttering or has a noticeable delay. More test scenarios are to dynamically populate slices, tables, maps, trees and other data collection widgets in Ctrip and refresh or scroll operations, like a task manager, and at the same time can adjust the global theme or something, along with these operations, you will find a lot of panic.

ddkwork commented 4 months ago
Details

GOROOT=C:\Users\Admin\go\pkg\mod\golang.org\toolchain@v0.0.1-go1.22.0.windows-amd64 #gosetup GOPATH=C:\Users\Admin\go #gosetup C:\Users\Admin\go\pkg\mod\golang.org\toolchain@v0.0.1-go1.22.0.windows-amd64\bin\go.exe build -o C:\Users\Admin\AppData\Local\JetBrains\GoLand2023.3\tmp\GoLand\___go_build_cogentcore_org_cogent_taskmanager.exe cogentcore.org/cogent/taskmanager #gosetup C:\Users\Admin\AppData\Local\JetBrains\GoLand2023.3\tmp\GoLand\___go_build_cogentcore_org_cogent_taskmanager.exe panic: vulkan error: vulkan error: out of host memory (-1) [recovered] panic: vulkan error: vulkan error: out of host memory (-1) goroutine 20 [running]: cogentcore.org/core/goosi.HandleRecoverPanic({0x7ff6857889a0, 0xc0030b8ca0}) D:/workspace/workspace/core/goosi/recover.go:85 +0x9a cogentcore.org/core/gi.(*RenderWin).EventLoop.func1() D:/workspace/workspace/core/gi/renderwin.go:589 +0x24 panic({0x7ff6857889a0?, 0xc0030b8ca0?}) C:/Users/Admin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.windows-amd64/src/runtime/panic.go:770 +0x132 cogentcore.org/core/vgpu.IfPanic(...) D:/workspace/workspace/core/vgpu/errors.go:39 cogentcore.org/core/vgpu.(*Surface).ConfigSwapchain(0xc00031cbb0) D:/workspace/workspace/core/vgpu/surface.go:254 +0x906 cogentcore.org/core/vgpu.(*Surface).ReConfigSwapchain(0xc00031cbb0) D:/workspace/workspace/core/vgpu/surface.go:302 +0x25 cogentcore.org/core/vgpu.(*Surface).AcquireNextImage(0xc00031cbb0) D:/workspace/workspace/core/vgpu/surface.go:347 +0x105 cogentcore.org/core/vgpu/vdraw.(*Drawer).StartDraw(0xc00036c008, 0x0) D:/workspace/workspace/core/vgpu/vdraw/draw.go:234 +0xa7 cogentcore.org/core/gi.(*RenderWin).DrawScenes(0xc0002ce690) D:/workspace/workspace/core/gi/renderwin.go:1036 +0x262 cogentcore.org/core/gi.(*RenderWin).RenderWindow(0xc0002ce690) D:/workspace/workspace/core/gi/renderwin.go:1000 +0x399 cogentcore.org/core/gi.(*RenderWin).HandleWindowEvents(0xc0002ce690, {0x7ff685cdab50, 0xc0003710a0}) D:/workspace/workspace/core/gi/renderwin.go:651 +0x565 cogentcore.org/core/gi.(*RenderWin).HandleEvent(0xc0002ce690, {0x7ff685cdab50, 0xc0003710a0}) D:/workspace/workspace/core/gi/renderwin.go:636 +0xe5 cogentcore.org/core/gi.(*RenderWin).EventLoop(0xc0002ce690) D:/workspace/workspace/core/gi/renderwin.go:603 +0x125 created by cogentcore.org/core/gi.(*RenderWin).GoStartEventLoop in goroutine 1 D:/workspace/workspace/core/gi/renderwin.go:557 +0xa5 进程 已完成,退出代码为 2

screenshots

kkoreilly commented 4 months ago

For me, running your example code on macOS results in a different panic, panic: interface conversion: ki.Ki is nil, not *gi.Label, and minimizing the window causes no problems. I will test this on Windows later today and get back to you then; once I can reproduce the bug, I will work on fixing it.

ddkwork commented 4 months ago

For me, running your example code on macOS results in a different panic, panic: interface conversion: ki.Ki is nil, not *gi.Label, and minimizing the window causes no problems. I will test this on Windows later today and get back to you then; once I can reproduce the bug, I will work on fixing it.

The issue mentioned here was again triggered by the demo https://github.com/cogentcore/core/discussions/858

kkoreilly commented 4 months ago

That issue is a symptom of another problem, and the solution is not to guard every assertion. I will look into this further.

kkoreilly commented 4 months ago

I can not reproduce the vulkan error by using your example code, minimizing the main window, or resizing the window a lot. I can not debug this issue until I can reproduce it, so it would be great if you could find a deterministic way to reproduce it.

ddkwork commented 4 months ago

I can not reproduce the vulkan error by using your example code, minimizing the main window, or resizing the window a lot. I can not debug this issue until I can reproduce it, so it would be great if you could find a deterministic way to reproduce it.

Please link to my machine via code with me or remote software, this is the only way I can reproduce it every time

kkoreilly commented 4 months ago

Can you go to your Windows settings and copy and paste your device specifications and Windows specifications? Also, can you run vulkaninfo --summary and then copy and paste the output of that? That information will help me figure out what is going on.

ddkwork commented 4 months ago

vulkaninfo --summary

C:\Users\Admin\Desktop>vulkaninfo --summary WARNING: [Loader Message] Code 0 : ReadDataFilesInRegistry: Registry lookup failed to get layer manifest files.

VULKANINFO

Vulkan Instance Version: 1.2.176

Instance Extensions: count = 11

VK_EXT_debug_report : extension revision 10 VK_EXT_debug_utils : extension revision 2 VK_EXT_swapchain_colorspace : extension revision 4 VK_KHR_device_group_creation : extension revision 1 VK_KHR_external_fence_capabilities : extension revision 1 VK_KHR_external_memory_capabilities : extension revision 1 VK_KHR_external_semaphore_capabilities : extension revision 1 VK_KHR_get_physical_device_properties2 : extension revision 2 VK_KHR_get_surface_capabilities2 : extension revision 1 VK_KHR_surface : extension revision 25 VK_KHR_win32_surface : extension revision 5

Instance Layers: count = 0

Devices:

GPU0: apiVersion = 4202690 (1.2.194) driverVersion = 1655787 (0x1943eb) vendorID = 0x8086 deviceID = 0x9a40 deviceType = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU deviceName = Intel(R) Iris(R) Xe Graphics driverID = DRIVER_ID_INTEL_PROPRIETARY_WINDOWS driverName = Intel Corporation driverInfo = Intel driver conformanceVersion = 1.2.6.1 GPU1: apiVersion = 4202690 (1.2.194) driverVersion = 1655787 (0x1943eb) vendorID = 0x8086 deviceID = 0x9a40 deviceType = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU deviceName = Intel(R) Iris(R) Xe Graphics driverID = DRIVER_ID_INTEL_PROPRIETARY_WINDOWS driverName = Intel Corporation driverInfo = Intel driver conformanceVersion = 1.2.6.1

C:\Users\Admin\Desktop>

kkoreilly commented 4 months ago

Thank you for the information, I will try to reproduce the crash on a Windows computer with an integrated GPU and a lower Vulkan SDK version.

ddkwork commented 4 months ago

Thank you for the information, I will try to reproduce the crash on a Windows computer with an integrated GPU and a lower Vulkan SDK version.

Device name DESKTOP-QEKGQEC Processor 11th Gen Intel(R) Core(TM) i7-1160G7 @ 1.20GHz 2.11 GHz Installed RAM 16.0 GB (15.8 GB usable) Device ID 39AB8C5A-810D-4404-9128-38EFFAB964CC Product ID 00330-80000-00000-AA310 System type 64-bit operating system, x64-based processor Pen and touch Pen and touch support with 10 touch points

Edition Windows 11 Pro Version 23H2 Installed on ‎11/‎6/‎2023 OS build 22631.2506 Experience Windows Feature Experience Pack 1000.22677.1000.0

ddkwork commented 4 months ago

If the environment configuration is difficult to reproduce, please use anydesk to link to my machine, this panic happens several times a day on average, I tried to find a way to upgrade Vulkan, but the official website of my tablet does not provide these custom operations, as long as a series of hardware such as unofficial drivers and sound cards are installed, there will be problems

https://consumer.huawei.com/cn/laptops/matebook-e-2022/

kkoreilly commented 4 months ago

I will consider that after I try the other Windows computer, which I plan to do tomorrow.

kkoreilly commented 4 months ago

I didn't have enough time to try this today, but I will try it tomorrow.

kkoreilly commented 4 months ago

Can you try my new fix for the Vulkan panic that I implemented in fb9da93cb1f97362caa37939348ee49a3f823e8a?

ddkwork commented 4 months ago

Hello, I did a further judgment on the size of the swap chain in another place, otherwise it will be forced to quit by some mysterious signal from the CGO. Now I don't panic anymore, but the interface doesn't seem to draw anymore after a certain amount of time, maybe you can easily change it, please link to my machine and take a look. 1957149762

---Original--- From: @.> Date: Mon, Feb 19, 2024 02:22 AM To: @.>; Cc: @.**@.>; Subject: Re: [cogentcore/core] panic: vulkan error: vulkan error: out of hostmemory (-1) (Issue #868)

Can you try my new fix for the Vulkan panic that I implemented in fb9da93?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ddkwork commented 4 months ago

Can you try my new fix for the Vulkan panic that I implemented in fb9da93?

func (sf *Surface) AcquireNextImage() uint32 {
    // Read sf.Surface capabilities
    var surfaceCapabilities vk.SurfaceCapabilities
    IfPanic(NewError(vk.GetPhysicalDeviceSurfaceCapabilities(sf.GPU.GPU, sf.Surface, &surfaceCapabilities)))
    surfaceCapabilities.Deref()

    dev := sf.Device.Device
    for {
        vk.WaitForFences(dev, 1, []vk.Fence{sf.RenderFence}, vk.True, vk.MaxUint64)
        vk.ResetFences(dev, 1, []vk.Fence{sf.RenderFence})

        // Setup swapchain parameters
        var swapchainSize vk.Extent2D
        surfaceCapabilities.CurrentExtent.Deref()
        if surfaceCapabilities.CurrentExtent.Width == vk.MaxUint32 {
            w, h := sf.Format.Size32()
            swapchainSize.Width = w
            swapchainSize.Height = h
        } else {
            swapchainSize = surfaceCapabilities.CurrentExtent
        }

        if swapchainSize.Width == 0 || swapchainSize.Height == 0 {
            //vk.WaitForFences(dev, 1, []vk.Fence{sf.RenderFence}, vk.True, vk.MaxUint64)
            //vk.ResetFences(dev, 1, []vk.Fence{sf.RenderFence})
            continue //todo add a chan when window is not mini and continue loop,last it should be working
        }

        var idx uint32
        ret := vk.AcquireNextImage(dev, sf.Swapchain, vk.MaxUint64, sf.ImageAcquired, vk.NullFence, &idx)
        switch ret {
        case vk.ErrorOutOfDate, vk.Suboptimal:
            sf.ReConfigSwapchain()
            if Debug {
                fmt.Printf("vgpu.Surface.AcquireNextImage, new format: %#v\n", sf.Format)
            }
            continue // try again
        case vk.Success:
            return idx
        default:
            IfPanic(NewError(ret))
            return idx
        }
    }
}
kkoreilly commented 4 months ago

Did you try the latest version first? It may have fixed the CGO signal. If it didn't, then I can debug on your computer soon.

ddkwork commented 4 months ago

Tried it

---Original--- From: @.> Date: Mon, Feb 19, 2024 09:19 AM To: @.>; Cc: @.**@.>; Subject: Re: [cogentcore/core] panic: vulkan error: vulkan error: out of hostmemory (-1) (Issue #868)

Did you try the latest version first? It may have fixed the CGO signal. If it didn't, then I can debug on your computer soon.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kkoreilly commented 4 months ago

OK, I will be able to debug this on your computer either later today or tomorrow.

ddkwork commented 4 months ago

OK, I will be able to debug this on your computer either later today or tomorrow.

Here ret := vk. AcquireNextImage(dev, sf. swap chain, vk.) MaxUint64, sq. ft. ImageAcquired, vk. NullFence, &idx) will cause signal arrived during external code execution, then I have a logic: before this code we determine the size of the Swapchain if it is 0, we assume that the window is minimized or the minimize button is clicked, and in this state an infinite loop occurs: signal arrived during external code execution, I've tried to determine that the Swapchain size is 0 and the same result is to execute continue, then we need to pass a chan outside to tell it if it's minimized, if yes, pause the rendering, but I'm not sure if func (sf *Surface) AcquireNextImage() uint32 is in a separate goroutines, if not if we add select{} code after might make the program freeze, if it is: we just tell it in chan: this is not a minimized behavior, and then proceed to AcquireNextImage. I don't know if this disguised logic is feasible, and I've also observed the log of window events, and features such as minimized flags seem to be passed correctly.

ddkwork commented 4 months ago

from gpt: Yes, when the window is minimized, it is usually necessary to release the Vulkan swap chain. Swap chains are a mechanism used to display images on the surface of a window, and when the window is minimized, the swap chain usually needs to be released to avoid wasting resources and wasting system performance.

Releasing a swap chain typically requires the following steps:

  1. Stop the rendering loop: that is, stop the rendering and processing of the swap chain image.
  2. Release Swap Chain Images: Clean up and release all allocated swap chain images.
  3. Destroy the swap chain: For the Vulkan API, you need to destroy the swap chain object.
  4. Recreate the swap chain: When the window recovers from the minimized state, the swap chain needs to be recreated to ensure that it can be rendered again.

These steps ensure that when the window is minimized, the swap chain resources are freed up to avoid wasting resources, and that the swap chain can be recreated if needed so that it can render properly when the window is restored.

kkoreilly commented 4 months ago

I will think about this more and work on fixing this tomorrow. The minimization with the - (minus) button works, right? It is only the taskbar minimization that doesn't work?

ddkwork commented 4 months ago

I will think about this more and work on fixing this tomorrow. The minimization with the - (minus) button works, right? It is only the taskbar minimization that doesn't work?

No, I've tried it several times, and both minimizing the button and minimizing via the taskbar panics

kkoreilly commented 4 months ago

I thought it used to work after my previous fix a week ago?

ddkwork commented 4 months ago

This is indeed a mysterious panic, and the previous fix has indeed been normal for a week or so

---Original--- From: @.> Date: Mon, Feb 19, 2024 14:37 PM To: @.>; Cc: @.**@.>; Subject: Re: [cogentcore/core] panic: vulkan error: vulkan error: out of hostmemory (-1) (Issue #868)

I thought it used to work after my previous fix a week ago?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kkoreilly commented 4 months ago

It only panics in the async example, not the demo, right?

ddkwork commented 4 months ago

I'm sorry I don't know when I fell asleep, and the demo does, but it's not easy to switch between minimization and restore without stopping, but I managed to make it happen

---Original--- From: @.> Date: Tue, Feb 20, 2024 03:51 AM To: @.>; Cc: @.**@.>; Subject: Re: [cogentcore/core] panic: vulkan error: vulkan error: out of hostmemory (-1) (Issue #868)

It only panics in the async example, not the demo, right?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kkoreilly commented 4 months ago

I am ready to debug this on your computer whenever you are.

ddkwork commented 4 months ago

yes

---Original--- From: @.> Date: Tue, Feb 20, 2024 08:58 AM To: @.>; Cc: @.**@.>; Subject: Re: [cogentcore/core] panic: vulkan error: vulkan error: out of hostmemory (-1) (Issue #868)

I am ready to debug this on your computer whenever you are.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ddkwork commented 4 months ago

I am ready to debug this on your computer whenever you are.

1957149762

kkoreilly commented 4 months ago

Can you try the potential fix I implemented in ea3e656?

ddkwork commented 4 months ago

Can you try the potential fix I implemented in ea3e656?

{E6005FD3-1365-4ad5-89DE-087E5F8EC4C9}

ddkwork commented 4 months ago

I finally upgraded vulkan from 1.2x to 1.3 version through the latest version of the graphics card driver, although it is not the latest version, but this is the latest version that comes with the official driver, it is a 681mb installation package, I looked for a long time to find it, because the official website of Huawei tablet did not guide me to the correct link to the official website of Intel, it only provides a computer manager to operate this thing, however it only provides vulkan1.2 version. But after manually upgrading the VK version, the problem is still the same, you can check the VK related information on my computer, then it can't be a bug of the VK driver, I feel, this host memory error is a mysterious error, the other day you said that the example under the goosi package needs additional code to make it work, so you can write it, let the code of that demo be logical, maybe we can see other errors through it, what do you think?

ddkwork commented 4 months ago

Because installing the graphics driver on the previous Win11 system prompted me to install net7,However, it failed to install,In desperation, I reinstalled the system,After successfully installing net7 and the graphics driver on the new system,The current system and driver are clean environments。

ddkwork commented 4 months ago

my system iso is from https://windowsxlite.com/micro11/

kkoreilly commented 4 months ago

As I said previously, I now understand what the cause of the issue is, and I should be able to fix it. I am surprised that my previous fix did not work, and I will debug it more on your computer later today. Please do not try to fix it by changing your graphics drivers, as even if that did fix it, I want to fix the underlying cause of the issue so that this does not happen for anyone again.

ddkwork commented 4 months ago

ok

---Original--- From: @.> Date: Tue, Feb 20, 2024 23:40 PM To: @.>; Cc: @.**@.>; Subject: Re: [cogentcore/core] panic: vulkan error: vulkan error: out of hostmemory (-1) (Issue #868)

As I said previously, I now understand what the cause of the issue is, and I should be able to fix it. I am surprised that my previous fix did not work, and I will debug it more on your computer later today. Please do not try to fix it by changing your graphics drivers, as even if that did fix it, I want to fix the underlying cause of the issue so that this does not happen for anyone again.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kkoreilly commented 4 months ago

I am ready to debug this on your computer whenever you are.

ddkwork commented 4 months ago

yes 1670379990

---Original--- From: @.> Date: Wed, Feb 21, 2024 07:54 AM To: @.>; Cc: @.**@.>; Subject: Re: [cogentcore/core] panic: vulkan error: vulkan error: out of hostmemory (-1) (Issue #868)

I am ready to debug this on your computer whenever you are.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kkoreilly commented 4 months ago

I am ready.

ddkwork commented 4 months ago

Hi, please go back to my machine again, it seems that the memory is leaking