Page 1 of 2

Apk compiler error

Posted: Wed Apr 27, 2016 6:40 pm
by xabierpayet
hello andreas, from yesterday i have this error when i attempt to load the apkcompiler, i tried to reinstall it, but the problem still, any idea?
could not read all characters from file!
check if ut us read protected!
file:apkcompiler.hws (current line: 1224 in function: loadprefs)

Re: Apk compiler error

Posted: Fri Apr 29, 2016 4:31 pm
by airsoftsoftwair
Hmm, can you send me the file C:\Users\<yourusername>\AppData\Roaming\AirsoftSoftwair\Hollywood\Preferences\com.airsoftsoftwair.apkcompiler? Then I'll be able to examine what's wrong there.

Re: Apk compiler error

Posted: Fri Apr 29, 2016 8:24 pm
by xabierpayet
the file com.airsoftsoftwair.apkcompiler have a size of 0
if i rename it, i can load again the compiler, but i lost all the prefs data

Re: Apk compiler error

Posted: Sat Apr 30, 2016 12:02 pm
by airsoftsoftwair
That is weird. Do you have multiple users on your system? What happens if you delete the file, start APKCompiler and close the program again? Does the file have a size of 0 then too?

Re: Apk compiler error

Posted: Sat Apr 30, 2016 7:29 pm
by xabierpayet
i dont have more users in the system, the solution was delete the file and reconfigure it, no problem, maybe is a good idea make a .bak file of the preferences , and if the compiler read the prefs file with size 0, load the .bak

Re: Apk compiler error

Posted: Sun May 01, 2016 11:05 pm
by airsoftsoftwair
Hmm, strange. Do you remember what you did right before this file's size became 0? Can you reproduce the problem?

Re: Apk compiler error

Posted: Tue May 03, 2016 12:29 am
by xabierpayet
i use ccleaner, i think that is the problem, today i has the same issue after of use it, but now i have a copy of the prefs file

Re: Apk compiler error

Posted: Wed May 04, 2016 11:41 pm
by airsoftsoftwair
Ok, if some weird external programs wipe your AppData folder then it's no wonder that APKCompiler crashes :)

Re: Apk compiler error

Posted: Tue Nov 21, 2023 10:25 am
by amyren
I had a similar issue here. All of a sudden apkcompiler refused to start, and just gave me this error on startup.
"Error deserializing item! File: apkcompiler.hws (current line:1586 - In function: LoadPrefs)"
I suspect this happened due to my laptop have a fan issue and sometimes just shuts down for heat protection.
My prefs file does still have some content, but its not a readable text file.

Is there some way I can decode the prefs file myself in order to read the data?

Re: Apk compiler error

Posted: Sun Nov 26, 2023 1:21 pm
by airsoftsoftwair
I've had a look at the prefs file you sent me via e-mail and it's all zeroes. The prefs file is written once you close APK Compiler so the only explanation I have is that when shutting down Windows killed the APK Compiler process while it was writing its prefs file. I don't see how else this could happen. But the solution is simple: Just delete the prefs file and it should work again.