[Bug 36791] New: Foxit Reader 6.2.0.0429: Failed to open file in "recent files" on start page
http://bugs.winehq.org/show_bug.cgi?id=36791 Bug ID: 36791 Summary: Foxit Reader 6.2.0.0429: Failed to open file in "recent files" on start page Product: Wine Version: 1.7.20 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: penghao(a)linuxdeepin.com Created attachment 48867 --> http://bugs.winehq.org/attachment.cgi?id=48867 Foxit Reader said that file is not found wine version: wine-1.7.20-102-g889cce4 download from: http://cdn01.foxitsoftware.com/pub/foxit/reader/desktop/win/6.x/6.2/enu/Foxi... after install, start foxit from: ~/.wine/drive_c/Program Files/Foxit Software/Foxit Reader/ with: wine Foxit\ Reader.exe Programs start fine. I opened a pdf file in following path: ~/Desktop/Deepin 2014.pdf which real path is: /home/phcole/Desktop/Deepin 2014.pdf and then I close this file, and switch to the "Start" page. click the "Deepin 2014.pdf" in "recent documents", there jumps a error message box showing in the attachment jpg. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=36791 Qian Hong <fracting(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting(a)gmail.com, | |litimetal(a)gmail.com --- Comment #1 from Qian Hong <fracting(a)gmail.com> --- Confirming, workaround by `winetricks -q ie7`, maybe ieframe bug or mshtml bug. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=36791 --- Comment #2 from lizhenbo <litimetal(a)gmail.com> --- Created attachment 48895 --> http://bugs.winehq.org/attachment.cgi?id=48895 Screenshot with a dirty hack I think at least two problems are related to Foxit Reader The first is PathIsRelativeW. ----snip of WINEDEBUG=+mshtml.+relay,+tid log--- 002a:Call shlwapi.PathIsRelativeW(0761a16c L"file:///C:/users/lizhenbo/My%20Documents/Documents/c/c8.pdf") ret=004afe90 002a:Ret shlwapi.PathIsRelativeW() retval=00000001 ret=004afe90 002a:Call KERNEL32.GetFullPathNameW(0761a16c L"file:///C:/users/lizhenbo/My%20Documents/Documents/c/c8.pdf",00000104,0032e614,0032e60c) ret=004afec5 --------------------------------------------------- I wrote a *very dirty* hack for it: diff --git a/dlls/shlwapi/path.c b/dlls/shlwapi/path.c index 5c7a88a..62da6f1 100644 --- a/dlls/shlwapi/path.c +++ b/dlls/shlwapi/path.c @@ -1548,6 +1548,8 @@ BOOL WINAPI PathIsRelativeW (LPCWSTR lpszPath) return TRUE; if (*lpszPath == '\\' || (*lpszPath && lpszPath[1] == ':')) return FALSE; + if (lpszPath[0] == 'f' && lpszPath[1] == 'i') + return FALSE; return TRUE; } And the behaviour has been changed(see my attachment) I think we should concentrate this problem in shlwapi. then try to locate the bug (may) related to ieframe or mshtml? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=36791 Qian Hong <fracting(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|-unknown |shlwapi Ever confirmed|0 |1 --- Comment #3 from Qian Hong <fracting(a)gmail.com> --- Thanks Zhenbo, test case committed: http://source.winehq.org/git/wine.git/?a=commit;h=9d59d4e5502c15703d1c6813bd... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=36791 --- Comment #4 from lizhenbo <litimetal(a)gmail.com> --- Thanks, Qian But please change 'Component' to '-unknown' instead of 'shlwapi'. (In reply to lizhenbo from comment #2)
I think at least two problems are related to Foxit Reader
The first is PathIsRelativeW.
I think I've made a wrong hypothesis. I'll do more work to locate the real bug. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=36791 Qian Hong <fracting(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|shlwapi |-unknown -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36791 --- Comment #5 from lizhenbo <litimetal(a)gmail.com> --- Hi Hao Peng, Could you please re-test it? I can't reproduce this bug on wine-1.7.48. Maybe this bug has been fixed? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36791 Vitaly Lipatov <lav(a)etersoft.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lav(a)etersoft.ru -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36791 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Component|-unknown |ieframe Status|NEW |RESOLVED Resolution|--- |FIXED URL| |https://web.archive.org/web | |/20140528035234/http://cdn0 | |1.foxitsoftware.com/pub/fox | |it/reader/desktop/win/6.x/6 | |.2/enu/FoxitReader620.0429_ | |enu_Setup.exe Fixed by SHA1| |ba2274c8bae67e9510ab24ca1ca | |a6576874c8c6d Summary|Foxit Reader 6.2.0.0429: |Foxit Reader 6.2.0.0429 |Failed to open file in |reports "File not found." |"recent files" on start |when trying to open file |page |via "recent files" on start | |page CC| |focht(a)gmx.net --- Comment #6 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, the problem was fixed a long time ago by commit https://source.winehq.org/git/wine.git/commitdiff/ba2274c8bae67e9510ab24ca1c... ("ieframe: shellbrowser: Strip 'file://' from file URLs in BEFORENAVIGATE2 callbacks."). Part of Wine 1.7.45 release. Thanks Joachim. Stable download link via Internet Archive: https://web.archive.org/web/20140528035234/http://cdn01.foxitsoftware.com/pu... Relevant part of trace log before the fix: --- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Foxit Software/Foxit Reader $ WINEDEBUG=+seh,+relay,+shlwapi,+shell,+ieframe,+urlmon wine ./Foxit\ Reader.exe >>log_bad.txt 2>&1 ... 0009:Call urlmon.CoInternetCombineUrlEx(101c0640,1bc644e0 L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf",06000000,0032ec58,00000000) ret=7b3359ee trace:urlmon:CoInternetCombineUrlEx (0x101c0640 L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" 6000000 0x32ec58 0) stub trace:urlmon:Uri_QueryInterface (0x101c0640)->(IID_IUriObj 0x32db74) trace:urlmon:parse_schema (L"file://C:\\users\\Public\\Foxit Software\\Foxit Reader\\StartPage\\start\\en_us\\index.html" 00000000 0x32daa0 64 0x32da9c) ... trace:urlmon:Uri_Construct ((nil) 0x32da54) trace:urlmon:canonicalize_uri (0x32da58 0x103de3d8 80): beginning to canonicalize URI L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf". trace:urlmon:compute_canonicalized_length (0x32da58 80): Beginning to compute canonicalized length for URI L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" trace:urlmon:compute_canonicalized_length (0x32da58 80): Finished computing canonicalized URI length. length=59 ... trace:urlmon:canonicalize_scheme (0x32da58 0x103de3d8 80): Canonicalized scheme=L"file", len=4. trace:urlmon:remove_dot_segments (0x103de476 52): Path after dot segments removed L"/Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" len=52 trace:urlmon:canonicalize_path_hierarchical Canonicalized path L"/Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" len=52 trace:urlmon:canonicalize_uri (0x32da58 0x103de3d8 80): finished canonicalizing the URI. uri=L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" ... 0009:Ret urlmon.CoInternetCombineUrlEx() retval=00000000 ret=7b3359ee trace:urlmon:Uri_GetDisplayUri (0x103de3d8)->(0x32ec18) trace:urlmon:Uri_GetPropertyBSTR (0x103de3d8 L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf")->(2 0x32ec18 0) ... trace:ieframe:DocHostUIHandler_TranslateUrl (0x196a70)->(0 L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" 0x32ec1c) trace:urlmon:Uri_AddRef (0x103de3d8) ref=2 trace:urlmon:Uri_Release (0x103de3d8) ref=1 trace:ieframe:DocObjectService_FireBeforeNavigate2 0x18ee50 (nil) L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" 40 (null) (nil) 0 (null) 1 0x32ec1c ... trace:ieframe:ShellBrowser_AddRef (0x18ee50) ref=4 trace:ieframe:DocObjectService_FireBeforeNavigate2 >>> ... 0009:Call shlwapi.PathFindExtensionW(072456b0 L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf") ret=01432c13 trace:shell:PathFindExtensionW (L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf") 0009:Ret shlwapi.PathFindExtensionW() retval=0724571e ret=01432c13 ... 0009:Call shlwapi.PathIsRelativeW(0724910c L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf") ret=004afe90 trace:shell:PathIsRelativeW (L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf") 0009:Ret shlwapi.PathIsRelativeW() retval=00000001 ret=004afe90 --- snip --- After the fix: --- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Foxit Software/Foxit Reader $ WINEDEBUG=+seh,+relay,+shlwapi,+shell,+ieframe,+urlmon wine ./Foxit\ Reader.exe >>log_good.txt 2>&1 ... 0009:Call urlmon.CoInternetCombineUrlEx(101c34c0,1bc68038 L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf",06000000,0033ec58,00000000) ret=7b332b7e trace:urlmon:CoInternetCombineUrlEx (0x101c34c0 L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" 6000000 0x33ec58 0) stub trace:urlmon:Uri_QueryInterface (0x101c34c0)->(IID_IUriObj 0x33db74) trace:urlmon:parse_schema (L"file://C:\\users\\Public\\Foxit Software\\Foxit Reader\\StartPage\\start\\en_us\\index.html" 00000000 0x33daa0 64 0x33da9c) trace:urlmon:CreateUri (L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" 5 0 0x33db70) ... trace:urlmon:canonicalize_uri (0x33da58 0x103db9b0 80): beginning to canonicalize URI L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf". trace:urlmon:compute_canonicalized_length (0x33da58 80): Beginning to compute canonicalized length for URI L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" trace:urlmon:compute_canonicalized_length (0x33da58 80): Finished computing canonicalized URI length. length=59 ... trace:urlmon:canonicalize_scheme (0x33da58 0x103db9b0 80): Canonicalized scheme=L"file", len=4. trace:urlmon:remove_dot_segments (0x103dba4e 52): Path after dot segments removed L"/Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" len=52 trace:urlmon:canonicalize_path_hierarchical Canonicalized path L"/Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" len=52 trace:urlmon:canonicalize_uri (0x33da58 0x103db9b0 80): finished canonicalizing the URI. uri=L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" ... 0009:Ret urlmon.CoInternetCombineUrlEx() retval=00000000 ret=7b332b7e ... trace:ieframe:DocHostUIHandler_TranslateUrl (0x196a68)->(0 L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" 0x33ec1c) ... trace:ieframe:DocObjectService_FireBeforeNavigate2 0x101c23a0 (nil) L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf" 40 (null) (nil) 0 (null) 1 0x33ec1c 0009:Call shlwapi.PathCreateFromUrlW(101c2e0c L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf",0033e988,0033e8a4,00000000) ret=7c0b73a6 trace:shell:PathCreateFromUrlW (L"file:///Z:/home/focht/Downloads/SampleSignedPDFDocument.pdf",0x33e988,0x33e8a4,0x00000000) ... trace:shell:PathCreateFromUrlW Returning (51) L"Z:\\home\\focht\\Downloads\\SampleSignedPDFDocument.pdf" 0009:Ret shlwapi.PathCreateFromUrlW() retval=00000000 ret=7c0b73a6 ... trace:ieframe:ShellBrowser_AddRef (0x101c23a0) ref=4 trace:ieframe:DocObjectService_FireBeforeNavigate2 >>> ... 0009:Call shlwapi.PathFindExtensionW(07256688 L"Z:\\home\\focht\\Downloads\\SampleSignedPDFDocument.pdf") ret=01432c13 trace:shell:PathFindExtensionW (L"Z:\\home\\focht\\Downloads\\SampleSignedPDFDocument.pdf") 0009:Ret shlwapi.PathFindExtensionW() retval=072566e6 ret=01432c13 ... 0009:Call shlwapi.PathIsRelativeW(072555d4 L"Z:\\home\\focht\\Downloads\\SampleSignedPDFDocument.pdf") ret=004afe90 trace:shell:PathIsRelativeW (L"Z:\\home\\focht\\Downloads\\SampleSignedPDFDocument.pdf") 0009:Ret shlwapi.PathIsRelativeW() retval=00000000 ret=004afe90 --- snip --- $ sha1sum FoxitReader620.0429_enu_Setup.exe 6d0a8877cd82c957f50b05fa7b4b2cb0b34a5cc8 FoxitReader620.0429_enu_Setup.exe $ du -sh FoxitReader620.0429_enu_Setup.exe 38M FoxitReader620.0429_enu_Setup.exe $ wine --version wine-1.7.45 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36791 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 6.2. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla