http://bugs.winehq.org/show_bug.cgi?id=21156
Summary: Add torrents in webUI 0.362 with µTorrent >= 2.0 doesn't work Product: Wine Version: 1.1.35 Platform: x86 URL: http://forum.utorrent.com/viewtopic.php?pid=442816#p44 2816 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: simon@simonbcn.net
webUI 0.362/0.361 / µTorrent 2.0 build 17668 Ubuntu Linux 9.10 32 bits / Wine v1.1.35 / Firefox 3.5.6 and Chromium 4.0.280.0 I try to add one torrent from webUI and it does nothing.
The Wine error:
fixme:file:ReplaceFileW Ignoring flags 2
Explanation: This error is shown in the console every time I try to add a .torrent file via WebUI while running µTorrent 2.0, but never when I'm running µTorrent 1.8.5. What that means is that µTorrent 2.0 is using a Windows API (ReplaceFile with the REPLACEFILE_IGNORE_MERGE_ERRORS flag), which Wine hasn't yet fully implemented. As such, the right course of action is to file a bug report with Wine and get them to fix the issue.
http://bugs.winehq.org/show_bug.cgi?id=21156
Simón simon@simonbcn.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Add torrents in webUI 0.362 |Add torrents in webUI with |with µTorrent >= 2.0 |µTorrent >= 2.0 doesn't |doesn't work |work
http://bugs.winehq.org/show_bug.cgi?id=21156
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2009-12-25 10:55:10 --- http://bugs.winehq.org/page.cgi?id=fields.html#bug_severity
http://bugs.winehq.org/show_bug.cgi?id=21156
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW Component|-unknown |kernel32 Ever Confirmed|0 |1
--- Comment #2 from Austin English austinenglish@gmail.com 2009-12-25 16:13:09 --- Confirming, it's unimplemented.
http://bugs.winehq.org/show_bug.cgi?id=21156
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://forum.utorrent.com/v | |iewtopic.php?pid=442816#p44 | |2816 |
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #3 from Simón simon@simonbcn.net 2009-12-26 16:17:00 --- And have you thought to implement it in next Wine version?
http://bugs.winehq.org/show_bug.cgi?id=21156
chemacg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chemacg@gmail.com
--- Comment #4 from chemacg@gmail.com 2009-12-30 11:08:25 --- Idem here.
It's really annoying and it force me to close utorrent in the server, reopen it in my desktop, add the torrents, close it and rereopen it in the server.
Thanks for your work.
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #5 from Simón simon@simonbcn.net 2010-02-04 06:37:48 --- µTorrent 2.0 is the official version but I can't use it because wine is not prepared for it. :-(
http://bugs.winehq.org/show_bug.cgi?id=21156
Simón simon@simonbcn.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.1.35 |1.1.37
http://bugs.winehq.org/show_bug.cgi?id=21156
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.1.37 |1.1.35
--- Comment #6 from Vitaliy Margolen vitaliy@kievinfo.com 2010-02-04 08:56:40 --- Don't change original reported Wine version.
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #7 from Simón simon@simonbcn.net 2010-02-04 09:00:22 --- (In reply to comment #6)
Don't change original reported Wine version.
Ok, it continues failing in wine 1.1.37
http://bugs.winehq.org/show_bug.cgi?id=21156
fester551@live.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fester551@live.com
--- Comment #8 from fester551@live.com 2010-02-12 11:09:19 --- it continues failing in wine 1.1.38
http://bugs.winehq.org/show_bug.cgi?id=21156
Naruto Uzumaki cyberninjanaruto@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cyberninjanaruto@hotmail.co | |m
--- Comment #9 from Naruto Uzumaki cyberninjanaruto@hotmail.com 2010-02-27 01:05:26 --- still does not work with web ui 0.370
http://bugs.winehq.org/show_bug.cgi?id=21156
Alex Balut alexandru.balut@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexandru.balut@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=21156
abcd analogue@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |analogue@yahoo.com
http://bugs.winehq.org/show_bug.cgi?id=21156
af.dubud@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |af.dubud@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=21156
astrox@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |astrox@o2.pl
--- Comment #10 from astrox@o2.pl 2010-03-26 18:02:38 --- version 1.1.40 still not working
http://bugs.winehq.org/show_bug.cgi?id=21156
Naruto Uzumaki cyberninjanaruto@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|cyberninjanaruto@hotmail.co | |m |
http://bugs.winehq.org/show_bug.cgi?id=21156
strikernl winespam1001@ddcrew.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winespam1001@ddcrew.com
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #11 from Simón simon@simonbcn.net 2010-04-22 10:10:06 --- It's very sad and painful that, at this point, this bug has not yet been solved. It continues failing in v1.1.43!! o_O Why, after all these months, this error has not yet been resolved?
http://bugs.winehq.org/show_bug.cgi?id=21156
Simón simon@simonbcn.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |simon@simonbcn.net
http://bugs.winehq.org/show_bug.cgi?id=21156
ed sw3ety@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sw3ety@gmail.com
--- Comment #12 from ed sw3ety@gmail.com 2010-04-22 18:21:58 --- I am thinking about this too.
It seems that wine users never will going to use uTorrent 2.xx
:_(
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #13 from Vitaliy Margolen vitaliy@kievinfo.com 2010-04-22 22:17:04 --- You are welcome to send patches in to fix the problem. This is an open source project with lots and lots of things to work on. Apparently fixing a torrent is not in the list of priorities for developers.
http://bugs.winehq.org/show_bug.cgi?id=21156
satoshi evertonclamp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |evertonclamp@gmail.com
--- Comment #14 from satoshi evertonclamp@gmail.com 2010-05-01 18:41:12 --- Please fix this bug, it is annoying.
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #15 from Dmitry Timoshkov dmitry@codeweavers.com 2010-05-03 02:53:39 --- (In reply to comment #14)
Please fix this bug, it is annoying.
http://wiki.winehq.org/SubmittingPatches
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #16 from yourparadigm@gmail.com 2010-05-08 21:58:17 --- Created an attachment (id=27821) --> (http://bugs.winehq.org/attachment.cgi?id=27821) Attempt to add support for REPLACEFILE_IGNORE_MERGE_ERRORS in ReplaceFile
Has not been tested, but should be reviewed by someone more familiar with that part of the code base.
http://bugs.winehq.org/show_bug.cgi?id=21156
repotecex@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |repotecex@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #17 from repotecex@gmail.com 2010-05-17 06:14:00 --- Wine 1.1.44 still having same problem for utorrent 2.0.* versions
any possible fix for this?
Regards
http://bugs.winehq.org/show_bug.cgi?id=21156
Evert Mouw post@evert.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |post@evert.net
--- Comment #18 from Evert Mouw post@evert.net 2010-05-18 07:36:05 --- I tried the patch of yourparadigm against 1.1.39. Did compile, but did not work. Still the same error.
http://bugs.winehq.org/show_bug.cgi?id=21156
Danila Sentiabov dsent.zen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dsent.zen@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=21156
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #19 from Damjan Jovanovic damjan.jov@gmail.com 2010-06-05 04:14:32 --- 42 votes in < 6 months? Must be a popular app :-).
ReplaceFileW is not the problem here. Some additional tracing in ReplaceFileW shows that by the time ReplaceFileW is called, the files passed to it are already empty.
Why? A +file,+relay,+tid trace shows that earlier the torrent file (28316 bytes) got written correctly, then CopyFileW gets called with the same source and destination and the overwrite option on true, which truncates the file to 0 bytes:
---snip--- 001d:Call KERNEL32.CopyFileW(0115e684 L"C:\users\dacha\Temp\utt600e.tmp.new",0115e258 L"C:\users\dacha\Temp\utt600e.tmp.new",00000000) ret=0043b083 ... 001d:Ret KERNEL32.CopyFileW() retval=00000001 ret=0043b083 001d:Call KERNEL32.ReplaceFileW(0029f8c0 L"C:\users\dacha\Temp\utt600e.tmp",0115e258 L"C:\users\dacha\Temp\utt600e.tmp.new",0115e460 L"C:\users\dacha\Temp\utt600e.tmp.31585.tmp",00000002,00000000,00000000) ret=0043b09b ---snip---
Case in point: hacking CopyFileW to return success immediately if the source and destination are the same, makes adding the Torrent succeed.
Maybe that's what Windows also does? I will test.
http://bugs.winehq.org/show_bug.cgi?id=21156
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |damjan.jov@gmail.com
--- Comment #20 from Damjan Jovanovic damjan.jov@gmail.com 2010-06-05 04:42:43 --- Created an attachment (id=28576) --> (http://bugs.winehq.org/attachment.cgi?id=28576) Fail to copy a file over itself
This patch fixes uTorrent for me. I've tested on Vista and overwriting a file there with itself fails with ERROR_SHARING_VIOLATION. This patch gets Wine to do the same.
I'll send it to wine-patches as soon as Julliard comes back from holiday.
http://bugs.winehq.org/show_bug.cgi?id=21156
Faufnir faufnir@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |faufnir@gmail.com
--- Comment #21 from Faufnir faufnir@gmail.com 2010-06-05 06:12:05 --- Cool, thanks for looking into it Damjan ;)
(In reply to comment #20)
Created an attachment (id=28576)
--> (http://bugs.winehq.org/attachment.cgi?id=28576) [details]
Fail to copy a file over itself
This patch fixes uTorrent for me. I've tested on Vista and overwriting a file there with itself fails with ERROR_SHARING_VIOLATION. This patch gets Wine to do the same.
I'll send it to wine-patches as soon as Julliard comes back from holiday.
http://bugs.winehq.org/show_bug.cgi?id=21156
yourparadigm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |yourparadigm@gmail.com
--- Comment #22 from yourparadigm@gmail.com 2010-06-05 11:14:22 --- +!
http://bugs.winehq.org/show_bug.cgi?id=21156
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #23 from Damjan Jovanovic damjan.jov@gmail.com 2010-06-11 12:08:28 --- Patch is in latest Git. Resolving fixed.
http://bugs.winehq.org/show_bug.cgi?id=21156
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #24 from Alexandre Julliard julliard@winehq.org 2010-06-11 12:52:33 --- Closing bugs fixed in 1.2-rc3.
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #25 from chemacg@gmail.com 2010-06-12 05:44:53 --- I get the same error with wine 1.2-rc3 and new .wine folder, do i need to do something for this to work properly?
Thanks.
http://bugs.winehq.org/show_bug.cgi?id=21156
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|FIXED |
--- Comment #26 from Damjan Jovanovic damjan.jov@gmail.com 2010-06-12 11:25:44 --- It's failing for me too. Reopening.
http://bugs.winehq.org/show_bug.cgi?id=21156
Jeff L lats@yless4u.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lats@yless4u.com.au
--- Comment #27 from Jeff L lats@yless4u.com.au 2010-06-16 08:28:07 --- An observation - if ((h1 = CreateFileW(source, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, + if ((h1 = CreateFileW(source, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0)) == INVALID_HANDLE_VALUE) according to MSDN the file sharing flags refer to subsequent attempts to open the file. Given this is an open_existing, they should not affect this CreateFileW call.
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #28 from Damjan Jovanovic damjan.jov@gmail.com 2010-06-16 08:41:20 --- Jeff: it's the next CreateFile call that fails because of the first one.
The patch here works for uTorrent, but breaks some tests. Another patch I sent passed all tests, but didn't fix this bug like I thought because I made mistake in my test.
Since then I've written and sent in a large number of CopyFile tests and they've been accepted, and my second attempt at a third patch is now in the pipeline (http://source.winehq.org/patches/data/62721) which should fix this bug properly.
http://bugs.winehq.org/show_bug.cgi?id=21156
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #29 from Damjan Jovanovic damjan.jov@gmail.com 2010-06-16 15:37:55 --- The latest patch has been committed to the latest Git. Resolving fixed again.
http://bugs.winehq.org/show_bug.cgi?id=21156
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #30 from Alexandre Julliard julliard@winehq.org 2010-06-18 12:47:06 --- Closing bugs fixed in 1.2-rc4.
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #31 from Faufnir faufnir@gmail.com 2010-06-19 05:30:24 --- (In reply to comment #30)
Closing bugs fixed in 1.2-rc4.
Still seems to fail for me when adding torrent files, uploads data then returns the same message as before, "invalid torrent file", then each subsequent attempt fails instantly =(
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #32 from Damjan Jovanovic damjan.jov@gmail.com 2010-06-20 22:10:31 --- Works perfectly for me in Wine 1.2-rc4
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #33 from chemacg@gmail.com 2010-06-21 10:15:51 --- Yep, it's working perfectly for me too, thanks ;)
http://bugs.winehq.org/show_bug.cgi?id=21156
Lord Alderaan lordalderaan@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lordalderaan@gmail.com
--- Comment #34 from Lord Alderaan lordalderaan@gmail.com 2010-06-22 04:56:16 --- Working fine here too in wine-1.2-rc4. Thanks a lot Damjan Jovanovic!
http://bugs.winehq.org/show_bug.cgi?id=21156
Gaben szijartg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |szijartg@gmail.com
--- Comment #35 from Gaben szijartg@gmail.com 2010-10-13 04:44:06 CDT --- (In reply to comment #29)
The latest patch has been committed to the latest Git. Resolving fixed again.
so, how can I fix it this problem? because I don't understand, sry. can you write a little tutorial?
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #36 from Jeff L lats@yless4u.com.au 2010-10-13 05:02:29 CDT --- What it is saying is that you need the latest wine release and the patch is already applied. The release where it was fixed was wine-1.2-rc4.
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #37 from Gaben szijartg@gmail.com 2010-10-13 21:16:28 CDT --- (In reply to comment #36)
What it is saying is that you need the latest wine release and the patch is already applied. The release where it was fixed was wine-1.2-rc4.
I see... thx, but I cant install to my 64bit debian :( can you help me?
http://bugs.winehq.org/show_bug.cgi?id=21156
--- Comment #38 from Evert Mouw post@evert.net 2010-10-14 03:01:15 CDT --- Please guys, this system is for discussing bugs, not for asking basic linux usage questions. Gaben, google about "compiling from source", "git", "debian remove package", and visit www.linuxquestions.org
http://bugs.winehq.org/show_bug.cgi?id=21156
Simón simon@simonbcn.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|simon@simonbcn.net |