Magi-Soft Forums

Magic Workstation
It is currently Fri Sep 10, 2010 6:51 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Latest M11 database is TOO BIG? Debug error
PostPosted: Sat Jul 24, 2010 4:18 am 
Offline
Registered User
Registered User
User avatar

Joined: Wed May 14, 2003 12:30 pm
Posts: 2034
Location: The Magic Geekery
I installed the current Magic 2011 database from GoblinHero, and changed nothing else in MWS, and now when I open MWS it stops loading the database, throwing an error box DEBUG: Insufficient memory for this operation.

I didnt have any trouble before this.
With MWS loading up showing no databases open, if I try to open the masterbase with Ctrl-M, it shows the same error.

Now, if I switch to use the beta/bugfix version of MWS exe from fall 2009, that can load this current database. Just not the stable 0.94f exe.

MWS will load any of my older+smaller masterbases.

The current card count is now 18388.. filesize is 5,515,042 bytes.
Has the data exceeded MWS's capabilities??
What can I do to get it to load? I've tried removing some pricebases from my view to free up memory, but its not helping.

**ANYONE else experiencing this?**


Top
 Profile  
 
 Post subject: Re: Latest M11 database is TOO BIG? Debug error
PostPosted: Sat Jul 24, 2010 5:09 pm 
Offline
MWS Developer
MWS Developer
User avatar

Joined: Mon Sep 23, 2002 1:26 pm
Posts: 2483
Location: Russia
Real problem not in "Insufficient memory", but in internal null pointer exception, in Delphi 7 class library, which I can't fix because no official fix for Delphi 7 was available. It's really happens random on some computers.


Top
 Profile  
 
 Post subject: Re: Latest M11 database is TOO BIG? Debug error
PostPosted: Sat Jul 24, 2010 6:01 pm 
Offline
MWS Specialist
MWS Specialist
User avatar

Joined: Sat Dec 06, 2003 10:00 pm
Posts: 91
Location: Russia
Looks like its the same problem as with inventories - if it's bigger than some critical size error can occur (not on all computers). I can't help it. Devs too :( That's why I no longer use MWS.


Top
 Profile  
 
 Post subject: Re: Latest M11 database is TOO BIG? Debug error
PostPosted: Sun Jul 25, 2010 6:37 pm 
Offline
Registered User
Registered User
User avatar

Joined: Wed May 14, 2003 12:30 pm
Posts: 2034
Location: The Magic Geekery
crap! well foo..

Still interesting that the beta bugfix exe loads it ok.. but of course it was fixed for this sort of error :)

Thankfully the ROE base is still on mwsgames so I can roll back..

I'm going to play around with the current database and see if I can delete some excess cards to get the stable exe to load it. Or, add just M2011 to the ROE base. I noticed the latest base has a lot of changes - lots of new set codes + promos, so I hope the critical size threshold is close and I can get under it.

It might be prudent to add a warning on the M2011 database - back up your old masterbase, this one may cause an error, best to test it first.. :?

Det: Maybe now is a good time to release 0.94g? (but without all the functionality left broken in the old bugfix exe) :P


Last edited by Planeswlk on Sun Jul 25, 2010 8:30 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Fixed masterbase
PostPosted: Sun Jul 25, 2010 7:36 pm 
Offline
Registered User
Registered User
User avatar

Joined: Wed May 14, 2003 12:30 pm
Posts: 2034
Location: The Magic Geekery
Ok! Success!
I removed just over 100 records (now 18284) and the base now loads normally in the stable exe.
I also ran the base compress tool but I dont think it helped any.

Removed sets (primarily new promos just added in latest GH update):
I2P, FBP, MPS, SUM, MGD, CVP, GAM, STO
I've changed several individuated promo sets' cards back to PR like the book/mag inserts (and removed their set name entries), but thats more for price matching and old MWS deck compatibility.
(I've also manually edited records for split cards to correct the <hr> to //)

I'm uploading this smaller base and its sets.dat here, so for those who also get this DEBUG error, download this and overwrite your files like other updates..


Attachments:
File comment: GH M2011 base reduced size
MasterbaseM11fix.zip [1.2 MiB]
Downloaded 180 times
Top
 Profile  
 
 Post subject: Re: Latest M11 database is TOO BIG? Debug error
PostPosted: Sun Jul 25, 2010 8:31 pm 
Offline
MWS Developer
MWS Developer
User avatar

Joined: Mon Sep 23, 2002 1:26 pm
Posts: 2483
Location: Russia
Ok, I will use your fixed database for new mtggamepack.exe
I hope before new set will released I will find workaround for this bug.


Top
 Profile  
 
 Post subject: Re: Latest M11 database is TOO BIG? Debug error
PostPosted: Sun Jul 25, 2010 9:17 pm 
Offline
Registered User
Registered User
User avatar

Joined: Wed May 14, 2003 12:30 pm
Posts: 2034
Location: The Magic Geekery
Whoa.. hold on.
I found something.. the REAL reason why *I* was getting the error.
So I had just run the mtg_gamepack to get back to the ROE database so I could open MWS successfully. I edited the newer base, and it worked..
UNTIL...
I realized the gamepack overwrote my rulings.dat, that I had been keeping up to date from crystalkeep. My file was around 4mb; the original is 2.9mb. I updated my file (of course I have to close the masterbase from view in order for the rulings update to succeed without error), and BOOM, the masterbase will not open, again (DEBUG)!

So it IS "insufficient memory" - large rulings.dat plus large masterbase.
Turned off all pricebases: still DEBUG
Overwrote rulings.dat back to gamepack version: base loads ok

Now I have to delete MORE cards from my base to try to get it to load, while keeping my current rulings (the rulings in the gamepack are VERY out of date).. or go without rulings.
The ROE database had 17700 or so cards, I'm currently 500 more records above that (primarily M11 and Archenemy) so Det, hold on while I pare down the data more and find a happy medium.


Top
 Profile  
 
 Post subject: Re: Latest M11 database is TOO BIG? Debug error
PostPosted: Thu Aug 19, 2010 12:52 am 
Offline
User

Joined: Wed Aug 19, 2009 9:00 pm
Posts: 1
If you're using Windows 64-bit, you might be able to get this working by running MagicWorkstation.exe in Windows XP SP3 compatibility mode.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group