[webkit-dev] One suggestion to handle: GLib-GIO-CRITICAL **: g_file_read_async: assertion `G_IS_FILE (file)' failed

Dhananjoy Chutia dhanrd at gmail.com
Fri May 29 04:49:48 PDT 2009


Hi,
   I compiled WebKit-44111 with the following packages:
glib-2.15.3
libsoup-2.26.2
libgpg-error-1.6
libgcrypt-1.4.3
GnuTLS-2.6.2
gtk+-2.12.1

When I tried to open file://data/test.html the following error is shown in
the console and page is not loaded.
*
(GtkLauncher:1378): GLib-GIO-CRITICAL **: g_file_read_async: assertion
`G_IS_FILE (file)*' failed

But, it works, if I comment one statement as follows:
----------------------------------------------------------------------------------------------------------
diff -puNr
WebKit-r44111/WebCore/platform/network/soup/ResourceHandleSoup.cpp
WebKit-r44111_m/WebCore/platform/network/soup/ResourceHandleSoup.cpp
--- WebKit-r44111/WebCore/platform/network/soup/ResourceHandleSoup.cpp
2009-05-23 10:27:55.000000000 +0530
+++ WebKit-r44111_m/WebCore/platform/network/soup/ResourceHandleSoup.cpp
2009-05-29 16:06:55.000000000 +0530
@@ -820,7 +820,7 @@ static void queryInfoCallback(GObject* s
     g_file_info_get_modification_time(info, &tv);
     response.setLastModifiedDate(tv.tv_sec);

-    client->didReceiveResponse(handle, response);
+    //client->didReceiveResponse(handle, response);

     g_file_read_async(d->m_gfile, G_PRIORITY_DEFAULT, d->m_cancellable,
                       openCallback, 0);


-----------------------------------------------------------------------------------------------------------

It is to be noted that, if we  don't comment the didReceiveResponse call
the  value of "d->m_gfile" becomes NULL, hence the g_file_read_async fails.
Is this statement required?
Is there any other way to overcome this issue ?
 I expect your valuable suggestion.


Thanks & Regards
Dhananjoy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090529/e281386a/attachment.html>


More information about the webkit-dev mailing list