[Github-comments] [geany/geany] Closing a project with a large number of files open causes Geany to terminate (#2809)

elextr notifications at xxxxx
Wed May 12 23:40:17 UTC 2021


Thanks for providing the detail of Geany and the system, but next time you can just copy from the top of "Help->Debug messages" to get it all in one go.

Certainly opening and closing projects with large numbers of files works for other people.

First thought from segfault is running out of memory, you don't say how big your files are, but in-memory files use about 2.5-3 times their size to accommodate highlighting and symbols and editing space.  And at save it takes a copy from the buffer to make it contiguous, and if encoding to non-UTF-8 makes another copy which is then written.  Whilst these copies are freed that doesn't mean the memory system will re-use them, that depends on their sizes.  So memory use is likely to grow during saving many files.

Since it doesn't happen to anyone else, can you run Geany under gdb and when it fails get a backtrace `bt` and paste here, note you may need to press return several times to get all of it.

The apparent leaving files open (actually they are closed and opened again) happens when the user session file list matches the project session file list.  See #267.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2809#issuecomment-840171570
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210512/fcadf5b0/attachment.htm>


More information about the Github-comments mailing list