*** mr_jrt2 has joined #maemo-ssu | 00:39 | |
*** mr_jrt2 has quit IRC | 00:42 | |
*** mr_jrt has quit IRC | 00:43 | |
*** mr_jrt has joined #maemo-ssu | 00:44 | |
*** trbs has quit IRC | 00:55 | |
*** thopiekar has joined #maemo-ssu | 00:58 | |
*** thopiekar has quit IRC | 01:36 | |
*** arcean has quit IRC | 01:52 | |
*** krayon has joined #maemo-ssu | 03:08 | |
*** I-C-Wiener has quit IRC | 03:30 | |
SpacedOut | Any modest source code experts? I'm trying to track down an assert/crash, modest_msg_view_window_disconnect_signals(ModestWindow *self), GTK_WINDOW (self); fails because self isn't a GTK_WINDOW | 03:49 |
---|---|---|
SpacedOut | (modest:10122): GLib-GObject-WARNING **: invalid cast from `ModestMsgViewWindow' to `GtkWindow' | 03:50 |
*** the_lord has joined #maemo-ssu | 04:05 | |
Sc0rpius | you get a crash with that? | 04:21 |
Sc0rpius | that should be around line 4223 in src/widgest/modest-msg-view-window.c | 04:23 |
Sc0rpius | a ModestWindow is a HildonStackableWindow, and that's a GtkWindow. | 04:26 |
Sc0rpius | unless you're running Modest in something different than Maemo 5 | 04:26 |
SpacedOut | X-windows desktop, which from what I can trace is "typedef GtkVBox ModestWindowParent;" | 04:27 |
Sc0rpius | oh well yeah, if you're not running that in Maemo, then you're using the GTK, which hasn't been very well tested, and a lot of things won't work well | 04:27 |
Sc0rpius | a GtkVBox is not a GTKWindow. | 04:28 |
Sc0rpius | but why would you want to run Modest in something else that is not Maemo? | 04:28 |
SpacedOut | The crash is it can't get the header_view which means it can't remove the observer and bombs much later when the observers are called but that one has been cleaned up, but not registered. | 04:28 |
Sc0rpius | well the line is: | 04:29 |
SpacedOut | Because it's much easier to debug and test. | 04:29 |
Sc0rpius | parent_window = gtk_window_get_transient_for (GTK_WINDOW (self)); | 04:30 |
Sc0rpius | well but you'll be frustrated | 04:30 |
Sc0rpius | because 90% of the crashes you will get won't happen in Hildon | 04:30 |
Sc0rpius | like that one. | 04:31 |
Sc0rpius | because that line works perfectly under Hildon desktop | 04:31 |
Sc0rpius | are you trying to debug the Modest crashes in your N900? | 04:31 |
SpacedOut | So, modest only used to be cross platform? | 04:32 |
Sc0rpius | what I found so far is that they are not in Modest, but in Tinymail, and they are all memory allocation crashes | 04:32 |
Sc0rpius | it is cross platform but nobody ever test it in pure GTK | 04:32 |
Sc0rpius | so it doesn't work very well | 04:32 |
Sc0rpius | I rarely get a crash on Modest | 04:33 |
Sc0rpius | because it seems that to get a crash on Modest in N900 you have to have a lot of things loaded at the time | 04:33 |
Sc0rpius | and I don't use the phone that much | 04:33 |
SpacedOut | Yes I've had crashes on N900, but this one wasn't it, but I can't do much useful debugging with this one in place. | 04:33 |
Sc0rpius | but *all* my crashes, are in a free() somewhere (several places actually) in tinymail | 04:33 |
SpacedOut | I think the most repeatable N900 crash is select a list or e-mails, move them to another mailbox, and keep flicking the list while it is processing. | 04:35 |
Sc0rpius | you can start by analizing your core dumps | 04:36 |
Sc0rpius | but I bet all your crashes are in camel functions | 04:36 |
Sc0rpius | like camel_folder_info_new() or camel_message_info_load() or camel_du() | 04:37 |
Sc0rpius | but none in Modest. | 04:37 |
Sc0rpius | all in tinymail | 04:37 |
Sc0rpius | all my crashes are like this: | 04:44 |
Sc0rpius | #3 0x4256e798 in imap_rescan (folder=0x5f1498, exists=916, ex=0x43515da0) at camel-imap-folder.c:1283 | 04:44 |
Sc0rpius | 1283g_free (resp); | 04:44 |
Sc0rpius | always, always in a free() | 04:44 |
Sc0rpius | and always in camel functions | 04:44 |
SpacedOut | There's a lot of ugly inconsistent code in there from what I've seen. | 04:45 |
Sc0rpius | it's terrible, yeah | 04:49 |
Sc0rpius | I think the only way to fix this is to use valgrind or something | 05:01 |
SpacedOut | (You are talking about your issue?) Surprisingly (to me) modest runs pretty cleanly in valgrind. | 05:02 |
*** M4rtinK has quit IRC | 05:04 | |
Sc0rpius | you already tried that? | 05:08 |
Sc0rpius | maybe the g_slices are the problem | 05:08 |
SpacedOut | I'm not following. I assume you aren't talking about the GTK_WINDOW issue, and the flicking while moving isn't something I'm looking into right now. | 05:11 |
Sc0rpius | no I'm not talking about that issue | 05:13 |
Sc0rpius | I'm talking about all people's crashes with Modest | 05:13 |
Sc0rpius | they are all related to memory issues, people have sent core dumps and it's all the same for everybody | 05:13 |
Sc0rpius | actually if you use scratchbox, run Modest there, and try to that flicking while moving I'm sure it won't crash | 05:13 |
Sc0rpius | because it'll have more available memory in scratchbox than it has in the N900 | 05:14 |
SpacedOut | What's g_slices? | 05:15 |
Sc0rpius | well that "memory optimization" method from GLib some applications use and Modest move from normal g_malloc() calls to g_slice_alloc() sometime | 05:16 |
Sc0rpius | and I think that's when the crashes started | 05:16 |
Sc0rpius | all memory handling in Modest/Tinymail is using g_slice_new(), g_slice_alloc(), etc | 05:16 |
Sc0rpius | you can disable using env variable G_SLICE=always-malloc | 05:17 |
SpacedOut | tinymail is multithreaded, I wonder if it's all properly thread safe fro g_slice*? | 05:18 |
*** krayon has left #maemo-ssu | 06:35 | |
*** krayon has joined #maemo-ssu | 06:38 | |
*** krayon has left #maemo-ssu | 06:48 | |
*** krayon has joined #maemo-ssu | 06:49 | |
*** krayon has left #maemo-ssu | 06:50 | |
*** mr_jrt has quit IRC | 07:23 | |
*** DocScrutinizer has quit IRC | 07:29 | |
*** DocScrutinizer has joined #maemo-ssu | 07:29 | |
*** Sc0rpius has quit IRC | 07:35 | |
*** GonzoTheGreat has joined #maemo-ssu | 07:36 | |
*** krayon has joined #maemo-ssu | 07:36 | |
*** the_lord has quit IRC | 07:37 | |
DocScrutinizer | just as I'm curious: is that related to CSSU in any way? | 07:42 |
Stskeeps | modest fixes? damn straight | 07:44 |
Stskeeps | :P | 07:44 |
* Stskeeps is tired of his modest crashing after activating cssu | 07:44 | |
DocScrutinizer | mhm, so obviously it doesn't belong into CSSU, when it causes crashes | 07:46 |
DocScrutinizer | CSSU isn't extras-experimental | 07:47 |
Stskeeps | modest/email client is hardly extras ;) | 07:48 |
DocScrutinizer | I.E. CSSU is not the place for green sw to ripen | 07:49 |
Stskeeps | btw, who actually governs CSSU? | 07:49 |
DocScrutinizer | nobody, a PITA | 07:49 |
Stskeeps | ok, rather, who has commit rights | 07:50 |
DocScrutinizer | merry anarchy | 07:50 |
DocScrutinizer | seems that's MohammadAG | 07:50 |
DocScrutinizer | probably some other devels as well | 07:50 |
DocScrutinizer | selection on what goes to CSSU and what not seems based on /dev/urandom | 07:51 |
DocScrutinizer | but I promised to never ever speak up agin regarding that topic, unless I sent a mail to community or devel or whatever | 07:53 |
Stskeeps | (why don't you?) | 07:53 |
DocScrutinizer | Stskeeps: would you be willing to mentor in another effort to re-implement hald-addon-bme? | 07:54 |
Stskeeps | don't change the topic :P and no - take toggles' code and work out any mods to the bme code in m5 | 07:55 |
DocScrutinizer | (why don't I) haven't got my shit together yet | 07:55 |
DocScrutinizer | that'S the first bit of mentoring already :-) | 07:55 |
MohammadAG | Stskeeps, +cssu-developers on gitorious | 07:55 |
DocScrutinizer | mo moh | 07:56 |
Stskeeps | DocScrutinizer: i can hint but it takes too much time out of my side projects to hold someone's hand :P | 07:56 |
MohammadAG | morning DocScrutinizer :) | 07:56 |
DocScrutinizer | Stskeeps: sure, absolutely on same page about that | 07:57 |
DocScrutinizer | I'll do the hands-holding ;-) just need your expertise in concentrated form every now and then | 07:58 |
DocScrutinizer | some name dropping like you did ^^^ | 07:58 |
DocScrutinizer | now maybe add an URL to that, and we got a starting point for anybody willing to tackle that bme replacement project on maemo | 07:59 |
DocScrutinizer | I'd push, prod, and review in my welknown charming way ;-D | 08:00 |
DocScrutinizer | Stskeeps: am I right you dropped the whole hal cruft in meego, at least for battery monitoring? | 08:03 |
Stskeeps | hal wasn't in meego in the first place | 08:04 |
MohammadAG | I'd guess they dropped hal, it's using 2.6.37 | 08:04 |
DocScrutinizer | thought as much | 08:04 |
DocScrutinizer | MohammadAG: you know this "toggles code" Stskeeps mentioned? | 08:07 |
Stskeeps | http://gitorious.org/mer-toggles/hald-addon-bme | 08:07 |
DocScrutinizer | know where to find that is | 08:07 |
DocScrutinizer | aaah thanks | 08:07 |
DocScrutinizer | duh, a nice manageable 600 lines, plus a bit of .h | 08:09 |
*** wmarone has quit IRC | 08:10 | |
*** wmarone has joined #maemo-ssu | 08:10 | |
* DocScrutinizer feels tempted to dive into fixing this code for maemo himself | 08:13 | |
*** GonzoTheGreat has quit IRC | 09:33 | |
*** psycho_oreos has joined #maemo-ssu | 09:38 | |
*** I-C-Wiener has joined #maemo-ssu | 09:51 | |
*** trbs has joined #maemo-ssu | 10:12 | |
*** I-C-Wiener has quit IRC | 10:19 | |
*** m0use has quit IRC | 10:58 | |
*** m0use has joined #maemo-ssu | 11:46 | |
*** andre__ has joined #maemo-ssu | 12:31 | |
*** andre__ has joined #maemo-ssu | 12:31 | |
*** BCMM has joined #maemo-ssu | 12:46 | |
*** BCMM has quit IRC | 13:30 | |
*** BCMM has joined #maemo-ssu | 13:40 | |
*** krayon has left #maemo-ssu | 13:44 | |
*** lizardo has joined #maemo-ssu | 13:51 | |
*** Stskeeps has quit IRC | 14:00 | |
*** Stskeeps has joined #maemo-ssu | 14:04 | |
*** Stskeeps has joined #maemo-ssu | 14:04 | |
*** M4rtinK has joined #maemo-ssu | 15:07 | |
*** M4rtinK has quit IRC | 15:12 | |
*** m0use has joined #maemo-ssu | 15:15 | |
*** M4rtinK has joined #maemo-ssu | 15:27 | |
*** mr_jrt has joined #maemo-ssu | 15:36 | |
*** gregoa has quit IRC | 15:42 | |
*** gregoa has joined #maemo-ssu | 15:46 | |
*** the_lord has joined #maemo-ssu | 15:51 | |
*** psycho_oreos has quit IRC | 17:29 | |
*** m0use has quit IRC | 18:16 | |
*** I-C-Wiener has joined #maemo-ssu | 19:13 | |
*** Guest27795 has quit IRC | 19:27 | |
*** Guest27795 has joined #maemo-ssu | 19:31 | |
*** Sc0rpius has joined #maemo-ssu | 20:21 | |
*** Sc0rpius has quit IRC | 20:25 | |
*** Sc0rpius has joined #maemo-ssu | 20:29 | |
*** BCMM has quit IRC | 20:45 | |
*** bsdmaniak has joined #maemo-ssu | 20:50 | |
*** m0use has joined #maemo-ssu | 21:17 | |
*** m0use has quit IRC | 21:19 | |
*** Guest27795 has quit IRC | 21:40 | |
*** Guest27795 has joined #maemo-ssu | 21:45 | |
*** thopiekar has joined #maemo-ssu | 21:50 | |
*** BCMM has joined #maemo-ssu | 22:59 | |
*** BCMM has quit IRC | 22:59 | |
*** BCMM has joined #maemo-ssu | 22:59 | |
*** anidel has joined #maemo-ssu | 23:03 | |
*** bsdmaniak has quit IRC | 23:21 | |
*** arcean has joined #maemo-ssu | 23:39 | |
*** m0use has joined #maemo-ssu | 23:39 | |
*** thopiekar has quit IRC | 23:39 | |
*** chainsawbike has quit IRC | 23:41 | |
*** chainsawbike has joined #maemo-ssu | 23:42 | |
*** chainsawbike has quit IRC | 23:46 | |
*** thopiekar has joined #maemo-ssu | 23:47 | |
*** chainsawbike has joined #maemo-ssu | 23:47 | |
*** Jade has quit IRC | 23:48 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!