maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   "Internal error. Application 'Settings' closed." What is the error?... (https://talk.maemo.org/showthread.php?t=54850)

omeriko9 2010-06-01 21:36

"Internal error. Application 'Settings' closed." What is the error?...
 
How can I see the error?

nosa101 2010-06-01 21:43

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
My Nokia?
.


EDIT: Stupid me #carryon

omeriko9 2010-06-01 21:47

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
Quote:

Originally Posted by nosa101 (Post 694769)
My Nokia?
.

My code...

qwerty12 2010-06-01 21:49

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
Can you pastebin the code and how you're compiling it?

omeriko9 2010-06-01 22:03

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
Quote:

Originally Posted by qwerty12 (Post 694784)
Can you pastebin the code and how you're compiling it?

code: http://pastebin.com/E9eEKiB4

Compiling with Madde (unfortunatelly, I need to compile against PR1.2 libs and esbox & scratchbox are un-updatable to PR1.2 for me) with "lib_simple" template, and adding this:

Quote:

CFLAGS += `pkg-config --cflags hildon-1 libosso`
LDFLAGS += `pkg-config --libs hildon-1 libosso`
CFLAGS += `pkg-config --cflags gtk+-2.0`
LDFLAGS += `pkg-config --libs gtk+-2.0`
To the MakeFile.

qwerty12 2010-06-01 22:25

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
OK, took a quick look.

In a Scratchbox with the PR 1.2 SDK installed (dunno what "lib_simple" is, nor how it works), " gcc `pkg-config --cflags hildon-control-panel hildon-1 libosso` -fPIC -c libcallnotify.c && gcc -module -avoid-version -shared -Wl,-soname,libcallnotify.so -o libcallnotify.so libcallnotify.o -lc " created a properly working library. Though, libtool would be a lot better than that.

However, it still crashed because fclose () was being called on a NULL pointer (the file didn't exist) so I moved that inside the if statement that checks for this. (As an aside, you'd probably find g_file_get_contents() easier).

omeriko9 2010-06-01 22:28

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
Quote:

Originally Posted by qwerty12 (Post 694854)
OK, took a quick look.

In a Scratchbox with the PR 1.2 SDK installed (dunno what "lib_simple" is, nor how it works), " gcc `pkg-config --cflags hildon-control-panel hildon-1 libosso` -fPIC -c libcallnotify.c && gcc -module -avoid-version -shared -Wl,-soname,libcallnotify.so -o libcallnotify.so libcallnotify.o -lc " created a properly working library. Though, libtool would be a lot better than that.

However, it still crashed because fclose () was being called on a NULL pointer (the file didn't exist) so I moved that inside the if statement that checks for this. (As an aside, you'd probably find g_file_get_contents() easier).

Thank you!!

A few questions:
First, any chance you can send me the .so file so I can finally update CallNotify?
How did you manage to "catch" the fclose thingy?
What is libtool?

Thanks again!

BTW: did you manage to run this on an N900 or just in scratchbox? because it worked for me in scratchbox as well... but not on the device,

MohammadAG 2010-06-01 22:33

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
A bit off topic (or not, not sure :))
I broke my scratchbox install the other day by trying to make a chroot image.
Tried to install it about 6 times which all failed till I remembered scratchbox uses a mount point
Remove all scratchbox packages installed, rm -rf /scratchbox/*, if you get symlink loops then touch /forcefsck and reboot to fsck /, then redo rm -rf /scratchbox/*.
After that reboot again and run the maemo-scrathcbox script and continue from there.

Hope that helps

qwerty12 2010-06-01 22:34

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
Quote:

Originally Posted by omeriko9 (Post 694860)
Thank you!!

A few questions:
First, any chance you can send me the .so file so I can finally update CallNotify?
How did you manage to "catch" the fclose thingy?
What is libtool?

Thanks again!

No problem :)

http://www.freemoe.org/users/qwerty12/libcallnotify.so

Well, for me, I knew what it was trying to open didn't exist and the rest of your code looked legit so I could only assume that fopen had returned NULL :)

http://en.wikipedia.org/wiki/GNU_Libtool - I can't really explain it properly, but I guess it's a long and complicated script that makes libraries straight from C files. I have no idea how to invoke it on its own actually :o; I use Autotools in my **** and the macros take care of that for me...

Oh, I tested on the device

omeriko9 2010-06-02 06:31

Re: "Internal error. Application 'Settings' closed." What is the error?...
 
MohammadAG - Thanks! I'll try that.

Any idea where can I download Scratchbox for PR1.2 ?
This site doesn't give any useful links for download (or I just can't find it...).


All times are GMT. The time now is 11:46.

vBulletin® Version 3.8.8