Languages

Menu
Sites
Language
Cannot debug application

Hi,

I'm porting an iOS/Android app to Tizen and I'm unable to debug the application. I can succesfully run the application which run for a while and eventually crash on an assert as the porting is still in progress. But when I try to debug it does not load. The debug screen show running for a second and then show terminated. I'm getting away with using debug log for now but solving this issue would make my life a lot easier.

I'm able to debug a sample application so it must be something related to my own app.

The problem is that I cannot get any useful error information to work on. Both Console and log doen't produce any useful output. Their output is identical to the sample app which start the debugging and stop at main. 

For sake of completness I'm putting here the output of console and log anyway.

Console:

Reading symbols from /tizen/Proto/Debug/Proto.exe...done.
warning: Could not load shared library symbols for 169 libraries, e.g. /usr/lib/libsys-assert.so.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for /usr/lib/libslp_devman_plugin.so.
Do you need "set solib-search-path" or "set sysroot"?
 
Log:
 
08-20 17:37:58.395 : ERROR / Tizen::App ( 2662 : 2662 ) : static int Tizen::App::_AppLifecycleManager::LaunchCallback(int, void*)(928) > Cannot acquire app for 24439.
08-20 17:38:01.995 : ERROR / Tizen::Base ( 24442 : 24442 ) : result Tizen::Base::String::SubString(int, Tizen::Base::String&) const(1106) > [E_OUT_OF_RANGE] The startIndex(12) MUST be greater than or equal to 0, and less than the length of this string(12).
08-20 17:38:02.000 : ERROR / Tizen::Base::Runtime ( 24442 : 24442 ) : static Tizen::Base::Runtime::_EventManager* Tizen::Base::Runtime::_EventManager::GetCurrentEventManager()(292) > [E_OBJ_NOT_FOUND] This is not OSP thread.
08-20 17:38:02.000 : ERROR / Tizen::Base::Runtime ( 24442 : 24442 ) : result Tizen::Base::Runtime::_Event::Initialize()(207) > [E_INVALID_OPERATION] Event manager does not exist.
 
Any suggestion where I can look to find what the real error could be?
The only unique thing about this app is that it include some shared library projects and an application project. All shared library build load and run correctly when I run the application so I don't think that would be the issue.
 
Thanks,
Stefano

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 Replies
wil smith
Check if main() or ospmain() is declared/defined in any of your libraryies, if found remove them
Stefano Zanetti
Thanks for the help, Actually I found a test class in one of the library that still had a main(). Removing that file from the build solved the issue. Thanks! I wonder why that did not affect running the app and it only affected debugging. Anyway now I can "sort of" debug. After 5-6 step through the code I always get the error: "target request failed: Bogus trace status reply from target: timeout" After this error it seems like the only option I have is to stop the debug and restart. I wonder if anyone else had experienced the same issue?
wil smith
Looks the issue is related to communication link. If you can share the error dialogue and console screen shots, it will be useful.
Stefano Zanetti
The issue seems to have faded aways. It was more problematic the first day and then it got more stable. I guess it may be some instability of the SDK or even as simple as some issue on the link cable. Right now it's working fairly well. Thanks a lot for your help