<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>121022</bug_id>
          
          <creation_ts>2013-09-09 01:05:51 -0700</creation_ts>
          <short_desc>[Qt] Perf tests: Icon database already has a path... error.</short_desc>
          <delta_ts>2014-02-03 03:27:05 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>111435</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Gábor Ábrahám">abrhm</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
    
    <cc>jturcotte</cc>
    
    <cc>kadam</cc>
    
    <cc>ossy</cc>
    
    <cc>zarvai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>926598</commentid>
    <comment_count>0</comment_count>
    <who name="Gábor Ábrahám">abrhm</who>
    <bug_when>2013-09-09 01:05:51 -0700</bug_when>
    <thetext>While I try to run perf tests with debug build on Qt I got this message:

abrhm@abrhm-H61M-S2V-B3:~/webkit/WK$ Tools/Scripts/run-perf-tests --output-json-path perf-test-results.json --no-show-results --reset-results --platform qt-5.0-wk2 --debug --webkit-test-runner
Running 115 tests
Running Animation/balls.html (1 of 115)
error: Animation/balls.html
ERROR: Unabled to create LocalStorage database path 
/home/abrhm/webkit/WK/Source/WebKit2/UIProcess/Storage/LocalStorageDatabaseTracker.cpp(149) : WTF::String WebKit::LocalStorageDatabaseTracker::databasePath(const WTF::String&amp;) const
ERROR: Icon database already has a path and is already open. We don&apos;t currently support changing its path and reopening.
/home/abrhm/webkit/WK/Source/WebKit2/UIProcess/WebIconDatabase.cpp(69) : void WebKit::WebIconDatabase::setDatabasePath(const WTF::String&amp;)
FAILED
Finished: 46.360048 s

The icon database setpath were called second time in QtWebIconDatabaseClient.cpp:57
The WTR set it first, but if we don&apos;t call WTR we still need it.
I could solve this problem with checking whether the DUMPRENDERTREE_TEMP enviromental variable set, but it is not a very reliable idea I think.

I try to find some function which check the path is set already, without any success.
Is there any other way that we can check whether the path already set?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>926607</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-09-09 02:23:48 -0700</bug_when>
    <thetext>EFL and GTK check if the database is open or not before setting it.
- EFL: Source/WebKit2/UIProcess/API/efl/ewk_context.cpp - setFaviconDatabaseDirectoryPath()
- GTK: Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp - webkit_web_context_set_favicon_database_directory()

Additionally cc-ing Simon and Jocelyn, they added the second call for
WKContextSetIconDatabasePath() in https://trac.webkit.org/changeset/145517</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>926609</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-09-09 02:25:19 -0700</bug_when>
    <thetext>*** Bug 119837 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>926623</commentid>
    <comment_count>3</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2013-09-09 02:50:26 -0700</bug_when>
    <thetext>The icon database code in WebKit2 is limited in this area, and I can&apos;t think of a simple way to solve this properly.
Silently discarding the setDatabasePath call is quite ugly if the two paths are different, in this case it would mean that the DUMPRENDERTREE_TEMP temporaryFolder would be the one discarded.

Does it work fine in release? Is there any need to run WTR in debug with DUMPRENDERTREE_TEMP?
Another option might be to hijack the home directory through fancy environment variables, where all databases end up, instead of relying on DUMPRENDERTREE_TEMP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>975781</commentid>
    <comment_count>4</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2014-02-03 03:27:05 -0800</bug_when>
    <thetext>=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>