WineHQ
Bug Tracking Database – Bug 10911

 Bugzilla

 

Last modified: 2014-01-03 13:10:26 UTC  

Jumpstart Mystery Club download manager doesn't work

Bug 10911 - Jumpstart Mystery Club download manager doesn't work
Jumpstart Mystery Club download manager doesn't work
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: msxml3
1.1.40
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
http://d.trymedia.com/dm/knowad/15d12...
: download
: 18814 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-12-27 15:00 UTC by Louis Lenders
Modified: 2014-01-03 13:10 UTC (History)
7 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: e736c3e9837fc818ad5154e14be56fb09f11eef5
Distribution: ---
Staged patchset:


Attachments
the window mentioned above (31.08 KB, image/jpeg)
2007-12-27 15:03 UTC, Louis Lenders
Details
Terminal output in wine 1.1.40 (5.30 KB, text/plain)
2010-03-06 03:55 UTC, Niko Sandschneider
Details
tcp dump (2.06 KB, text/plain)
2011-11-30 20:58 UTC, Bruno Jesus
Details
+wininet,+msxml in 1.3.33 (57.51 KB, text/plain)
2011-11-30 21:16 UTC, Bruno Jesus
Details
+msxml,+tid after winetricks wininet ie6 (6.62 KB, text/plain)
2011-12-16 07:41 UTC, ocean04
Details
patch (10.65 KB, patch)
2011-12-17 15:34 UTC, Nikolay Sivov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Lenders 2007-12-27 15:00:13 UTC
Hi, tried to look into bug http://bugs.winehq.org/show_bug.cgi?id=10874, but actually i was not able to download the demo with current wine. After starting JSMCMastermind-dm.exe, the download of the demo should actually start, but all i get is a weird window. See attached screenshot
Comment 1 Louis Lenders 2007-12-27 15:03:34 UTC
Created attachment 9829 [details]
the window mentioned above
Comment 2 Austin English 2007-12-27 15:15:33 UTC
Confirming, I just saw this a few minutes ago for another demo (Worms of Armageddon), but was a bit busy and didn't file a bug for it.
Comment 3 Louis Lenders 2008-05-28 17:17:45 UTC
Still present in current git
Comment 4 Austin English 2008-12-07 18:10:14 UTC
Doesn't even start for me in 1.1.10.
Comment 5 Austin English 2009-01-18 03:47:22 UTC
Removing deprecated CVS/GIT version tag. Please retest in current git. If the bug is still present in today's wine, but was not present in some earlier version of wine, please update version field to earliest known version of wine that had the bug. Thanks!
Comment 6 Niko Sandschneider 2010-03-06 03:53:51 UTC
In wine 1.1.40 JSMCMastermind-dm.exe still hangs right after start. Terminal output is attached.
Comment 7 Niko Sandschneider 2010-03-06 03:55:45 UTC
Created attachment 26635 [details]
Terminal output in wine 1.1.40
Comment 8 Bruno Jesus 2011-11-29 19:32:57 UTC
Still present in 1.3.33. All I get is an infinite loop of
err:msxml:doparse XML declaration allowed only at the start of the document

winetricks msxml4 does not solve the issue.
Comment 9 Nikolay Sivov 2011-11-30 13:05:32 UTC
(In reply to comment #8)
> Still present in 1.3.33. All I get is an infinite loop of
> err:msxml:doparse XML declaration allowed only at the start of the document
> 

If you trace something like +wininet you'll see response as "\n<?xml..." probably. I remember we have a bug about that. msxml is failing correctly as native does (and as specification suggest).

> winetricks msxml4 does not solve the issue.
Comment 10 Bruno Jesus 2011-11-30 19:21:39 UTC
Nikolay, you're completely right. Do you have any hints about what to do next?

trace:msxml:domdoc_loadXML (0x1189df8)->(L"\n<?xml version=\"1.0\" encoding=\"UTF-16\"?>\n<dm>\n  <files>\n    <file execute=\"yes\" stamp=\"yes\">\n      <url>http://cdn.dli.trymedia.com/r/release/knowad/15d120m10e_i_1f/JSMCMastermind.exe?nva=20111202011827&amp;aff=trygames&amp;token=1767d181f7b5589933dbb</url>\n    </file>\n  </files>\n</dm" 0x66e938)
err:msxml:doparse XML declaration allowed only at the start of the document
Comment 11 Nikolay Sivov 2011-11-30 20:36:41 UTC
We need to figure out where this broken stream comes from and why it contains leading return character. I don't know details unfortunately, but as a start you probably need +wininet log or something related, it's interesting to test with native modules as well to be sure.
Comment 12 Bruno Jesus 2011-11-30 20:58:06 UTC
Created attachment 37717 [details]
tcp dump

As you can see in the attached dump file the site clearly sends an extra \n at the beginning of the stream.

00a0   31 31 65 0d 0a 0a 3c 3f 78 6d 6c 20 76 65 72 73  11e...<?xml vers

I'll retest in windows later.
Comment 13 Nikolay Sivov 2011-11-30 21:10:32 UTC
Maybe we should strip all space chars when header is separated from request body, or something like that, but yes, it's interesting to see a response running windows too.
Comment 14 Bruno Jesus 2011-11-30 21:16:55 UTC
Created attachment 37718 [details]
+wininet,+msxml in 1.3.33

Attached a trimmed version of +wininet,+msxml.
Comment 15 Bruno Jesus 2011-11-30 21:26:45 UTC
Windows receives the same TCP data as expected. But the program goes on and start downloading. If you can produce a small patch to trim everything before the first "<" I'll be glad to test (I tried myself but didn't find where that msxml error message is generated).
Comment 16 Nikolay Sivov 2011-12-01 10:00:23 UTC
(In reply to comment #15)
> Windows receives the same TCP data as expected. But the program goes on and
> start downloading. 

Ok, that's good.

> If you can produce a small patch to trim everything before
> the first "<" I'll be glad to test (I tried myself but didn't find where that
> msxml error message is generated).

That is not a way to fix that. When msxml3 receive such broken stream it fails as it should.

So the problem is somewhere in winhttp/wininet I think.
Comment 17 ocean04 2011-12-16 07:20:39 UTC
Download starts here if I do:

winetricks wininet ie6 msxml3

Remove any part and it doesn't work..
Comment 18 Nikolay Sivov 2011-12-16 07:27:22 UTC
(In reply to comment #17)
> Download starts here if I do:
> 
> winetricks wininet ie6 msxml3
> 
> Remove any part and it doesn't work..

Okay, could you attach +msxml,+tid running only 'winetricks wininet ie6'?
Comment 19 ocean04 2011-12-16 07:41:37 UTC
Created attachment 37988 [details]
+msxml,+tid after winetricks wininet ie6
Comment 20 ocean04 2011-12-16 10:59:16 UTC
This works in Windows / native msxml3


xml:=CreateOleObject('Microsoft.XMLDOM');
xml.LoadXML(#10+'<?xml version="1.0" encoding="UTF-8" ?><test>test</test>');
xml.Save('c:/testing.xml');


Saves 0 bytes with builtin msxml3


test sample: http://netikka.net/dev/xml2.exe
Comment 21 Nikolay Sivov 2011-12-16 11:27:18 UTC
(In reply to comment #20)
> This works in Windows / native msxml3
> 
> 
> xml:=CreateOleObject('Microsoft.XMLDOM');
> xml.LoadXML(#10+'<?xml version="1.0" encoding="UTF-8" ?><test>test</test>');
> xml.Save('c:/testing.xml');
> 

Yeah, I tested ::load() method only, and it fails on such stream, I'll more tests.
Comment 22 Nikolay Sivov 2011-12-16 17:06:01 UTC
So your test program does:

---
0009:trace:msxml:DispatchEx_GetIDsOfNames (0x134a30)->({00000000-0000-0000-0000-000000000000} 0x33eb04 1 1033 0x33eb48)
0009:trace:msxml:DispatchEx_GetDispID (0x134a30)->(L"LoadXML" 0 0x33eb48)
0009:trace:msxml:preprocess_dispex_data (0x134a30)
0009:trace:msxml:DispatchEx_Invoke (0x134a30)->(63 {00000000-0000-0000-0000-000000000000} 0 1 0x33eae0 (nil) 0x33eb10 (nil))
0009:trace:msxml:DispatchEx_InvokeEx (0x134a30)->(3f 0 1 0x33eae0 (nil) 0x33eb10 (nil))
0009:trace:msxml:domdoc_QueryInterface (0x134a30)->({2933bf96-7b36-11d2-b20e-00c04f983e60} 0x33e400)
0009:trace:msxml:domdoc_AddRef (0x134a30)->(3)
0009:trace:msxml:domdoc_loadXML (0x134a30)->(L"\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?><test>test</test>" 0x33e0f8)
0009:err:msxml:doparse XML declaration allowed only at the start of the document
0009:trace:msxml:domdoc_loadXML failed to parse document
---

and after that

---
0009:trace:msxml:DispatchEx_GetIDsOfNames (0x134a30)->({00000000-0000-0000-0000-000000000000} 0x33eb04 1 1033 0x33eb48)
0009:trace:msxml:DispatchEx_GetDispID (0x134a30)->(L"Save" 0 0x33eb48)
0009:trace:msxml:DispatchEx_Invoke (0x134a30)->(64 {00000000-0000-0000-0000-000000000000} 0 1 0x33eae0 (nil) 0x33eb10 (nil))
0009:trace:msxml:DispatchEx_InvokeEx (0x134a30)->(40 0 1 0x33eae0 (nil) 0x33eb10 (nil))
0009:trace:msxml:domdoc_QueryInterface (0x134a30)->({2933bf96-7b36-11d2-b20e-00c04f983e60} 0x33e400)
0009:trace:msxml:domdoc_AddRef (0x134a30)->(3)
0009:trace:msxml:domdoc_save (0x134a30)->({VT_BSTR: L"c:/testing.xml"})
---

same sequence in a test (well, with direct calls and not IDispatch ones) results in empty file running on Windows. That's what I thought is going on, but really the problem is all about different CLSIDs that are used to create an instance.

Actually there's two CLSID_DOMDocument from different SDK headers with different values, we use the one from msxml2.idl where it's just a define for CLSID_DOMDocument2. But in xmldom.idl it's defined with proper class section using separate IID value.

I'll think how to resolve this name mess.
Comment 23 Nikolay Sivov 2011-12-17 15:34:36 UTC
Created attachment 38007 [details]
patch

Please try this one for reported msxml issue.
Comment 24 ocean04 2011-12-18 07:39:15 UTC
Patch works here (for msxml issue)
Comment 25 Nikolay Sivov 2011-12-19 13:51:41 UTC
msxml bug is fixed with e736c3e9837fc818ad5154e14be56fb09f11eef5.
Comment 26 Bruno Jesus 2012-05-14 18:20:59 UTC
In wine 1.5.4 the program seems to start in the console, the xml is parsed correctly but there is no progress window opened. Can anyone else test?
Comment 27 Béla Gyebrószki 2012-07-08 07:21:07 UTC
*** Bug 18814 has been marked as a duplicate of this bug. ***
Comment 28 Béla Gyebrószki 2012-07-08 07:32:41 UTC
I tested the download manager with Wine 1.5.8 and Gecko 1.6 installed.

- the application starts in the console, but it doesn't put up any windows
- after 'winetricks ie7' the application window appears, but much of its contents are missing (empty progress bar, no text at all)
- native msxml3 is needed to make the contents of the window appear. After several attempts, connecting to the server fails.
- native wininet.dll is needed to make a successful connection, and downloading the actual game.
Comment 29 Bruno Jesus 2013-03-26 00:07:58 UTC
Still in wine 1.5.26.
Comment 30 Anastasius Focht 2014-01-03 11:21:11 UTC
Hello folks,

don't recycle bugs.

--- quote ---
Nikolay Sivov 2011-12-19 13:51:41 CST

msxml bug is fixed with e736c3e9837fc818ad5154e14be56fb09f11eef5.
--- quote ---

Open a new bug if <insert whatever issue> is still present.

Please stick to _one_ issue and avoid multiple winetricks recipes (ie7, msxml, wininet).
Also be sure to add _working_ downlink link.

Regards
Comment 31 Alexandre Julliard 2014-01-03 13:10:26 UTC
Closing bugs fixed in 1.7.10.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers