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

Creating ZIP database for android fails #350

Closed
bokkoman opened this issue Mar 11, 2020 · 12 comments
Closed

Creating ZIP database for android fails #350

bokkoman opened this issue Mar 11, 2020 · 12 comments

Comments

@bokkoman
Copy link

I'm trying to create a zip database for the android version of ddt4all.
I did it before with no problem with an older database. But now I have the latest database and I get a memory error.

Writing database
Writing archive
Traceback (most recent call last):
  File "C:\Program Files (x86)\ddt4all\ddt4all.py", line 614, in zipdb
    parameters.zipConvertXML(filename)
  File "C:\Program Files (x86)\ddt4all\parameters.py", line 1713, in zipConvertXML
    f.write(zipoutput.getvalue())
  File "C:\Program Files (x86)\ddt4all\Python27\lib\StringIO.py", line 271, in getvalue
    self.buf += ''.join(self.buflist)
MemoryError

What can I do about this?

@KarelSvo
Copy link
Contributor

Not enough space on your hard drive?

@bokkoman
Copy link
Author

Not enough space on your hard drive?

I have more than enough space.

@cedricp
Copy link
Owner

cedricp commented Mar 17, 2020

Think it's more a RAM issue (it uses a lot of RAM to compress)

@bokkoman
Copy link
Author

Think it's more a RAM issue (it uses a lot of RAM to compress)

Well, that sucks. Maybe you should write a different code to make the zip db? Make it zip constantly instead of at the end, because this way it will be impossible for me to zip this db.

@cedricp
Copy link
Owner

cedricp commented Mar 17, 2020

Well, I do that on my spare time... I'm actually too busy to work on that, sorry. Try to borrow a computer with more RAM to do the process.

@bokkoman
Copy link
Author

Yeah i know you do that. I'm very happy with the software you provided.
I'll see what I can do with the zipping. Only other laptop I've got is a macbook. But I'm not used to macbooks, and installing ddt4all on mac sounds like a hassle.

@naeh
Copy link

naeh commented May 17, 2020

Hello, i have de the same problem here.

Starting processing ecus\ZIPPERmessagingSimulator.xml 1478/1480 to ZIPPERmessagingSimulator.json
Starting processing ecus\ZIPPER_3_Messaging_Simulator_20150624T100607.xml 1479/1480 to ZIPPER_3_Messaging_Simulator_20150624T100607.json
Writing database
Writing archive
Traceback (most recent call last):
  File "e:\Program Files (x86)\ddt4all\ddt4all.py", line 597, in zipdb
    parameters.zipConvertXML(filename)
  File "e:\Program Files (x86)\ddt4all\parameters.py", line 1544, in zipConvertXML
    f.write(zipoutput.getvalue())
  File "E:\Program Files (x86)\ddt4all\Python27\lib\StringIO.py", line 271, in getvalue
    self.buf += ''.join(self.buflist)
MemoryError

i was monitoring my ram usage (16go ram, 140go free space on hdd) the ram used didn't grow that much when the bug happen, i think it's a limitation by the system that allows a certain amount of memory to the application (pyton), maybe is there a way to make it allow more memory ?

Et encore merci Cedric pour ce travail de ouf, jamais on te remerciera assez...

Cdt,

@jc3dcx
Copy link

jc3dcx commented Aug 26, 2020

I have the same problem,

Ram used by process was about a gig, and I have 8gig on laptop with about 100gig space on SSD

error_dtt4all_zip

@ghost
Copy link

ghost commented Mar 20, 2021

I'm getting: TypeError: Object of type bytes is not JSON serializable
Screen Shot 2021-03-19 at 7 48 09 PM

@ghost
Copy link

ghost commented Mar 20, 2021

I've installed from source on Mac and successfully created the zip with the same database so I think this was just an issue in the latest windows installer version.

@josefe17
Copy link
Contributor

josefe17 commented Jan 4, 2023

Same issue here as #350 (comment), even with the same file. Definetely it's an issue with DDT4ALL V2.0 for windows, as V1.5 is compressing fine with the same database (not ended yet)

@Furtif
Copy link
Collaborator

Furtif commented Jun 2, 2023

#836

@Furtif Furtif closed this as completed Jun 2, 2023
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

7 participants