I’m Just an Avatar

Nanci Barthelmess’ blog

[RESOLVED] Does anyone know what borked WINE this week?

Posted by BostonPeng on 2 November 2008

Somehow in the past week I went from having apps I could use with no trouble to not being able to see squat in WINE windows. I made a thread on the Ubuntu Forums about the issue yesterday but haven’t gotten a request so I’m throwing the query out here as well as you can see in the screenshots I included with the post.

Missing text in winecfgThis is what I get when I try to run winecfg. As you can see there’s no text, not even the text on the tabs themselves, so it’s impossible for me to set anything. I can’t even set the version of Windows used because I can’t see which version is which.

I tried blowing away both WINE and CrossOver Pro to try to undo any changes I had made, and I’ve tried several different themes, all to no avail. When I try a program called Gentibus CD (formerly known as VistaCD), which worked fine in CrossOver a few days ago, it’s now so borked I can’t even load my old cd database so I can try to import it into a Linux-native app.

I’m at my wits end. I don’t even know at what point things screwed the pooch although I’ve tried enough things that I should have rolled them back by now if it were something I had done. Does anyone have any ideas what I’m missing?

Updated 3 November 3:30 pm EST: It looks like an Nvidia regression is causing the issue. In fact now that I think about it the issues started after installing the beta drivers. Now that I have it narrowed down I guess I can reboot and use the onboard Intel graphic subsystem to get the apps installed and set up in Crossover Pro. Then I can switch back to my normal Nvidia setup to get most of my tasks done. Although hopefully now that we know it’s aregression we can get the bug squashed before too much longer. I’ll keep posting updates as I get them.

RESOLVED 6 November 7:30 am: Thanks to comment #144, from Peter Remmers, on Launchpad bug #251107 I was able to get this issue resolved. It turns out there is an entry on the WINE FAQ that I completely missed on several passes through the page.

6.18. Using wine over remote X11 sessions and No text or damaged text displayed

Please make sure not have added any fonts to wine. Font conflicts can sometimes cause a similar issue. If a fresh wine prefix.(A copy of wine that nothing has been done to yet) Is having this problem. Try setting following in registry

[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"ClientSideWithRender"="N"

Place above in text file and it can be inserted into registry by “regedit settings.txt”.

This was report as been required of OS X on the 1 Dec 2007. This may change. Please apply only as required.

What I did was simply place the text file, which I called settings.txt, into ~/.wine/drive_c and in Terminal run

env WINEPREFIX="/home/[YourUsername]/.wine" regedit settings.txt

Updated 9 Dec: You should use your username to identify the location of your home folder. I don’t think your system would have a clue as to the location of my /home directory, unless you also have a user named Peng. My bad.

I’m not sure if I needed to run the env WINEPREFIX="/home/peng/.wine" but I did just to make sure it would run. The response I got was simply

:~$

CrossOver - Run Windows Commandwhich means it ran the command with no problems. Since I have CrossOver Linux Pro installed on this box I used Applications > CrossOver > Run a Windows Command. Then I clicked the Browse button, set the filetype to All files (*), located the file (which I had copied into ~/.cxoffice/win98/drive_c just to make it easier for me), selected settings.txt and clicked Open. I edited the command to put regedit in the front and clicked Run. (The dialog box was widened to show you the entire command I ran.)

WINE font issue - running regedit

Now I have full use of both the WINE configuration window and my Windows apps under CrossOver Linux Pro.

Thanks to everyone who helped diagnose and resolve my issue. And Peter? I owe you a brew. :)

18 Responses to “[RESOLVED] Does anyone know what borked WINE this week?”

  1. Paul said

    Thanks-
    I have exactly this problem with a fresh install of Wine in Intrepid. I just installed intrepid and just installed Picasa. No menus. I made the settings.txt file and placed it in the proper folder per instructions. When I run the env WINEPREFIX=”/home/username/.wine” regedit settings.txt in the terminal I get a message that I am not the owner of that folder. I still have the problem with no menus.

    Any ideas? You are one of the only ones I have seen discuss this.

  2. Peng said

    I’m not sure why that didn’t work. Did you try running the command as just “wine regedit settings.txt"? The only other thing I can think of is that the WINE drive_c tends to have root ownership. You can try it by running it as sudo or going in and changing the ownership to your user. You can change ownership by running sudo nautilus in the terminal and then right click on the appropriate folder and using Properties > Permissions. Although I'm pretty sure I didn't do that on my system so I'm not sure what could be the issue.

    You might also try posting a comment on the topic I link to st the very top of my post. Either way, if you find a solution please post it here so others can find it easily.

  3. Roy said

    Good call. It fixed it right away. This happened to me right after I upgraded to ubuntu 8.10 from 8.04 GOS Gadgets. After the upgrade I was forced to install the restricted drivers and thats when I saw the blank or distorted text on wine and wine apps. Just a tip, make sure you are NOT in “root terminal”, do not use root permission on wine!

  4. Peng said

    Glad I could help, Roy, and you’re absolutely spot on about using root. You should never run any WINE or CrossOver apps as sudo. Not only is it bad form from a security standpoint it will also use an different set of files than you normally use and some of your apps may not work properly.

    There are rare instances when I’ve had to run a Nautilus session as root to do some specific, upper-level tech tasks (not for the faint of heart or technical expertise) but those were very rare and very specific cases. If you’re not absolutely certain that you should use root to do something in WINE or CrossOver then don’t.

  5. sasa said

    thanks for the solution,but it doesn’ work for me!I placed the settings.txt file in the right directory,but when I enter env WINEPREFIX=”/home/username/.wine” regedit settings.txt I get the message
    “wine: chdir to /home/peng/.wine
    : No such file or directory”
    can anyone help,please!7

    • Peng said

      You should have run

      env WINEPREFIX=”/home/[YourUsername]/.wine” regedit settings.txt

      Otherwise your system would look for my /home partition, which of course it probably won’t find. I’ll fix that.

  6. sasa said

    Thanx for a fast reply,man!my bad,too;)!but,now I get this message:
    sasa@sasa-desktop:~$ env WINEPREFIX=”/home/sasa/.wine” regedit settings.txtwine: invalid directory ”/home/sasa/.wine” in WINEPREFIX: not an absolute path
    sasa@sasa-desktop:~$ env WINEPREFIX=”/home/sasa/.wine” settings.txt
    >

    As you see I’ve tried both regedit settings.txt and just settings.txt
    file name is actually settings.txt
    in first case the response was invalid directory……not an absolute path
    and in the second case just “>”
    as you probably can see I am a beginner with ubuntu,hope you can help again!7

  7. Peng said

    Sorry for the delay in responding. I’d open up Nautilus and track down the proper folder manually. Don’t forget to use Ctrl-H to show the hidden folders if you don’t see them at first.

    Are you running WINE or CrossOver? CrossOver does things a little differently. It uses ~/.cxoffice/drive_c as the starting point.

    You may want to go ahead and post a query on the Ubuntu Forums if that still doesn’t fix things. You can go ahead and add it to the thread I started (the first link in my post). That may get you assistance a tad faster.

  8. Tim said

    Hi, in searching for a solution to font not being displayed in Wine I found your blog post and post to ubuntuforums. I have tried the fix listed at wine.wiki and expanded on in this post. I placed the regedit setting.txt in the correct directory.

    /home/gtm/.wine/drive_c

    I have run the command
    env WINEPREFIX=”/home/[YourUsername]/.wine” regedit settings.txt
    in the gnome terminal. When I run it nothing much happens.

    gtm@gtm-desktop:~$ env WINEPREFIX=”/home/gtm/.wine” regedit settings.txt
    >

    After hitting return the > comes up in the terminal and nothing else happens.

    When I open up Configure Wine. I still don’t have fonts. Well, they are there . . . they flash on the screen extremely fast and disappear. If I click on an option the font may flash in and out of view. I have tried reinstalling Wine . . . purging it and reinstalling.

    I am running Ubuntu 8.10. Also installed Intrepid KDE (which has been a source of some problems).

    If you can think of something I might be missing let me know.

    Thank you, Tim

    • Peng said

      I’m not sure what that may be happening. Getting no response after running that should be an indication that it succeeded. Do you have the latest video drivers for your board? I know mine were pretty borked until I got some new drivers for my Nvidia card.

      Also, which version of WINE do you have installed? If you have the version that came with Intrepid you may need a newer version. I’m not sure which version of WINE came with Intrepid or which version I was running when I found the solution (it looks like 1.1.18 from the date of the release announcement), but version 1.1.18 has a fix for bug 14658 – Font rendering regression that I believe was a part of the fix. If you’re not using the current version (1.1.10) I recommend adding their repository to your sources.list file. The WINE devs recently released a makeover for their site and I keep running into 404 errors but you should be able to get the instructions from Google’s cache.

  9. jeremy cobert said

    Peng , i got half way there with your help, then i improvised the rest and fixed it.
    create the settings text as shown but name it settings.reg
    i left it in my home directory for easy finding later.

    in terminal type
    “wine regedit”
    and it opens up the windows registry. from there (its hard to see but you can do it) the left most tab is registry and the first drop down is “import registry file” select that and browse to your home folder and select the “settings.reg” file. then all i had to do it relaunch my wine programs and they were fixed.i was then able to go back and check that the reg key was added properly… all is well !

    many thanks Peng !
    strangely google Picasa is still flaky, but the rest of my wine apps are fine.
    ps. gforce TI 4200, ubuntu Ibex

  10. Sandi said

    I have the same problem. I try the solution from above. Then it’s fixed.
    Thanks for all.

  11. Roberto said

    Thank you jeremy cobert, yourtrick worked perfectly…unfortunately the trick from Peng did worked as expected…

  12. dannybuntu said

    MAdre Mio! It Works! Reposting on Me Blog :) Thanks sir

  13. Jeremy said

    To be more precise, maybe you should make the instructions show the following:

    Press ALT+F2
    type in: gedit ~/.wine/c_drive/settings.txt
    and press enter

    Copy+paste the following into the file:

    [HKEY_CURRENT_USER\Software\Wine\X11 Driver]
    “ClientSideWithRender”=”N”

    Save the file and close gedit.

    Open a terminal window (ALT+F2, gnome-terminal)

    copy+paste the following and hit enter
    regedit ~/.wine/c_drive/settings.txt

    (the ~ makes it the home folder of the logged in user, so no need to edit the command like [Your_username] above)

    Worked perfectly! Thanks for the solution!

  14. Clint said

    Found your instructions and tried to follow them. I get the following in terminal

    me@me-laptop:~$ regedit ~/.wine/c_drive/settings.txt
    regedit: File not found “/home/justarius/.wine/c_drive/settings.txt” (2)
    me@me-laptop:~$ fixme:gdi:get_default_charset unhandled codepage 28604 – use ANSI_CHARSET for default stock objects

    • Peng said

      I’d put a copy of your settings.txt directly in the folder you’re needing to run it and forget about the path. Remember, Windows under WINE doesn’t know anything about Linux paths. It probably saw the “~/” and asked “WTF???”

Comments are closed.