Skip to content

Warp leaks memory #1130

@dmilith

Description

@dmilith

Discord username (optional)

dmilith#1284

Describe the bug

I ran `sudo leaks -readonly $WARP_PID` (since I can't show more because of enabled SIP).

The full output is 444069 lines long so here is the head of it:


Process:         stable [64840]
Path:            /Applications/Warp.app/Contents/MacOS/stable
Load Address:    0x1044f8000
Identifier:      dev.warp.Warp-Stable
Version:         0.1.0 (20220415.230636)
Code Type:       ARM64
Platform:        macOS
Parent Process:  launchd [1]

Date/Time:       2022-04-20 00:13:29.012 +0200
Launch Time:     2022-04-20 00:02:37.486 +0200
OS Version:      macOS 12.3.1 (21E258)
Report Version:  7
Analysis Tool:   /Applications/Xcode.app/Contents/Developer/usr/bin/leaks
Analysis Tool Version:  Xcode 13.3.1 (13E500a)

Physical footprint:         815.5M
Physical footprint (peak):  962.3M
----

leaks Report Version: 4.0
Process 64840: 1113707 nodes malloced for 513765 KB
Process 64840: 438517 leaks for 28112240 total leaked bytes.

    438517 (26.8M) << TOTAL >>

      118524 (7.19M) ROOT CYCLE: 0x120180000 [65536]
         26457 (1.52M) ROOT CYCLE: 0x12ba64400 [7168]
            14139 (918K) ROOT CYCLE: 0x12b6851e0 [960]
               14031 (912K) ROOT CYCLE: 0x12ba72000 [1536]
                  13959 (907K) unaligned +47:  --> ROOT CYCLE: 0x120190000 [98304]
                  …


### To Reproduce

Steps to reproduce:
1. Launch Warp
2. Run leaks
3. Use Warp



### Expected behaviour

_No response_

### Screenshots

_No response_

### Operating System

MacOS

### OS Version

12.3.1

### Additional context

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions