codelite 9.2 fails to exit in Linuxmint 18

General questions regarding the usage of CodeLite
codex
CodeLite Enthusiast
Posts: 14
Joined: Fri Aug 19, 2016 9:05 am
Genuine User: Yes
IDE Question: C++
Contact:

codelite 9.2 fails to exit in Linuxmint 18

Post by codex » Fri Aug 19, 2016 9:19 am

It always ask "Save perspective and exit?" even if clicking the right top exit button immediately after launch, whatever choice(Save&exit or Exit without saving) is made, it doesn't exit. Please have a check, thank you!

DavidGH
CodeLite Plugin
Posts: 583
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by DavidGH » Fri Aug 19, 2016 1:47 pm

Hi,

Which flavour of Mint are you using? It works for me on Mint 18, both mate and cinnamon. I ticked the "Remember my answer..." checkbox when the dialog showed, and wasn't shown it on subsequent exits. Did you tick that box?

If it still fails, try temporarily renaming your ~/.codelite so you start with a clean configuration, and try again.

Regards,

David

codex
CodeLite Enthusiast
Posts: 14
Joined: Fri Aug 19, 2016 9:05 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by codex » Mon Aug 22, 2016 6:50 am

DavidGH wrote:Hi,

Which flavour of Mint are you using? It works for me on Mint 18, both mate and cinnamon. I ticked the "Remember my answer..." checkbox when the dialog showed, and wasn't shown it on subsequent exits. Did you tick that box?

If it still fails, try temporarily renaming your ~/.codelite so you start with a clean configuration, and try again.

Regards,

David
I use MATE and it's not a problem with that checkbox, if I start it in terminal command, it can exit normally, but if starting codelite by clicking its icon in LinuxMint menu, it can't exit. Maybe there're any extra arguments in the fault scenario?

codex
CodeLite Enthusiast
Posts: 14
Joined: Fri Aug 19, 2016 9:05 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by codex » Mon Aug 22, 2016 6:56 am

I checked the launcher properties, if setting type to "Application in Terminal", it exits fine, otherwise the default "Application" type conducts the exit failure.

DavidGH
CodeLite Plugin
Posts: 583
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by DavidGH » Mon Aug 22, 2016 1:40 pm

My 'Properties' dialog looks like this:
codelite-properties.png
The ~/Desktop/codelite.desktop file says:

Code: Select all

[Desktop Entry]
Name=CodeLite
Exec=codelite %f
Icon=codelite
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true
Keywords=IDE;development;programming;
Yet my CodeLite behaves normally. Is your file different?

Where did you get your CodeLite from? Did you download it from our site, or build it yourself, or...?
You do not have the required permissions to view the files attached to this post.

codex
CodeLite Enthusiast
Posts: 14
Joined: Fri Aug 19, 2016 9:05 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by codex » Tue Aug 23, 2016 9:33 am

I downloaded the installation file via http://repos.codelite.org/ubuntu-9.2/po ... _amd64.deb and double click to install.

cat codelite.desktop
#!/usr/bin/env xdg-open

[Desktop Entry]
Name=CodeLite
Exec=codelite %f
Icon=codelite
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true
Keywords=IDE;development;programming;
You do not have the required permissions to view the files attached to this post.

DavidGH
CodeLite Plugin
Posts: 583
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by DavidGH » Tue Aug 23, 2016 1:36 pm

Strange. I can't explain why it behaves differently here. If you discover the reason, please let us know!

Meanwhile, changing to "Application in Terminal" provides an easy workaround.

codex
CodeLite Enthusiast
Posts: 14
Joined: Fri Aug 19, 2016 9:05 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by codex » Wed Aug 24, 2016 11:33 am

I got some log from /var/log/syslog when exiting codelite, can anyone help analyse it? Thanks!

Aug 24 15:28:03 duwei-VirtualBox ntp[1482]: lockfile creation failed: exceeded maximum number of lock attempts
Aug 24 15:28:03 duwei-VirtualBox ntp[1566]: lockfile creation failed: exceeded maximum number of lock attempts
Aug 24 15:28:03 duwei-VirtualBox ntpd[2321]: ntpd 4.2.8p4@1.3265-o Fri Apr 8 20:58:07 UTC 2016 (1): Starting
Aug 24 15:28:03 duwei-VirtualBox ntpd[2321]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 108:114
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: proto: precision = 0.098 usec (-23)
Aug 24 15:28:03 duwei-VirtualBox ntp[1566]: ...done.
Aug 24 15:28:03 duwei-VirtualBox systemd[1]: Started LSB: Start NTP daemon.
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen and drop on 0 v6wildcard [::]:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen normally on 2 lo 127.0.0.1:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen normally on 3 enp0s3 192.168.2.22:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen normally on 4 lo [::1]:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen normally on 5 enp0s3 [fe80::1848:d7ec:a29f:d337%2]:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listening on routing socket on fd #22 for interface updates
Aug 24 15:28:05 duwei-VirtualBox ntpd[2323]: Soliciting pool server 194.157.230.37
Aug 24 15:28:06 duwei-VirtualBox ntpd[2323]: Soliciting pool server 86.60.160.70
Aug 24 15:28:07 duwei-VirtualBox ntpd[2323]: Soliciting pool server 108.61.56.35
Aug 24 15:28:08 duwei-VirtualBox ntpd[2323]: Soliciting pool server 185.31.136.34
Aug 24 15:28:09 duwei-VirtualBox ntpd[2323]: Soliciting pool server 91.189.94.4

codex
CodeLite Enthusiast
Posts: 14
Joined: Fri Aug 19, 2016 9:05 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by codex » Wed Aug 24, 2016 12:22 pm

codex wrote:I got some log from /var/log/syslog when exiting codelite, can anyone help analyse it? Thanks!

Aug 24 15:28:03 duwei-VirtualBox ntp[1482]: lockfile creation failed: exceeded maximum number of lock attempts
Aug 24 15:28:03 duwei-VirtualBox ntp[1566]: lockfile creation failed: exceeded maximum number of lock attempts
Aug 24 15:28:03 duwei-VirtualBox ntpd[2321]: ntpd 4.2.8p4@1.3265-o Fri Apr 8 20:58:07 UTC 2016 (1): Starting
Aug 24 15:28:03 duwei-VirtualBox ntpd[2321]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 108:114
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: proto: precision = 0.098 usec (-23)
Aug 24 15:28:03 duwei-VirtualBox ntp[1566]: ...done.
Aug 24 15:28:03 duwei-VirtualBox systemd[1]: Started LSB: Start NTP daemon.
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen and drop on 0 v6wildcard [::]:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen normally on 2 lo 127.0.0.1:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen normally on 3 enp0s3 192.168.2.22:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen normally on 4 lo [::1]:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listen normally on 5 enp0s3 [fe80::1848:d7ec:a29f:d337%2]:123
Aug 24 15:28:03 duwei-VirtualBox ntpd[2323]: Listening on routing socket on fd #22 for interface updates
Aug 24 15:28:05 duwei-VirtualBox ntpd[2323]: Soliciting pool server 194.157.230.37
Aug 24 15:28:06 duwei-VirtualBox ntpd[2323]: Soliciting pool server 86.60.160.70
Aug 24 15:28:07 duwei-VirtualBox ntpd[2323]: Soliciting pool server 108.61.56.35
Aug 24 15:28:08 duwei-VirtualBox ntpd[2323]: Soliciting pool server 185.31.136.34
Aug 24 15:28:09 duwei-VirtualBox ntpd[2323]: Soliciting pool server 91.189.94.4
Got the root cause, codelite must be doing network operations at exiting, my LinuxMint is connected to LAN and need proxy for internet access, therefore it hangs when exiting. If I disconnect the network, it can exit normally.

DavidGH
CodeLite Plugin
Posts: 583
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: codelite 9.2 fails to exit in Linuxmint 18

Post by DavidGH » Wed Aug 24, 2016 12:52 pm

Well caught :)

Post Reply