CrossOver Support - Community Forums

Important Information These are community forums and not official technical support. If you need official support: Contact Us

CrossOver Linux
Discussion about CrossOver Linux

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Reserve range error on previously working installation

Hi,

I have been using Crossover standard_10.1.0-1_i386 on linux (10.04 LTS) for almost 2 years. It was working fine until one week when I did some regular update of the system. After that, it has stop working and it is always saying this error:

[i]preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00110000-68000000
preloader: Warning: failed to reserve range 7f000000-82000000[/i]

I have tried to uninstall it and install it several times. I have cleaned up the system in between just in case. I have download and install version crossover-standard_10.2.0-1_i386 but no success. I have even download the latest version of CrossOver (11.1) but no success either.

Everytime I try to create a new bottle it says the following:

[i]preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00110000-68000000
preloader: Warning: failed to reserve range 7f000000-82000000
setup:error: 'rundll32 DefaultInstall wine.inf' failed
cxbottle:error: unable to create the 'New Bottle' bottle in '/home/sp83670/.cxoffice/New Bottle'[/i]

I have search for some known bugs and I found something related to an issue of wine-preloader trying to reserve memory. The solution proposed was to set vm.mmap_min_addr=0 (sudo sysctl -w vm.mmap_min_addr=0) and to make it permanent, to edit file /proc/sys/vm/mmap_min_addr and change it there. I have done it but unfortunately no success either.

I have reviewed what was updated on the system and nothing seems to be under suspect. This is the list of changes:
[i]apparmor (2.5.1-0ubuntu0.10.04.3) to 2.5.1-0ubuntu0.10.04.4
apparmor-utils (2.5.1-0ubuntu0.10.04.3) to 2.5.1-0ubuntu0.10.04.4
libapparmor-perl (2.5.1-0ubuntu0.10.04.3) to 2.5.1-0ubuntu0.10.04.4
libapparmor1 (2.5.1-0ubuntu0.10.04.3) to 2.5.1-0ubuntu0.10.04.4
linux-headers-2.6.32-41 (2.6.32-41.89) to 2.6.32-41.90
linux-headers-2.6.32-41-generic (2.6.32-41.89) to 2.6.32-41.90
linux-image-2.6.32-41-generic (2.6.32-41.89) to 2.6.32-41.90
linux-libc-dev (2.6.32-41.89) to 2.6.32-41.90
openclient-savap-config (0.39) to 0.41
openclient-savap-modules (0.39) to 0.41[/i]

Now I have run out of ideas. What is really driving me crazy is that it was working before!!

Any help or suggestion will be highly appreciated.

Thanks in advance.

Raul


This issue has been forwarded to the Official CodeWeavers Ticket System. If you have observed this issue and would like to report it as well, please open a support ticket or send an email to info@codeweavers.com with a description of what you are seeing and a link to this post.

Thank you!
The CodeWeavers Team


That looks like Wine (inside Crossover) running out of memory. http://www.linuxquestions.org/questions/slackware-14/dos-support-unavailable-855667/#post4220871 has the full post, but basically in a terminal you want to run

sudo sysctl vm.mmap_min_addr=0

and then in /etc/sysctl.conf do

vm.mmap_min_addr=0

Hi Andrew,

Thanks for the reply. I have already try that and it didn't work. As I said in my post, the weird thing is that it was working before for almost two years.

Any idea what may have change to bring up that issue?

This is the trace that I get when I launch "cxsetup" and try to create a bottle.
[i]preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00110000-68000000
preloader: Warning: failed to reserve range 7f000000-82000000
cxsetup:error: an operation raised an exception:
Traceback (most recent call last):
File "/opt/cxoffice/lib/python/pyop.py", line 153, in runOperations
operation.main()
File "/opt/cxoffice/lib/python/bottlecollection.py", line 244, in main
self.bottleObject.load_installed_applications()
File "/opt/cxoffice/lib/python/bottlewrapper.py", line 309, in load_installed_applications
self.installed_packages_off_thread = appdetector.fast_get_installed_applications(self.name, profiles)
File "/opt/cxoffice/lib/python/appdetector.py", line 239, in fast_get_installed_applications
return get_installed_applications(bottlename, profiles)
File "/opt/cxoffice/lib/python/appdetector.py", line 138, in get_installed_applications
uninstall_apps = _get_uninstall_applications(bottlename)
File "/opt/cxoffice/lib/python/appdetector.py", line 119, in _get_uninstall_applications
for keyname, values in _get_uninstall_info(bottlename):
File "/opt/cxoffice/lib/python/appdetector.py", line 20, in _get_uninstall_info
subkeys, _values = bottlequery.get_registry_key(bottlename, uninstaller_key)
File "/opt/cxoffice/lib/python/bottlequery.py", line 714, in get_registry_key
serialdata = manipulator.send('getregkey %s' % path).get()
File "/opt/cxoffice/lib/python/bottlequery.py", line 414, in get
raise IOError("The cxmanip process quit before serving this query.")
IOError: The cxmanip process quit before serving this query.
[/i]

Can it be something related to python?

Thanks for your help

Raul

Hello Raul,

I put my Ubuntu 10.04 box on the same version you are on this morning to try and reproduce what you are seeing (2.6.32-41-generic I assume from your first message).

Sadly, I did not immediately see the symptoms you've described. I went to close everything from CrossOver 10.2 out so I could update the forum here and the Manage Bottles window hung up. When I cancelled, I received the same error you reported. Unfortunately, it is not reproducible (it doesn't happen every time for me by any means). Again, the only time I got the error is when I closed out of CrossOver after a GUI window hung up.

It is possibly related to Python.

I do not see this on a newer version of CrossOver (like 11.0.3, 11.1 or the impending 11.2). I use this machine daily for testing and communication and I certainly create and delete bottles on it often.

If you are experiencing this every time you attempt to create a bottle, we would be interested in taking a bit more of a look. We'd need the output after you do:
/opt/cxoffice/bin/cxbottle --bottle TESTING --create
or (because the above doesn't run the GUI):
CX_LOG=~/Desktop/TESTING.log CX_DEBUGMSG= /opt/cxoffice/bin/cxsetup

It may also be an update problem. Perhaps one of the libraries on your system is out of sync?

Hi Caron,

I have run the two commands.

This is the output for the first one (/opt/cxoffice/bin/cxbottle --bottle TESTING --create):

preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00110000-68000000
preloader: Warning: failed to reserve range 7f000000-82000000
setup:error: 'rundll32 DefaultInstall wine.inf' failed
cxbottle:error: unable to create the 'TESTING' bottle in '/home/sp83670/.cxoffice/TESTING'

Ans this is the output for the second one ( CX_LOG=~/Desktop/TESTING.log CX_DEBUGMSG= /opt/cxoffice/bin/cxsetup):

cxsetup:error: an operation raised an exception:
Traceback (most recent call last):
  File "/opt/cxoffice/lib/python/pyop.py", line 153, in runOperations
    operation.main()
  File "/opt/cxoffice/lib/python/bottlecollection.py", line 244, in main
    self.bottleObject.load_installed_applications()
  File "/opt/cxoffice/lib/python/bottlewrapper.py", line 309, in load_installed_applications
    self.installed_packages_off_thread = appdetector.fast_get_installed_applications(self.name, profiles)
  File "/opt/cxoffice/lib/python/appdetector.py", line 239, in fast_get_installed_applications
    return get_installed_applications(bottlename, profiles)
  File "/opt/cxoffice/lib/python/appdetector.py", line 138, in get_installed_applications
    uninstall_apps = _get_uninstall_applications(bottlename)
  File "/opt/cxoffice/lib/python/appdetector.py", line 119, in _get_uninstall_applications
    for keyname, values in _get_uninstall_info(bottlename):
  File "/opt/cxoffice/lib/python/appdetector.py", line 20, in _get_uninstall_info
    subkeys, _values = bottlequery.get_registry_key(bottlename, uninstaller_key)
  File "/opt/cxoffice/lib/python/bottlequery.py", line 714, in get_registry_key
    serialdata = manipulator.send('getregkey %s' % path).get()
  File "/opt/cxoffice/lib/python/bottlequery.py", line 414, in get
    raise IOError("The cxmanip process quit before serving this query.")
IOError: The cxmanip process quit before serving this query.
cxsetup:error: an operation raised an exception:
Traceback (most recent call last):
  File "/opt/cxoffice/lib/python/pyop.py", line 153, in runOperations
    operation.main()
  File "/opt/cxoffice/lib/python/bottlecollection.py", line 244, in main
    self.bottleObject.load_installed_applications()
  File "/opt/cxoffice/lib/python/bottlewrapper.py", line 309, in load_installed_applications
    self.installed_packages_off_thread = appdetector.fast_get_installed_applications(self.name, profiles)
  File "/opt/cxoffice/lib/python/appdetector.py", line 239, in fast_get_installed_applications
    return get_installed_applications(bottlename, profiles)
  File "/opt/cxoffice/lib/python/appdetector.py", line 138, in get_installed_applications
    uninstall_apps = _get_uninstall_applications(bottlename)
  File "/opt/cxoffice/lib/python/appdetector.py", line 119, in _get_uninstall_applications
    for keyname, values in _get_uninstall_info(bottlename):
  File "/opt/cxoffice/lib/python/appdetector.py", line 20, in _get_uninstall_info
    subkeys, _values = bottlequery.get_registry_key(bottlename, uninstaller_key)
  File "/opt/cxoffice/lib/python/bottlequery.py", line 714, in get_registry_key
    serialdata = manipulator.send('getregkey %s' % path).get()
  File "/opt/cxoffice/lib/python/bottlequery.py", line 414, in get
    raise IOError("The cxmanip process quit before serving this query.")
IOError: The cxmanip process quit before serving this query.

Hope this helps.

Thanks

Sorry to ask for more, can you run:
CX_LOG=~/Desktop/test2.log CX_DEBUGMSG= /opt/cxoffice/bin/cxbottle --bottle FOOZLEWARE --create

Hi Caron,

Thanks for your interest and help. You can ask me as many logs as you need!! 😉

I have executed the command: CX_LOG=~/Desktop/test2.log CX_DEBUGMSG= /opt/cxoffice/bin/cxbottle --bottle FOOZLEWARE --create

and this is the answer: unable to create the 'FOOZLEWARE' bottle in '/home/sp83670/.cxoffice/FOOZLEWARE'

And this is the content of the test2.log file:

***** Wed Jun 27 19:00:10 2012
Starting: '/opt/cxoffice/bin/cxbottle' '--bottle' 'FOOZLEWARE' '--create'

CXConfig->read(/opt/cxoffice/etc/cxoffice.conf)
CXConfig->read(/home/sp83670/.cxoffice/cxoffice.conf)
13297: Grabbing the '/tmp/.wine-1000/bottle-fc02-3c155c.lock' lock
13297: Got the '/tmp/.wine-1000/bottle-fc02-3c155c.lock' lock
Running '/opt/cxoffice/share/crossover/bottle_templates/win98/setup' '--create'

***** Wed Jun 27 19:00:11 2012
Starting: '/opt/cxoffice/share/crossover/bottle_templates/win98/setup' '--create'

CXConfig->read(/opt/cxoffice/etc/cxoffice.conf)
CXConfig->read(/home/sp83670/.cxoffice/cxoffice.conf)
creating directory '/home/sp83670/.cxoffice/FOOZLEWARE/drive_c/Program Files/Netscape/Communicator/Program/Plugins'
creating directory '/home/sp83670/.cxoffice/FOOZLEWARE/drive_c/windows/command'
creating directory '/home/sp83670/.cxoffice/FOOZLEWARE/drive_c/windows/fonts'
creating directory '/home/sp83670/.cxoffice/FOOZLEWARE/drive_c/windows/inf'
creating directory '/home/sp83670/.cxoffice/FOOZLEWARE/drive_c/windows/system'
creating directory '/home/sp83670/.cxoffice/FOOZLEWARE/drive_c/windows/system32/drivers'
creating directory '/home/sp83670/.cxoffice/FOOZLEWARE/drive_c/windows/temp'
Creating drive c: -> ../drive_c
Creating drive y: -> /home/sp83670
Creating drive z: -> /
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/mapper/ubuntu-root /       ext4    errors=remount-ro   0       1
/dev/mapper/ubuntu-swap none    swap    sw                  0       0
UUID=1e18af2b-05c7-4c6b-b5fe-fd004e3b1dfc /boot ext4 defaults 0 2
unable to open '/etc/auto.master' for reading: No existe el fichero o el directorio
CXRWConfig->new(/opt/cxoffice/share/crossover/bottle_data/cxbottle.conf)
system encoding='UTF-8'
CXRWConfig->write(/home/sp83670/.cxoffice/FOOZLEWARE/cxbottle.conf)
Running '/opt/cxoffice/bin/wine' '--wl-app' 'explorer.exe' '--no-quotes' '--scope' 'private' '--winver' 'win98' '--dll' 'oleaut32=b;rpcrt4=b;shdocvw=b;*iexplore.exe=b' '/desktop=root' 'rundll32.exe' 'setupapi.dll,InstallHinfSection' 'DefaultInstall' '128' '/opt/cxoffice/share/wine/wine.inf'

***** Wed Jun 27 19:00:11 2012
Starting: '/opt/cxoffice/bin/wine' '--wl-app' 'explorer.exe' '--no-quotes' '--scope' 'private' '--winver' 'win98' '--dll' 'oleaut32=b;rpcrt4=b;shdocvw=b;*iexplore.exe=b' '/desktop=root' 'rundll32.exe' 'setupapi.dll,InstallHinfSection' 'DefaultInstall' '128' '/opt/cxoffice/share/wine/wine.inf'

CXConfig->read(/opt/cxoffice/etc/cxoffice.conf)
CXConfig->read(/home/sp83670/.cxoffice/cxoffice.conf)
Product version=10.2.0
CXConfig->read(/home/sp83670/.cxoffice/FOOZLEWARE/cxbottle.conf)
Mode = 'private'
Environment:
  CX_ROOT = "/opt/cxoffice"
  CX_BOTTLE = "FOOZLEWARE"
  WINEPREFIX = "/home/sp83670/.cxoffice/FOOZLEWARE"
  CX_WINDOWS_VERSION = "win98"
  PATH = "/opt/cxoffice/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
  LD_LIBRARY_PATH = "/opt/cxoffice/lib"
  WINEDLLPATH = "/opt/cxoffice/lib/wine"
  WINEDLLOVERRIDES = "oleaut32=b;rpcrt4=b;shdocvw=b;*iexplore.exe=b"
  LD_PRELOAD = ""
  LD_ASSUME_KERNEL = <undefined>
  WINELOADER = "/opt/cxoffice/bin/wineloader"
  WINESERVER = "/opt/cxoffice/bin/wineserver"
  WINEDEBUG = ""
  CX_LOG = "/home/sp83670/Desktop/test2.log"
  CX_DEBUGMSG = ""
  CX_WINE_USAGE_LOGFILE = "/home/sp83670/.cxoffice/usage.log"
  DISPLAY = ":0.0"
Command:
/opt/cxoffice/bin/wineloader winewrapper.exe --no-quotes --run -- /opt/cxoffice/lib/wine/explorer.exe.so /desktop=root rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 /opt/cxoffice/share/wine/wine.inf

** Wed Jun 27 19:00:11 2012
Starting '/opt/cxoffice/bin/wineloader' 'winewrapper.exe' '--no-quotes' '--run' '--'
'/opt/cxoffice/lib/wine/explorer.exe.so' '/desktop=root' 'rundll32.exe' 'setupapi.dll,InstallHinfSection' 'DefaultInstall' '128' '/opt/cxoffice/share/wine/wine.inf'

preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00110000-68000000
preloader: Warning: failed to reserve range 7f000000-82000000
-> rc=11  (took 0.110159158706665 seconds)
setup:error: 'rundll32 DefaultInstall wine.inf' failed
setup:error: 'rundll32 DefaultInstall wine.inf' failed
-> rc=256  (took 0.366200923919678 seconds)
cxbottle:error: unable to create the 'FOOZLEWARE' bottle in '/home/sp83670/.cxoffice/FOOZLEWARE'
13297: Releasing the '/tmp/.wine-1000/bottle-fc02-3c155c.lock' lock

Let me know if you need more info. In the meantime I am still trying to see if there is something wrong with python. At first everything seems to be up to date.

Raul

I want to back up for a moment because we're scratching our heads a bit... I know you made the permanent change for vm.mmap_min_addr but I want to know if the temporary change works for some reason.

So first, I would try opening a terminal and giving the suggested command:
sudo sysctl -w vm.mmap_min_addr=0
And then from terminal try to create a bottle fromt hat same terminal:
/opt/cxoffice/bin/cxbottle --bottle TESTING --create

If it works please update us.

Next, I want to know what ulimit is set to on your system? All you need to do is type 'ulimit' in terminal (no quotes) and then press enter.

Next thought, is AppArmor turned on? Did it somehow get turned on during your last update? Recently I did an update and lost my /etc/hosts file (of all things)...

Next thought, can we see the output of cxdiag?
/opt/cxoffice/bin/cxdiag --debug

Final thought for now, I have the attention of some of our developers. There's a piece of information about bottle creation we're trying to get CrossOver on your system to give us but it hasn't worked. I'm about to leave for the day but one of my colleagues may check in on this post as well and ask you to run bottle creation in another way.

Hi Caron,

I'm afraid it didn't work. I did as you said and this is the result:

[i]sp83670@sp83670-laptop:~$ sudo sysctl -w vm.mmap_min_addr=0
[sudo] password for sp83670:
vm.mmap_min_addr = 0
sp83670@sp83670-laptop:~$ /opt/cxoffice/bin/cxbottle --bottle TESTING --create
preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00110000-68000000
preloader: Warning: failed to reserve range 7f000000-82000000
setup:error: 'rundll32 DefaultInstall wine.inf' failed
cxbottle:error: unable to create the 'TESTING' bottle in '/home/sp83670/.cxoffice/TESTING'
[/i]

I have checked the ulimit and it is unlimited. I have also check if for some reason AppArmor was activated but it does not look like. Regarding the output of /opt/cxoffice/bin/cxdiag --debug, here it is:
[i]sp83670@sp83670-laptop:~$ /opt/cxoffice/bin/cxdiag --debug
found libICE.so.6
found libSM.so.6
found libXext.so.6
found libaudio.so.2
found libaudiofile.so.0
found libasound.so.2
found libcapi20.so.3
found libcups.so.2
found libesd.so.0
found libfontconfig.so.1
found libGLU.so.1
found libgnutls.so.26
found libgphoto2.so.2
found libgsm.so.1
found libhal.so.1
found libjack.so.0
found libjpeg.so.62
found liblber-2.4.so.2
found liblcms.so.1
found libldap_r-2.4.so.2
found libmpg123.so.0
found libopenal.so.1
found libpng12.so.0
found libresolv.so.2
found libsane.so.1
found libtiff.so.4
found libv4l1.so.0
found libXcomposite.so.1
found libXcursor.so.1
found libXi.so.6
found libXinerama.so.1
found libxml2.so.2
found libXrandr.so.2
found libXrender.so.1
found libxslt.so.1
found libXt.so.6
found libXxf86vm.so.1
found libz.so.1
found libcrypto.so.0.9.8
found libssl.so.0.9.8
getrlimit(RLIMIT_AS) returned 0, max=-1
default screen=0, planes=24
OpenGL vendor = 'Tungsten Graphics, Inc'
[/i]

Thanks

I've asked several of our developers to take a look. The best any of us can get is that there is a memory reservation error. So I have a new question.

If you create a brand new user and try to make a bottle from that account, does CrossOver work?

If that doesn't work I'm not really sure what else to suggest. My own Ubuntu 10.04 machine is not far from me upgrading it just to stay within a supported range (and I'm slowly starting to get used to Unity in 12.04 on my other box...). It may be time for you to consider the same (although it is a very extreme measure and I do hesitate to mention it... Ubuntu 10.04 has served me well).

Note that I'm about to leave for vacation so it'll be more than a week before a response to this thread comes from me

Hi Caron,

Thanks for your help. I have tried what you suggested with unfortunately the same result.

I am considering seriously to make a backup of all my data and reinstall the system again since it is something critical for my daily work and for some business reasons I need to stay attached to this version of Ubuntu..

I must admit that I feel frustrated for not being able to resolve this issue. I myself am a computer engineer and this is one of the few times when a computer is "winning" the puzzle. Well, I guess sometimes it is good to be defeated 😉

Nevertheless I thank you all for your help and support on this issue and for your good work done with Crossover.

Raul

Hi Raoul,

Maybe I'm just bein an idiot, but did you test your RAM?

Quite a few years ago, I had a misbehaving computer which completely eluded any attemp to understand what was going on. I would work fine until I loaded a piece of software and then boom, things went south. It could be any software, the problem was entirely random. No amount of scrutiny revealed the problem until a memory diagnosys tool was used, which revealed a faulty piece of RAM.

I would think that a sudden memory reservation problem could have a hardware problem at it source, and no amount of fooling around with files and settings would solve that. Before reinstalling, maybe you should make use of the tool presented by Ubuntu right in Grub if my memory isn't faulty (memtest86 or something, http://www.memtest.org/).

No that I would presume telling an engineer what to do, I'm just making a wild suggestion! 😀

Hi Jean-Patrick,

I did and it was working fine. At the end I decided to format the whole computer and start from a new fresh installation (good to do from time to time) and ... now everything is working fine.

So I guess that some library was corrupted but we will never know.

Thanks for your help and your time.

Raul

1 to 13 of 13

Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzA4NjEzODE4LCJjc3JmX3Rva2VuIjoid0hTU21ReXE3M1FSM0VtcSIsImdkcHIiOjB9