Re: VS: QWebView keeps crashing in maemo qt4.5.3
Antonio Aloisio wrote: Hi, Could you show us a backtrace? Antonio On Mon, Dec 28, 2009 at 1:05 PM, mikko.j.te...@nokia.com mailto:mikko.j.te...@nokia.com wrote: What is the value of myurl, it should contain protocol and domain name. If it is wrong nothing will be shown. -- Mikk0 Terh0 - Alkuperäinen viesti - greetings; I am having a very strange problem with the QWebView Component. It keeps crashing when it loads about 39% of the web page!! I created a dialog that contains a webView instance, and loaded a page just like the Qt Documentation says : ui-webView-load(QUrl(MY_URL)); nothing more !!! i didn't even connect to any of its signals. When running my application on the phone , it simply crashes (it works perfectly fine in the desktop ). By accident I tried to run it on the phone as root It worked fine with no crashes!!! What root user has got more than a normal user (besides higher permission) ??? Does the permission thing have something to do with my issue?? I forgot to say that i made my application a debian package - in order to run it on the phone - and used the maemo-optify 0.1 application to generate maemo-friendly debian package. So, the path to my executable is now: /opt/maemo/usr/bin/ , but i don't seem to see somthing wrong with permissions in that folder. Should I enable write permissions to that folder to others(non-roots) ? Does webkit write any sort of temporary files to the directory/any direcotry and when it fails it crashes my application?? my phone's libqt4 version -as said in dpkg -l libqt4* : Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii libqt4-core 4.5.3~git20090723-0maemo4+0m5 Qt 4 core module ii libqt4-dbus 4.5.3~git20090723-0maemo4+0m5 Qt 4 D-Bus module un libqt4-dev none (no description available) ii libqt4-gui 4.5.3~git20090723-0maemo4.2Qt 4 GUI module ii libqt4-network 4.5.3~git20090723-0maemo4.2Qt 4 network module ii libqt4-opengl 4.5.3~git20090723-0maemo4.2Qt 4 OpenGL module ii libqt4-phonon 4.5.3~git20090723-0maemo4.2Qt 4 Phonon Libraries ii libqt4-sql 4.5.3~git20090723-0maemo4+0m5 Qt 4 SQL module ii libqt4-sql-sqlite 4.5.3~git20090723-0maemo4+0m5 Qt 4 SQLite plugin ii libqt4-webkit 4.5.3~git20090723-0maemo4.2Qt 4 WebKit module ii libqt4-xml 4.5.3~git20090723-0maemo4+0m5 Qt 4 XML module which i find pretty strange (mixed versions: 4.5.3~git20090723-0maemo4.2 and 4.5.3~git20090723-0maemo4+0m5 ) can it be the reason? (the new packages -maemo4.2 - were installed automatically when installing the qt-webkit component) ___ maemo-developers mailing list maemo-developers@maemo.org mailto:maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org mailto:maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers -- Ted Turner http://www.brainyquote.com/quotes/authors/t/ted_turner.html - Sports is like a war without the killing. I think I know where the problem is : I tried my application on the phone with the latest stable version of qt libs (4.5.3~git20090723-0maemo4+0m5). It didn't crash at all the problem occuered when using the test version of qt 4.5.3 libs (4.5.3~git20090723-0maemo4.2 ) which I found here: http://qt4.garage.maemo.org/fremantle.html I got to the url with my phone browser, and installed the packages. I turns out that the testing version of libqt4-webkit crashes with some urls (like MY_URL unfortenately and google.com !!). also
Receive the +/- hardware buttons on N900
Hi, I have code for receiving +/- hardware buttons which works for the devices before N900. What must I do for the N900 to get this code working again? Thanks a lot Detlef ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Daemonizing Qt app
Greetings; I am trying to create a background application (starts with system startup, and keeps running in the background ) . the only solution i found is to make it as daemon. searching the internet about how to create a daemon http://www.enderunix.org/docs/eng/daemon.php , I built a small app around my findings. Qt Code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 #include stdlib.h #include stdio.h #include fcntl.h #include signal.h #include unistd.h #include globaldefs.h void log_message(char *filename,char *message) { FILE *logfile; logfile=fopen(filename,a); if(!logfile) return; fprintf(logfile,%s\n,message); fclose(logfile); } /** a signal handler for the Linux signals sent to daemon process, for more signals, refer to http://www.comptechdoc.org/os/linux/programming/linux_pgsignals.html */ void signal_handler(int sig) { switch(sig) { case SIGHUP: log_message(LOG_FILE,hangup signal catched); break; case SIGTERM: log_message(LOG_FILE,terminate signal catched); break; } } /** create background process out of the application, source code taken from: http://www.enderunix.org/docs/eng/daemon.php with some minor modifications */ void init_daemon() { int i,lfp; char str[10]; if(getppid()==1) return; /* already a daemon */ i=fork(); if (i0) exit(1); /* fork error */ if (i0) exit(0); /* parent exits */ /* child (daemon) continues */ setsid(); /* obtain a new process group */ for (i=getdtablesize();i=0;--i) close(i); /* close all descriptors */ i=open(/dev/null,O_RDWR); dup(i); dup(i); /* handle standart I/O */ umask(027); /* set newly created file permissions */ chdir(RUNNING_DIR); /* change running directory */ lfp=open(LOCK_FILE,O_RDWR|O_CREAT,0640); if (lfp0) exit(1); /* can not open */ if (lockf(lfp,F_TLOCK,0)0) exit(0); /* can not lock */ /* first instance continues */ sprintf(str,%d\n,getpid()); write(lfp,str,strlen(str)); /* record pid to lockfile */ signal(SIGCHLD,SIG_IGN); /* ignore child */ signal(SIGTSTP,SIG_IGN); /* ignore tty signals */ signal(SIGTTOU,SIG_IGN); signal(SIGTTIN,SIG_IGN); signal(SIGHUP,signal_handler); /* catch hangup signal */ signal(SIGTERM,signal_handler); /* catch kill signal */ } int main(int argc, char *argv[]) { // first, create the daemon init_daemon(); QCoreApplication http://doc.trolltech.com/latest/QCoreApplication.html a(argc, argv); return a.exec(); } the code doesn't handle signals (for example, a termination signal). So, when I run it from the command line, and try to kill it, it refuses to get killed!!! the only way to kill the process is to restart the phone !! I really suspect that creating a QCoreApplication instance in the main method forks a new process other than the one i forked in the init_daemom() method. But i can't find any clue . On the other hand, i can't init my qt app without creating a QCoreApplication instance -says qt documentation. When I try to debug the application. it fails to fork a new process thus exit() is issued and the debugging session terminates. I am using Qt 4.5 and the phone's libqt version is 4.5.3 What am I missing? can there be anything done to make my Qt application run as a daemon process ?? Am i using a wrong way to do so? thanks in advance; ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Daemonizing Qt app
On Dec 31, 2009, at 16:42, ibrahim wrote: case SIGHUP: log_message(LOG_FILE,hangup signal catched); Sorry to be pedantic, but the past tense of 'catch' is 'caught'. 'Catched' might be confused with 'cached' which is not what you want. Jeremiah ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Receive the +/- hardware buttons on N900
http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Porting_Software/Porting_Existing_GTK%2B_Application_to_Maemo_5#Remapping_volume_keys Best Regards, Faheem On Thu, Dec 31, 2009 at 3:34 PM, ds d...@physik.de wrote: Hi, I have code for receiving +/- hardware buttons which works for the devices before N900. What must I do for the N900 to get this code working again? Thanks a lot Detlef ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: New optification issues in extras-testing
Hi, Am Mittwoch 30 Dezember 2009 schrieb Alberto Mardegan: This is my goal, but please move them in the 32GB storage. :-) Oh, i see what you mean. Urgh ... that's a tricky one as moving them for one app will break the other one. Regards, Till ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Testing kernel modules for fremantle using emulation?
Hi everyone, I need to port openafs to fremantle and the Nokia N900, but I have no N900 to test on. How can I emulate the a full device with full networking so I can verify that the openafs kernel module and other parts are working correctly? I have a N800 if that matters. Thanks, Jason ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers