http://bugs.winehq.org/show_bug.cgi?id=30632
Bug #: 30632 Summary: Sims 3 fails to validate disc Product: Wine Version: 1.4 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: hendrik.knackstedt@t-online.de Classification: Unclassified
Created attachment 40104 --> http://bugs.winehq.org/attachment.cgi?id=40104 Logs created by PlayOnLinux
When trying to start The Sims 3, I can start the launcher and see the games intro video followed by the loading screen. After that I get an ingame message that "Disc authorization failed. It could not be checked whether the disc is a valid The Sims 3 disc or not. Please contact customer support." and the game exits.
The disc seems to be recognized at /dev/sr0 (according to winecfg) which also shows a serial for the CD. It's automatically assigned letter "D:" and set as "Network share" (cannot change this). The mounting point "/media/Sims3" seems to be correct.
The games checks for the CD two times: The first check right after starting the game from launcher is passed successfully if the CD is in the CD drive. The second fails every time I try to start the game.
I'm attaching two debug logs created by playonlinux which I used to install the game.
I also installed vcrun6, vcrun2010, vcrun2005, d3dx9, dotnet20sp2 and mono210 (because there was an error message in the logs that said to install mono) using playonlinux. I also installed the official EA patches and brought the game to the latest version.
Further I adjusted settings as described in the appdb: GLSL disabled, Offscreen Rendering: fbo, Direct Draw: opengl.
I don't see any graphic problems so far.
This all happens on up-to-date Ubuntu 12.04 LTS.
Could there maybe be a permissions problem?
Please let me know if you need any further information.
http://bugs.winehq.org/show_bug.cgi?id=30632
Hendrik Knackstedt hendrik.knackstedt@t-online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hendrik.knackstedt@t-online | |.de
http://bugs.winehq.org/show_bug.cgi?id=30632
Hendrik Knackstedt hendrik.knackstedt@t-online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cerebro.alexiel@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30632
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #1 from Dan Kegel dank@kegel.com 2012-05-09 11:11:45 CDT --- Might be a dup of bug 30410 or a dup or a regression of bug 26273, but it's hard to tell since you're using POL. Please either reproduce with fresh wine without POL, or try reproducing on Ubuntu 11.10, or take it to the POL support forum.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #2 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-09 11:59:15 CDT --- I've had the exact same issue on Ubuntu 11.10 before.
I've also tried installing in wine directly with same results. This is not a POL issue. I didn't use automatic POL installation by the way, but rather did a manual install so it should be like a wine install.
Older wine versions also gave me the same results on 11.10.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #3 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-09 12:00:41 CDT --- I don't think it's a duplicate of bug 30410. It doesn't look like the game crashes. It seems like it exits on purpose because it cannot authenticate the disc.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #4 from Austin English austinenglish@gmail.com 2012-05-09 13:43:57 CDT --- (In reply to comment #2)
I've had the exact same issue on Ubuntu 11.10 before.
I've also tried installing in wine directly with same results. This is not a POL issue. I didn't use automatic POL installation by the way, but rather did a manual install so it should be like a wine install.
A manual install still uses wine compiled by play on linux. You need to use vanilla wine.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #5 from Alex cerebro.alexiel@gmail.com 2012-05-09 15:09:14 CDT --- The game is reported to work on AppDB so you seem to have something different than others. I asked you to test it with POL to see if it was a configuration issue and you said winetricks didn't help so the problem seems to be in vanilla wine.
From now, stop using winetricks or POL, and use a clean wine prefix.
I also asked you to test with an ISO file of the disc (created by dd) to determine if your CD drive was the root or not of the problem. Try as root but in the end, you should have a 6GB ISO file.
Then, you could do a md5sum of the ISO file and post it here, mine is alex@leon:~$ md5sum Games/TheSims3.iso e052f1a5d3a6e594e33ed3e76325426e Games/TheSims3.iso
You said you updated the game. Does the game without any update have the same issue ?
You can do (with a wine prefix already created) WINEDEBUG=+tid,relay wine path/to/TS3.exe 2>&1 | gzip > TS3.log.gz
If the log is not too big, you can upload here or somewhere else. If it's too big (say more than 10MB), you can also cut the file or keep only the latest 10MB which should contain the error.
Please note that +relay will log every single call (with small exceptions) hence a big log file. The more time (duration) wine runs with +relay, the bigger will be the log file so you can try shortening your recording (skipping intro, menus...).
Do $gunzip TS3.log.gz --stdout | grep MessageBox to see if the error message is in the log
And if you are brave enough, you can search the line where MessageBox appears and look at functions calls before this line.
http://bugs.winehq.org/show_bug.cgi?id=30632
Hendrik Knackstedt hendrik.knackstedt@t-online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-14 14:00:22 CDT --- Hey!
I created an ISO using following command:
sudo dd if=/dev/cdrom of=TS3.iso
It was about 6 GB but had a different md5sum than yours.
Nevertheless, I finally got it working!
It was a really simple thing: You have to be root when you start the game on Ubuntu!
I suppose Ubuntu mounts CDs/DVDs as root and ISOs can also ONLY be mounted as root so running
chown -R root:root ~/.sims (My wineprefix)
I switched my Wineprefix over to be owned by root.
Now I started the game from this prefix and it recognized the CD/DVD!
I can now play with minor problems (probably only configuration things).
We should probably add a comment to AppDB adressing this problem since the average user (like me) might not think about something like this.
Thanks to all who helped solving this problem! You're awesome!
http://bugs.winehq.org/show_bug.cgi?id=30632
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED |
--- Comment #7 from Dan Kegel dank@kegel.com 2012-05-14 14:36:49 CDT --- Running on root is not a fix.
What does ls -l /media/Sims3 report?
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #8 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-14 15:30:30 CDT --- Ok, so it's not fully fixed yet.
So I got it working using the ISO-image mounting as root.
However, CD still doesn't work.
I tried to unmount and remount at exact same place I had mounted the ISO before with root priviliges but Sims 3 still says it cannot check the disc.
Maybe this is because priviliges are only set to root for the CD itself but not for its content? How can I change the owner of the CDs content? Is this even possible?
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #9 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-14 15:33:01 CDT --- Output of ls -l /media/Sims3:
insgesamt 5896 -r--r--r-- 1 4294967295 4294967295 54544 Apr 30 2009 Autorun.exe -r--r--r-- 1 4294967295 4294967295 45 Okt 22 2008 Autorun.inf dr-xr-xr-x 2 4294967295 4294967295 160 Apr 30 2009 Caches -r--r--r-- 1 4294967295 4294967295 3204962 Apr 30 2009 data1.cab -r--r--r-- 1 4294967295 4294967295 195056 Apr 30 2009 data1.hdr -r--r--r-- 1 4294967295 4294967295 512 Apr 30 2009 data2.cab -r--r--r-- 1 4294967295 4294967295 10134 Aug 12 2008 eauninstall.ico dr-xr-xr-x 3 4294967295 4294967295 84 Apr 30 2009 Game dr-xr-xr-x 4 4294967295 4294967295 192 Apr 30 2009 GameData dr-xr-xr-x 4 4294967295 4294967295 1372 Apr 30 2009 installer -r--r--r-- 1 4294967295 4294967295 555520 Jun 20 2008 ISSetup.dll -r--r--r-- 1 4294967295 4294967295 25506 Apr 30 2009 layout.bin -r--r--r-- 1 4294967295 4294967295 319488 Mär 5 2009 _Setup.dll -r--r--r-- 1 4294967295 4294967295 164463 Okt 3 2008 setup.gif -r--r--r-- 1 4294967295 4294967295 707 Apr 30 2009 setup.ini -r--r--r-- 1 4294967295 4294967295 354226 Apr 30 2009 setup.inx -r--r--r-- 1 4294967295 4294967295 548828 Mär 28 2009 setup.isn -r--r--r-- 1 4294967295 4294967295 174684 Okt 22 2008 Sims3.ico -r--r--r-- 1 4294967295 4294967295 398608 Apr 30 2009 Sims3Setup.exe -r--r--r-- 1 4294967295 4294967295 152 Apr 30 2009 skuversion.txt dr-xr-xr-x 8 4294967295 4294967295 320 Apr 30 2009 Support dr-xr-xr-x 3 4294967295 4294967295 88 Apr 30 2009 The SIMS(tm) 3 Install.app dr-xr-xr-x 2 4294967295 4294967295 220 Apr 30 2009 Thumbnails
It's the same for ISO and CD.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #10 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-15 06:50:28 CDT --- Ok, I got the .iso working now without being root. The problem was that everytime I mount the .iso the symbolic link (which I named e::) is reset to be owned by "root:disk" and only root can access files. So I set it to "hendrik:disk" and gave everybody reading priviliges.
Now I can play the game with the .iso. However, CD still does NOT work.
I tried to do something similar here and also tried to mount like this: sudo mount -r -o uid=1000,gid=1000 /dev/cdrom /media/Sims3
but without success.
Maybe it's a different issue here?
I am now creating the log as described by Alex and will be uploading it soon.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #11 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-15 07:19:24 CDT --- Alex, to answer your question: Yes, the game does have the same issue without updates.
I created the log now but there seems to be nothing that contains "MessageBox" in there.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #12 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-15 07:59:22 CDT --- Since the file is too large and I didn't want to shorten it you can find it in my Ubuntu One account:
http://ubuntuone.com/3eftRTYBF2JWBaND5tbl6b
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com 2012-05-15 10:44:53 CDT --- I'm not sure if it makes any difference but are you a member of the cdrom group?
Can you dd the disk to iso without being root?
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #14 from Alex cerebro.alexiel@gmail.com 2012-05-16 02:05:05 CDT ---
[...] is reset to be owned by "root:disk" and only root can access files. [...]
No, nothing is reseted. When you create a regular file (text, movie, ISO...), you are the owner of the file because you created it. A symbolic link points to another file, in your case something like /dev/cdrom. If you do $ls -l /dev/cdrom, you'll see "root" as the owner and "disk" for the group. This is because the /dev directory is created dynamically at boot time by the system (hence root as the owner). But since users may need to access the cdrom content, the group is set to "disk". If you're confused by linux permissions, owner and groups, maybe you should learm more about it by googling these terms.
So Bruno is right, by belonging to the "cdrom" group, you should be able to dd the game without being root. The $groups command lists the groups you are belonging ro.
If you can dd the game being hendrik, then you'll also be the owner of the ISO file. Then, wine will have the read access to your symbolic link .. and the ISO content.
[...] sudo mount -r -o uid=1000,gid=1000 /dev/cdrom /media/Sims3 [...]
Mine is mounted read only so -r seems useless. Also, from your $ls -l /media/Sims3, all seems ok so no need to force the user and the group. All you need is reading files in /media/Sim3.
Except this rights issue, the bug remains : with the ISO file, the game works while with the real disc, it does not. I must admit I only played the game with the ISO because it's handy and faster (I tried installing the game with the disc but it was sooooo long..)
Even if our disc are not identical (md5sum different), I will try playing the game with the real dic (and install with the ISO file as it seems an independant issue).
Finally (yes, I speak a lot), I started reading your log file and you was right, no MessageBox presence so I will have to take some time to read it. Are you sure the error appeared while recording the log ? Just to be sure the error is contained in the log...
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #15 from Hendrik Knackstedt hendrik.knackstedt@t-online.de 2012-05-16 03:37:50 CDT ---
No, nothing is reseted.
Well, the blockdevice is! Everytime I remount the iso it's again owned by root:disk, not only after booting. So I had to add myself to the group "disk" like you suggested, re-login and now the iso finally works.
For the CD, however, this cannot be the problem since I'm already in the cdrom group.
I'll try to create a .iso without being root later on to see if I maybe just made a mistake when I tried last time.
Are you sure the error appeared while recording the log ?
yes
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #16 from Austin English austinenglish@gmail.com 2012-05-16 13:05:49 CDT --- Discussion about permissions/making iso's/etc. belongs on the forum, not bugzilla.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #17 from Alex cerebro.alexiel@gmail.com 2012-05-18 13:14:31 CDT --- I can confirm this bug with my CD so it will be easier to solve.
I made two logs, one using the ISO and another one with the CD. The interesting part is starting from line #3861952 of your log.
The game calls GetDriveTypeA for each drive (C: -> DRIVE_FIXED and D: -> DRIVE_CDROM). Then it calls GetVolumeInformationA to retrieve the volume name and its flags. It calls GetDiskFreeSpaceExA to get the the total number of bytes of the disc, GetVersionExA to check the OS version and finally calls GetLastError. In your log, none of these functions fail but the error returned is ERROR_MORE_DATA (while it was ERROR_SUCCESS before).
Note that The Sims 3 is a bit GetLastError-addict : the functions is in the top 10 of the functions called by the game.
I made a quick test case and in fact, with the ISO, the last error is ERROR_INVALID_PARAMETER.
Will try to investigate more and will keep you up to date.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #18 from Dan Kegel dank@kegel.com 2012-05-18 13:26:23 CDT --- fwiw, the same or similar bug was fixed earlier, see bug 26273 for some notes that may be of interest.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #19 from Alex cerebro.alexiel@gmail.com 2012-05-28 04:45:01 CDT --- For your information, here's an update on this bug.
The ERROR_INVALID_PARAMETER is anormal but the game doesn't care because the function returns TRUE (meaning success).
I have to write a fix for that but it won't fix this bug.
The following describes what ioctl calls the game with '>' meaning 'with an ISO file' and '<' meaning 'with the real disc in the drive'
IOCTL_SCSI_GET_ADDRESS (0x00041018)
FALSE, ERROR_NOT_SUPPORTED
< TRUE (= success) < IOCTL_SCSI_GET_INQUIRY_DATA (0x0004100c) < TRUE (= success) IOCTL_DVD_READ_STRUCTURE (0x00335140) [format=0 : physical descriptor]
ret = FALSE, ERROR_INVALID_PARAMETER
< ret = TRUE (= success) < IOCTL_DVD_READ_STRUCTURE (0x00335140) [format=4 : manufacturer descriptor] < ret = TRUE (= success)
IOCTL_SCSI_GET_ADDRESS (0x00041018) FALSE, ERROR_NOT_SUPPORTED IOCTL_DVD_READ_STRUCTURE (00335140) FALSE, ERROR_INVALID_PARAMETER IOCTL_SCSI_PASS_THROUGH (0x0004d004) FALSE, ERROR_NOT_SUPPORTED
So the game works with the ISO file because wine tells it these ioctls are 'not supported' (the loopback device is not a real drive)
The last call made by the game before displaying the error is when requesting a manufacturer descriptor. I ran the game in a real windows and found some missing leading bytes.
After some research, I found this issue was the same as in #29669. I'm waiting for an answer there.
Meanwhile, I'm trying to fix the ERROR_INVALID_PARAMETER error in GetVolumeInformation.
I hope this bug will be fixed by wine 1.5.6.
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #20 from Alex cerebro.alexiel@gmail.com 2012-07-14 04:17:21 CDT --- I can't mark this bug as a duplicate of #29669. Can someone (the reporter or anyone with such privilege) do it for me ?
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #21 from Dan Kegel dank@kegel.com 2012-07-14 07:16:35 CDT --- Wait, didn't you say in bug 26273 that the game was working with the disc for you?
http://bugs.winehq.org/show_bug.cgi?id=30632
--- Comment #22 from Alex cerebro.alexiel@gmail.com 2012-07-14 07:35:02 CDT --- Actually, I always used the ISO because of the slowness of my CPU + the fact I had to use the software rasterizer (poor VIA graphic card and bad driver).
The issue was also present with the ISO and since an ISO is a byte-by-byte copy of the real disc, I thought it was the same.
Sorry for the confusion.
http://bugs.winehq.org/show_bug.cgi?id=30632
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #23 from Dan Kegel dank@kegel.com 2012-07-14 07:45:55 CDT --- ok, thanks for the info.
So bug 26273 was kind of about the iso, and bug 29669 and this one are kind of about the real disc.
*** This bug has been marked as a duplicate of bug 29669 ***
http://bugs.winehq.org/show_bug.cgi?id=30632
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #24 from Jerome Leclanche adys.wh@gmail.com 2012-07-19 07:43:21 CDT --- Closing