Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just got a new laptop (windows7). When opening a qgis project (shape layers on server), I get an error window "bad allocation. Project was made in Wroclaw, new PC has Lisboa.

any suggestions?

share|improve this question
up vote 2 down vote accepted

Create a new simple project, load a shape from the server, save it, and compare the .qgs-Files with the old ones with a good text editor, e.g. notepad++. If you found the difference in < datasource >, you can edit the qgs-files with notepad++. It can open several files at once, and do search&replace on all opened files.

share|improve this answer
thanks. What i find is very weird: the directory structure in the old file (wroclav version) has a syntax with "/". n the new file (Lisboa version), it is with "\". as in <datasource>V:\02.DEVELOPMENT\B_CaPa.shp</datasou‌​rce>. furthermore, the old wroclav code contains "../.." which is of course not a good idea when migrating to another computer. – joris Aug 3 '12 at 13:45
Thats the difference between absolute and relative paths. You can change that in project properties, first tab. But ../.. for relative paths comes also here in my Lisboa files. Infact its better to use relative paths if the files are on another drive on the new pc. – AndreJ Aug 3 '12 at 14:26

When I formated my PC and reinstall Windows and QGIS I had the same message Exception: bad allocation,

After some time I realised the reason for this is that the project I was trying to open contained a google physical map and I hadn't install the open layers plugin.

So maybe if this happens is because a missing plugin.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.