Cannot use or create workspace in certain directory

General questions regarding the usage of CodeLite
fnar
CodeLite Enthusiast
Posts: 17
Joined: Fri Jun 18, 2010 1:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Cannot use or create workspace in certain directory

Post by fnar »

Codelite version: 2.5.3.4113 (built from sources)
Operating system: Ubuntu 10.04


I killed Codelite using the system monitor and since then i am unable to use or create a new workspace in a certain directory. Codelite just freezes and you have to kill it using the system monitor.
Every other workspace in different directories works perfectly fine.

I tried to delete the complete folder and create it new, still not working.
I also tried to uninstall Codelite completely and reinstall it, same result.

There must be some data saved somewhere from Codelite that is not deleted when uninstalling. Can you tell me where to look please?
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by eranif »

What is the error that you are experiencing?
usually when codelite has such errors, you will see the error code string in the 'Trace' tab

Can you see any error?

Eran
Make sure you have read the HOW TO POST thread
fnar
CodeLite Enthusiast
Posts: 17
Joined: Fri Jun 18, 2010 1:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by fnar »

There is no error to see, as soon as i press the button to create or load the workspace codelite freezes completely (no response to mouse clicks or keyboard commands, gui is frozen and does not update)
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by eranif »

can you do this please:

- start codelite from the command line
- once it is freeze -> attach debugger to it:

gdb -p <codelite PID>

and print here the backtrace

Thanks,
Eran
Make sure you have read the HOW TO POST thread
fnar
CodeLite Enthusiast
Posts: 17
Joined: Fri Jun 18, 2010 1:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by fnar »

#0 0x005b4422 in __kernel_vsyscall ()
#1 0x0416ece6 in nanosleep () from /lib/tls/i686/cmov/libc.so.6
#2 0x0416eb10 in sleep () from /lib/tls/i686/cmov/libc.so.6
#3 0x0072f8b8 in sqlite3UnixSleep () from /usr/lib/codelite/libwxsqlite3u.so
#4 0x0077cf1a in sqliteDefaultBusyCallback ()
from /usr/lib/codelite/libwxsqlite3u.so
#5 0x0077cf61 in sqlite3InvokeBusyHandler ()
from /usr/lib/codelite/libwxsqlite3u.so
#6 0x00732339 in pager_wait_on_lock () from /usr/lib/codelite/libwxsqlite3u.so
#7 0x007328e6 in pager_write_pagelist ()
from /usr/lib/codelite/libwxsqlite3u.so
#8 0x007345ea in sqlite3PagerCommitPhaseOne ()
from /usr/lib/codelite/libwxsqlite3u.so
#9 0x00738254 in sqlite3BtreeCommitPhaseOne ()
from /usr/lib/codelite/libwxsqlite3u.so
#10 0x00742a86 in vdbeCommit () from /usr/lib/codelite/libwxsqlite3u.so
#11 0x0074309a in sqlite3VdbeHalt () from /usr/lib/codelite/libwxsqlite3u.so
#12 0x00746096 in sqlite3VdbeExec () from /usr/lib/codelite/libwxsqlite3u.so
#13 0x00744abb in sqlite3Step () from /usr/lib/codelite/libwxsqlite3u.so
#14 0x00744c9a in sqlite3_step () from /usr/lib/codelite/libwxsqlite3u.so
#15 0x00763ff5 in sqlite3_exec () from /usr/lib/codelite/libwxsqlite3u.so
#16 0x00726215 in wxSQLite3Database::ExecuteUpdate(char const*) ()
from /usr/lib/codelite/libwxsqlite3u.so
---Type <return> to continue, or q <return> to quit---
#17 0x00726358 in wxSQLite3Database::ExecuteUpdate(wxString const&) ()
from /usr/lib/codelite/libwxsqlite3u.so
#18 0x00ad2028 in TagsStorageSQLite::CreateSchema() ()
from /usr/lib/codelite/libcodeliteu.so
#19 0x00ad2aed in TagsStorageSQLite::OpenDatabase(wxFileName const&) ()
from /usr/lib/codelite/libcodeliteu.so
#20 0x00a7f126 in TagsManager::OpenDatabase(wxFileName const&) ()
from /usr/lib/codelite/libcodeliteu.so
#21 0x002519c5 in Workspace::CreateWorkspace(wxString const&, wxString const&, wxString&) () from /usr/lib/codelite/libpluginu.so
#22 0x08242a87 in Manager::CreateWorkspace(wxString const&, wxString const&) ()
#23 0x081f69d0 in Frame::OnProjectNewWorkspace(wxCommandEvent&) ()
#24 0x08205557 in Frame::OnStartPageEvent(wxCommandEvent&) ()
#25 0x007d2a9f in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_baseu-2.8.so.0
#26 0x00871379 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#27 0x00872424 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
from /usr/lib/libwx_baseu-2.8.so.0
#28 0x00872523 in wxEvtHandler::ProcessEvent(wxEvent&) ()
from /usr/lib/libwx_baseu-2.8.so.0
#29 0x00871819 in wxEvtHandler::ProcessPendingEvents() ()
from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#30 0x007d2de9 in wxAppConsole::ProcessPendingEvents() ()
from /usr/lib/libwx_baseu-2.8.so.0
#31 0x01027fbf in wxAppBase::ProcessIdle() ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#32 0x00f7b423 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#33 0x06a77661 in ?? () from /lib/libglib-2.0.so.0
#34 0x06a795e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#35 0x06a7d2d8 in ?? () from /lib/libglib-2.0.so.0
#36 0x06a7d817 in g_main_loop_run () from /lib/libglib-2.0.so.0
#37 0x066893c9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#38 0x00f94c78 in wxEventLoop::Run() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#39 0x01027e3e in wxAppBase::MainLoop() ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#40 0x01027a31 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#41 0x0080c7aa in wxEntry(int&, wchar_t**) ()
from /usr/lib/libwx_baseu-2.8.so.0
#42 0x0080c987 in wxEntry(int&, char**) () from /usr/lib/libwx_baseu-2.8.so.0
#43 0x0809c67b in main ()
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by eranif »

Just a quick question:

do you have write permission for that directory?

Eran
Make sure you have read the HOW TO POST thread
fnar
CodeLite Enthusiast
Posts: 17
Joined: Fri Jun 18, 2010 1:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by fnar »

Directory owner is my local user.
Permission is set to drwxrwxrwx.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by eranif »

Is this directory located under network file system? sqlite is known to have issues with NFS
It looks like sqlite (used by codelite) cant get a lock on that file

Eran
Make sure you have read the HOW TO POST thread
fnar
CodeLite Enthusiast
Posts: 17
Joined: Fri Jun 18, 2010 1:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by fnar »

Yes this is a network mount.

I just found out why it is not working anymore.

When we started using linux we used nfs4 mounts for our network drives, because a program we use had problems with samba mounts.
With nfs4 Codelite worked fine, creating workspaces on network drives was no problem.

When we finally fixed the problem with samba we switched to cifs mounts.
Now existing workspaces on the network drives can still be used with Codelite, but you cannot create new ones.

I tried nfs4 to test this and i could create the workspace.

Is there any chance to make this work with the cifs mounts?
fnar
CodeLite Enthusiast
Posts: 17
Joined: Fri Jun 18, 2010 1:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot use or create workspace in certain directory

Post by fnar »

I found a workaround for this problem.

The actual problem is the workspace. If you create your workspace somewhere local, you can afterwards create projects in this workspace on a network drive without a problem.
Post Reply