Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Opening Database #35

Closed
Bitera opened this issue Mar 31, 2015 · 7 comments
Closed

Issue Opening Database #35

Bitera opened this issue Mar 31, 2015 · 7 comments

Comments

@Bitera
Copy link

Bitera commented Mar 31, 2015

Hi, I recently pulled an old Skype main.db off of a computer that I stopped using in 2009. It's definitely .db and not .dbb, but I seem to be having trouble opening it with Skyperius. When I try, I get the following message:

Traceback (most recent call last):
  File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\skyperious", line 1353, in on_open_current_database
  File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\skyperious", line 1729, in load_database_page
  File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\skyperious", line 1872, in __init__
  File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\skyperious", line 2637, in create_page_info
  File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\skyperious", line 2732, in update_accountinfo
TypeError: unsupported operand type(s) for ** or pow(): 'float' and 'NoneType'

Is there something that can be done about this, or is there just something wrong with my old database?

@suurjaak
Copy link
Owner

This error can definitely be fixed in the program. Can you try this development release?

If that one gets the database open, could you tell me the results of running this query in the SQL window:

SELECT skypeout_balance, skypeout_precision, skypeout_balance_currency FROM Accounts

@Bitera
Copy link
Author

Bitera commented Mar 31, 2015

That seems to have done it for opening it, however it doesn't seem to be able to export the chats. At least, not all at once. I haven't had the chance to try to export them separately to narrow it down. But, this is the message I get:

18:07:48.076    Error exporting chats:

        Traceback (most recent call last):
          File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\skyperious", line 3343, in on_export_chats
          File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\export", line 121, in export_chats
          File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\export", line 200, in export_chat_template
          File "C:\stuff\projektid\skyperious\dist\build\pyinstaller\out00-PYZ.pyz\skypedata", line 2225, in get_collected_stats
        MemoryError

And, here's what the table you asked for looks like:

skypeout_balance skypeout_precision skypeout_balance_currency
1 100 FREECALL

@suurjaak
Copy link
Owner

suurjaak commented Apr 1, 2015

Good that the initial problem is fixed.

About this new error, it looks like collecting wordcloud statistics starts eating too much memory.

How large is this database? Can you open Windows Task Manager and see how much memory is the skyperious.exe process taking during export?

@Bitera
Copy link
Author

Bitera commented Apr 1, 2015

I think the database is definitely a sizable one at 267.92 MB. It's not the largest I've worked with, but that was before the update that added the word clouds, so I suppose that makes sense. It looks like it gets through a chat with 133,963 messages using around 500,000 K of memory. Then the next chat is 381,256 messages and it gets up to around 1,500,000 K before stopping and giving that error.

@suurjaak
Copy link
Owner

suurjaak commented Apr 5, 2015

Those are some pretty hefty chats indeed.. I took steps to optimize memory usage in statistics collection - can you try if development release 3.3.1j works better?

@Bitera
Copy link
Author

Bitera commented Apr 6, 2015

Awesome, that did it. Everything looks like it got exported without error. Thanks for your help!

@suurjaak
Copy link
Owner

suurjaak commented Apr 6, 2015

Excellent, glad to hear that. I have some other changes in progress, so the official update will come in a while.

Out of curiosity, and if you're up to checking it - how much memory does exporting the 381,256 messages take now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants