Reconcile Project crash

CodeLite installation/troubleshooting forum
Gege34
CodeLite Curious
Posts: 3
Joined: Mon Jul 08, 2019 5:49 pm
Genuine User: Yes
IDE Question: C++
Contact:

Reconcile Project crash

Post by Gege34 »

I use CodeLite IDE 13.0.0 (but same with the previous 12.0.0) on LinuxMint 18 x64

When I use the Reconcile Project option, after some (long) time CodeLite is killed by the OS.
My project consists of 354 .c and .h files

dmesg log:

Code: Select all

[11205.990927] [ pid ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[11205.991239] [29203]  1000 29203  1863934  1287912 11440128        0             0 codelite
[11205.991241] Out of memory: Kill process 29203 (codelite) score 846 or sacrifice child
[11205.991273] Killed process 29203 (codelite) total-vm:7455736kB, anon-rss:5149756kB, file-rss:0kB, shmem-rss:1892kB
[11206.587263] oom_reaper: reaped process 29203 (codelite), now anon-rss:0kB, file-rss:0kB, shmem-rss:1892kB
Is it a know problem or how to have a better idea of what's the problem?

Thank you
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Reconcile Project crash

Post by DavidGH »

Hi,
My project consists of 354 .c and .h files
I often use Reconcile Project on CodeLite itself which, I suspect, has far more files than that. However that's on a machine with plenty of memory and swap; I don't think the oom reaper has ever been needed for anything.

What is your setup? A real machine or a virtual one? How much memory and swap does it have, and how big is tmpfs? And how much of those are free before you start Reconcile Project?

I just did a quick google and found this link about anon-rss. Yours was about 5GB; how does that compare with the available memory?

Regards,

David
Gege34
CodeLite Curious
Posts: 3
Joined: Mon Jul 08, 2019 5:49 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Reconcile Project crash

Post by Gege34 »

I use a VM (Virtualbox) with 6GB of ram. The swap partition is 16GB but not activated.
Before starting the reconcile I have 4.5GB of free memory.

I redo the reconcile with 11GB of memory and activate the 16GB of swap, but it's the same.
This time codelite eat 10GB of ram and start to eat the swap, it use continually 100% of 2 cpu (4 available).
I stop it after 40mn of run because I think it will end up killing by the system.
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Reconcile Project crash

Post by DavidGH »

So it's a real problem, not just a lack of resources.

What happens if you create a new project from one of the templates, and run Reconcile Project on that? If that also hangs it must somehow be a problem with your system.

If it doesn't, that suggests it is something specific to your project e.g. a recursive symlink. Would you be willing to pastebin somewhere (e.g. https://filebin.net) an archive of your project and its files?

Otherwise you could try running CodeLite in a debugger (after installing codelite-dbg too); make it hang, then repeatedly interrupt and look at the backtrace.
Gege34
CodeLite Curious
Posts: 3
Joined: Mon Jul 08, 2019 5:49 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Reconcile Project crash

Post by Gege34 »

By starting a new project with the templaces (the hello word) it's working fine.
Sorry I can't share the project, it's a private project of my company.
I don't find symlink inside my project.

I try to compile the codelite with this wiki but I have a lot of errors:
build.log
You do not have the required permissions to view the files attached to this post.
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Reconcile Project crash

Post by DavidGH »

I suspect you need to install libsqlite3-dev. Other dependencies include libclang-dev, liblldb-dev, libssh-dev or libssh-gcrypt-dev and libhunspell-dev. And of course you need wxWidgets: either self-built or the distro's -dev packages and their dependencies.
Post Reply