stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.57k stars 1.54k forks source link

Possible Memory Leak #1162

Open lczvd opened 1 year ago

lczvd commented 1 year ago

Hi,

I just noticed something on version 0.13.3.

The Xcode Instruments is reporting the following leak:

leak

By the way, I'm using Xcode 14.0.1 and the app is running on iOS 14.6.

Any ideas on the possible source of this issue?

Thanks in advance!

jberkel commented 1 year ago

In the screenshot it looks like the allocation is happening inside SQLCipher, though? Maybe your app is leaking connections.

nathanfallet commented 1 year ago

More information is required. Can you provide a reproducible example?

davifmarcelino commented 1 year ago

Hi, I have the same issue so I will give you guys the stack trace of 3 sqlcipher_mem_malloc leak in the project

AllLeaks

the first leak

Leak_1

the second leak

Leak_2-1 Leak_2-2

and the last leak

Leak_3-1 Captura de Tela 2023-01-19 às 2 22 42 PM
raulperesgoes commented 1 year ago

Do you need more info to work on that? Is there any other way we could help you?