Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncating stackcalls and line numbers in eventLog.txt #20

Open
kevinv9 opened this issue Apr 9, 2021 · 2 comments
Open

Truncating stackcalls and line numbers in eventLog.txt #20

kevinv9 opened this issue Apr 9, 2021 · 2 comments

Comments

@kevinv9
Copy link

kevinv9 commented Apr 9, 2021

When doing fulldebugmode in fastmm5 (4 does as well) and checking for leaks the lines seem to be truncated to a fix length in the memorymanager_eventlog.txt
E.G. below
0000000004292815 [FormEmailPropertyViewer.pas][FormEmailPropertyViewer][_ZN23Formemailpropertyviewer22TvwEmailPropertyViewer13UpdateDisplayEv][5
0000000001E3087E [DataEntryUtils.pas][DataEntryUtils][_ZN14Dataentryutils12TEntryReader12GetIsManagedEv][273]
0000000004295080 [FormEmailPropertyViewer.pas][FormEmailPropertyViewer][_ZN23Formemailpropertyviewer22TvwEmailPropertyViewer17DoContainerChangeE
0000000002E6F999 [UViewManager.pas][UViewManager][_ZN12Uviewmanager11TViewerBase16DoContainerEventEPN9Container10TContainerERKN10Dataevents16TDa

pleriche pushed a commit that referenced this issue Apr 9, 2021
@pleriche
Copy link
Owner

pleriche commented Apr 9, 2021

Hi Kevin,

I have increased the size of the line buffer from 128 to 224 characters (a 75% increase). FastMM preallocates a fixed size buffer for stack traces, so the line lengths currently have to be limited.

Please let me know whether the maximum line length is now sufficient.

Thanks,
Pierre

@kevinv9
Copy link
Author

kevinv9 commented Apr 11, 2021

Thanks Pierre for the quick turnaround it helps a ton.
The longest line I am finding so far in Generics at 223
00000000053C05EF [System.Generics.Collections.pas][MetaData][_ZN6System8Generics11Collections6TArray12BinarySearchIPN8Metadata15TMetaDataRecordEEEbPKT_iS8_RiNS_15DelphiInterfaceINS0_8Defaults12IComparer__1IS8_EEEEii][1043]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants