Apk compiler error

Please post anything related to the Hollywood APK Compiler here
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Apk compiler error

Post 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)
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Apk compiler error

Post 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.
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: Apk compiler error

Post 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
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Apk compiler error

Post 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?
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: Apk compiler error

Post 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
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Apk compiler error

Post by airsoftsoftwair »

Hmm, strange. Do you remember what you did right before this file's size became 0? Can you reproduce the problem?
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: Apk compiler error

Post 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
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Apk compiler error

Post by airsoftsoftwair »

Ok, if some weird external programs wipe your AppData folder then it's no wonder that APKCompiler crashes :)
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Re: Apk compiler error

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Apk compiler error

Post 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.
Post Reply