Bug 114456 - MACOS: Small memory leaks when discarding document recovery
Summary: MACOS: Small memory leaks when discarding document recovery
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.0.alpha0+
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Memory
  Show dependency treegraph
 
Reported: 2017-12-14 10:21 UTC by Telesto
Modified: 2019-08-19 07:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (433.46 KB, image/png)
2017-12-14 10:23 UTC, Telesto
Details
A leaking backtrace with symbols (4.06 KB, application/zip)
2018-01-24 14:50 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2017-12-14 10:21:49 UTC
Description:
MACOS: Small memory leaks when discarding document recovery

Steps to Reproduce:
1. Open Writer with multiple (empty) documents
2. Force quite
3. Start the Instruments
4. Choose Memory Leak profile tool
5. Select LibreOffice.app in instdir as target process
6. Click on the record button, LODev is started by the profiling tool
7. Discard the document recovery (and don't save any recovery file)

Actual Results:  
Multiple leaks

Expected Results:
No leaks


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.1.0.0.alpha0+
Build ID: d46dc8e547810208287aab77f0313f1971901464
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2017-12-08_10:35:46
Locale: nl-NL (nl_NL.UTF-8); Calc: group threaded



User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Comment 1 Telesto 2017-12-14 10:23:49 UTC
Created attachment 138437 [details]
Screenshot
Comment 2 Telesto 2017-12-14 10:54:34 UTC
Small addition. I'm rather often noticing small leaks (as in this case) when interacting with the GUI:
_DPSNextEvent
NSEventAuxiliary
NSCopyObject
CGEvent	SkyLight SLTypeCreateInstance
_NSLocalEventObserver	NSEvent ddLocalMonitorForEventsMatchingMask:placement:handler:]

I haven't reported them separately, because the responsible library comes from Apple... Or can this be fixed in the LibreOffice code?
Comment 3 Alex Thurgood 2017-12-15 07:32:08 UTC
(In reply to Telesto from comment #2)
> Small addition. I'm rather often noticing small leaks (as in this case) when
> interacting with the GUI:
> _DPSNextEvent
> NSEventAuxiliary
> NSCopyObject
> CGEvent	SkyLight SLTypeCreateInstance
> _NSLocalEventObserver	NSEvent
> ddLocalMonitorForEventsMatchingMask:placement:handler:]
> 
> I haven't reported them separately, because the responsible library comes
> from Apple... Or can this be fixed in the LibreOffice code?

Yes, I have noticed this too. If it is Apple's code, there probably isn't much we can do. When I tried hunting down some of these via Instruments to the source code, I just ended up in the assembler instructions, so there probably isn't anything we can do. If there is Apple code that we include for which the source is available (e.g. because we have included it in our git repo) then at least we could point out to Apple where the problem might lie, but if it just points to some assembler, I'm assuming we're not going to have access to any sort of other source code. Of course, someone competent enough in disassembly might be able to do something with it, but would that go against Apple's Developer T&Cs ?
Comment 4 Xisco Faulí 2018-01-24 09:32:37 UTC
Hi Telesto,
Are the leaks originally reported still present in master?
Regarding the ones in comment 2, as Alex mentioned, probably there isn't much we can do...

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 5 Telesto 2018-01-24 14:50:15 UTC
Created attachment 139332 [details]
A leaking backtrace with symbols

Repro with
Version: 6.1.0.0.alpha0+
Build ID: d1bc14b318c9a412a761d243085da0895a1aed4a
CPU threads: 4; OS: Mac OS X 10.13.1; UI render: default; 
Locale: nl-NL (nl_US.UTF-8); Calc: group threaded
Comment 6 Xisco Faulí 2018-12-03 15:21:30 UTC
Hi Telesto,
I guess the leaks are still happening on master ?
Comment 7 Xisco Faulí 2019-01-10 12:42:25 UTC
(In reply to Xisco Faulí from comment #6)
> Hi Telesto,
> I guess the leaks are still happening on master ?

Setting to NEEDINFO...
Comment 8 QA Administrators 2019-07-11 02:55:24 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2019-08-19 07:05:52 UTC
Dear Telesto,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp