IRC log of #maemo-ssu for Monday, 2011-06-20

*** mr_jrt2 has joined #maemo-ssu00:39
*** mr_jrt2 has quit IRC00:42
*** mr_jrt has quit IRC00:43
*** mr_jrt has joined #maemo-ssu00:44
*** trbs has quit IRC00:55
*** thopiekar has joined #maemo-ssu00:58
*** thopiekar has quit IRC01:36
*** arcean has quit IRC01:52
*** krayon has joined #maemo-ssu03:08
*** I-C-Wiener has quit IRC03:30
SpacedOutAny 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_WINDOW03:49
SpacedOut(modest:10122): GLib-GObject-WARNING **: invalid cast from `ModestMsgViewWindow' to `GtkWindow'03:50
*** the_lord has joined #maemo-ssu04:05
Sc0rpiusyou get a crash with that?04:21
Sc0rpiusthat should be around line 4223 in src/widgest/modest-msg-view-window.c04:23
Sc0rpiusa ModestWindow is a HildonStackableWindow, and that's a GtkWindow.04:26
Sc0rpiusunless you're running Modest in something different than Maemo 504:26
SpacedOutX-windows desktop, which from what I can trace is "typedef GtkVBox ModestWindowParent;"04:27
Sc0rpiusoh 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 well04:27
Sc0rpiusa GtkVBox is not a GTKWindow.04:28
Sc0rpiusbut why would you want to run Modest in something else that is not Maemo?04:28
SpacedOutThe 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
Sc0rpiuswell the line is:04:29
SpacedOutBecause it's much easier to debug and test.04:29
Sc0rpius        parent_window = gtk_window_get_transient_for (GTK_WINDOW (self));04:30
Sc0rpiuswell but you'll be frustrated04:30
Sc0rpiusbecause 90% of the crashes you will get won't happen in Hildon04:30
Sc0rpiuslike that one.04:31
Sc0rpiusbecause that line works perfectly under Hildon desktop04:31
Sc0rpiusare you trying to debug the Modest crashes in your N900?04:31
SpacedOutSo, modest only used to be cross platform?04:32
Sc0rpiuswhat I found so far is that they are not in Modest, but in Tinymail, and they are all memory allocation crashes04:32
Sc0rpiusit is cross platform but nobody ever test it in pure GTK04:32
Sc0rpiusso it doesn't work very well04:32
Sc0rpiusI rarely get a crash on Modest04:33
Sc0rpiusbecause it seems that to get a crash on Modest in N900 you have to have a lot of things loaded at the time04:33
Sc0rpiusand I don't use the phone that much04:33
SpacedOutYes 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
Sc0rpiusbut *all* my crashes, are in a free() somewhere (several places actually) in tinymail04:33
SpacedOutI 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
Sc0rpiusyou can start by analizing your core dumps04:36
Sc0rpiusbut I bet all your crashes are in camel functions04:36
Sc0rpiuslike camel_folder_info_new() or camel_message_info_load() or camel_du()04:37
Sc0rpiusbut none in Modest.04:37
Sc0rpiusall in tinymail04:37
Sc0rpiusall my crashes are like this:04:44
Sc0rpius#3  0x4256e798 in imap_rescan (folder=0x5f1498, exists=916, ex=0x43515da0) at camel-imap-folder.c:128304:44
Sc0rpius1283g_free (resp);04:44
Sc0rpiusalways, always in a free()04:44
Sc0rpiusand always in camel functions04:44
SpacedOutThere's a lot of ugly inconsistent code in there from what I've seen.04:45
Sc0rpiusit's terrible, yeah04:49
Sc0rpiusI think the only way to fix this is to use valgrind or something05:01
SpacedOut(You are talking about your issue?)  Surprisingly (to me) modest runs pretty cleanly in valgrind.05:02
*** M4rtinK has quit IRC05:04
Sc0rpiusyou already tried that?05:08
Sc0rpiusmaybe the g_slices are the problem05:08
SpacedOutI'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
Sc0rpiusno I'm not talking about that issue05:13
Sc0rpiusI'm talking about all people's crashes with Modest05:13
Sc0rpiusthey are all related to memory issues, people have sent core dumps and it's all the same for everybody05:13
Sc0rpiusactually if you use scratchbox, run Modest there, and try to that flicking while moving I'm sure it won't crash05:13
Sc0rpiusbecause it'll have more available memory in scratchbox than it has in the N90005:14
SpacedOutWhat's g_slices?05:15
Sc0rpiuswell that "memory optimization" method from GLib some applications use and Modest move from normal g_malloc() calls to g_slice_alloc() sometime05:16
Sc0rpiusand I think that's when the crashes started05:16
Sc0rpiusall memory handling in Modest/Tinymail is using g_slice_new(), g_slice_alloc(), etc05:16
Sc0rpiusyou can disable using env variable G_SLICE=always-malloc05:17
SpacedOuttinymail is multithreaded, I wonder if it's all properly thread safe fro g_slice*?05:18
*** krayon has left #maemo-ssu06:35
*** krayon has joined #maemo-ssu06:38
*** krayon has left #maemo-ssu06:48
*** krayon has joined #maemo-ssu06:49
*** krayon has left #maemo-ssu06:50
*** mr_jrt has quit IRC07:23
*** DocScrutinizer has quit IRC07:29
*** DocScrutinizer has joined #maemo-ssu07:29
*** Sc0rpius has quit IRC07:35
*** GonzoTheGreat has joined #maemo-ssu07:36
*** krayon has joined #maemo-ssu07:36
*** the_lord has quit IRC07:37
DocScrutinizerjust as I'm curious: is that related to CSSU in any way?07:42
Stskeepsmodest fixes? damn straight07:44
Stskeeps:P07:44
* Stskeeps is tired of his modest crashing after activating cssu07:44
DocScrutinizermhm, so obviously it doesn't belong into CSSU, when it causes crashes07:46
DocScrutinizerCSSU isn't extras-experimental07:47
Stskeepsmodest/email client is hardly extras ;)07:48
DocScrutinizerI.E. CSSU is not the place for green sw to ripen07:49
Stskeepsbtw, who actually governs CSSU?07:49
DocScrutinizernobody, a PITA07:49
Stskeepsok, rather, who has commit rights07:50
DocScrutinizermerry anarchy07:50
DocScrutinizerseems that's MohammadAG07:50
DocScrutinizerprobably some other devels as well07:50
DocScrutinizerselection on what goes to CSSU and what not seems based on /dev/urandom07:51
DocScrutinizerbut I promised to never ever speak up agin regarding that topic, unless I sent a mail to community or devel or whatever07:53
Stskeeps(why don't you?)07:53
DocScrutinizerStskeeps: would you be willing to mentor in another effort to re-implement hald-addon-bme?07:54
Stskeepsdon't change the topic :P and no - take toggles' code and work out any mods to the bme code in m507:55
DocScrutinizer(why don't I) haven't got my shit together yet07:55
DocScrutinizerthat'S the first bit of mentoring already :-)07:55
MohammadAGStskeeps, +cssu-developers on gitorious07:55
DocScrutinizermo moh07:56
StskeepsDocScrutinizer: i can hint but it takes too much time out of my side projects to hold someone's hand :P07:56
MohammadAGmorning DocScrutinizer :)07:56
DocScrutinizerStskeeps: sure, absolutely on same page about that07:57
DocScrutinizerI'll do the hands-holding ;-) just need your expertise in concentrated form every now and then07:58
DocScrutinizersome name dropping like you did ^^^07:58
DocScrutinizernow maybe add an URL to that, and we got a starting point for anybody willing to tackle that bme replacement project on maemo07:59
DocScrutinizerI'd push, prod, and review in my welknown charming way ;-D08:00
DocScrutinizerStskeeps: am I right you dropped the whole hal cruft in meego, at least for battery monitoring?08:03
Stskeepshal wasn't in meego in the first place08:04
MohammadAGI'd guess they dropped hal, it's using 2.6.3708:04
DocScrutinizerthought as much08:04
DocScrutinizerMohammadAG: you know this "toggles code" Stskeeps mentioned?08:07
Stskeepshttp://gitorious.org/mer-toggles/hald-addon-bme08:07
DocScrutinizerknow where to find that is08:07
DocScrutinizeraaah thanks08:07
DocScrutinizerduh, a nice manageable 600 lines, plus a bit of .h08:09
*** wmarone has quit IRC08:10
*** wmarone has joined #maemo-ssu08:10
* DocScrutinizer feels tempted to dive into fixing this code for maemo himself08:13
*** GonzoTheGreat has quit IRC09:33
*** psycho_oreos has joined #maemo-ssu09:38
*** I-C-Wiener has joined #maemo-ssu09:51
*** trbs has joined #maemo-ssu10:12
*** I-C-Wiener has quit IRC10:19
*** m0use has quit IRC10:58
*** m0use has joined #maemo-ssu11:46
*** andre__ has joined #maemo-ssu12:31
*** andre__ has joined #maemo-ssu12:31
*** BCMM has joined #maemo-ssu12:46
*** BCMM has quit IRC13:30
*** BCMM has joined #maemo-ssu13:40
*** krayon has left #maemo-ssu13:44
*** lizardo has joined #maemo-ssu13:51
*** Stskeeps has quit IRC14:00
*** Stskeeps has joined #maemo-ssu14:04
*** Stskeeps has joined #maemo-ssu14:04
*** M4rtinK has joined #maemo-ssu15:07
*** M4rtinK has quit IRC15:12
*** m0use has joined #maemo-ssu15:15
*** M4rtinK has joined #maemo-ssu15:27
*** mr_jrt has joined #maemo-ssu15:36
*** gregoa has quit IRC15:42
*** gregoa has joined #maemo-ssu15:46
*** the_lord has joined #maemo-ssu15:51
*** psycho_oreos has quit IRC17:29
*** m0use has quit IRC18:16
*** I-C-Wiener has joined #maemo-ssu19:13
*** Guest27795 has quit IRC19:27
*** Guest27795 has joined #maemo-ssu19:31
*** Sc0rpius has joined #maemo-ssu20:21
*** Sc0rpius has quit IRC20:25
*** Sc0rpius has joined #maemo-ssu20:29
*** BCMM has quit IRC20:45
*** bsdmaniak has joined #maemo-ssu20:50
*** m0use has joined #maemo-ssu21:17
*** m0use has quit IRC21:19
*** Guest27795 has quit IRC21:40
*** Guest27795 has joined #maemo-ssu21:45
*** thopiekar has joined #maemo-ssu21:50
*** BCMM has joined #maemo-ssu22:59
*** BCMM has quit IRC22:59
*** BCMM has joined #maemo-ssu22:59
*** anidel has joined #maemo-ssu23:03
*** bsdmaniak has quit IRC23:21
*** arcean has joined #maemo-ssu23:39
*** m0use has joined #maemo-ssu23:39
*** thopiekar has quit IRC23:39
*** chainsawbike has quit IRC23:41
*** chainsawbike has joined #maemo-ssu23:42
*** chainsawbike has quit IRC23:46
*** thopiekar has joined #maemo-ssu23:47
*** chainsawbike has joined #maemo-ssu23:47
*** Jade has quit IRC23:48

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!