corruption

git “error: corrupt loose object” after moving a directory

左心房为你撑大大i 提交于 2019-12-24 08:22:35
问题 I'm not sure if I had this error because I moved the directory that had all project files and .git but the error appeared around that time. > git fsck error: corrupt loose object '25a196217ebb6e341909205575f491022eafc4d9' fatal: loose object 25a196217ebb6e341909205575f491022eafc4d9 (stored in .git/objects/25/a196217ebb6e341909205575f491022eafc4d9) is corrupt I searched for an answer and tried few things nothing worked. How to recover Git objects damaged by hard disk failure? resulted in mv:

Visual C++ Release build - is string getting corrupted when passed across DLL because compiled with different runtime version?

[亡魂溺海] 提交于 2019-12-23 20:39:38
问题 After building in Release mode, I am seeing exceptions which didn't occur in Debug mode. When debugging the release build, it looks like string references are not being passed correctly from the EXE (our application) to the DLL which is receiving the string reference. Our EXE code looks like this: string contents = "handle_message(): received=" + msg->encode(); LOG4CXX_DEBUG(logger, contents); The LOG4CXX_DEBUG is going to log4cxx.dll , whose code looks like this: CharMessageBuffer&

Forced file download iscorrupted

喜夏-厌秋 提交于 2019-12-23 04:19:54
问题 I have a file download code in my site which worked perfectly fine untill i changed domain. I have checked all the links and changed everything and they work FINE Yet for some reason the file is downloaded corrupted and i can't figure out why. Code: header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.$fileName.'"'); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache

VB6 silently deleting huge chunks of control data from forms

烂漫一生 提交于 2019-12-22 09:26:18
问题 My project has maybe 130 controls (total of all labels, textboxes, etc.) in an SSTab (4 tabs). The project loads fine, it runs fine, I don't see a single error or warning at any point, but when I save the form with the SStab on it, the SStab data isn't saved (it is completely gone). Normally the relevant portion of the .frm file looks like this: Begin TabDlg.SSTab SSTab1 Height = 8895 [1550 more lines of code for all the controls] Width = 540 End Begin VB.Menu FileMenu But lately it's getting

Django: cannot import name

我只是一个虾纸丫 提交于 2019-12-22 04:21:37
问题 I've just encountered a very annoying problem while deploying new updates to my website. I have two seperate websites whereas one of them is a development version. Now when I want to apply my changes to the production it won't work because of error message: File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py", line 99, in get_response request.path_info) File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 249, in resolve for pattern in self.url_patterns:

Django: cannot import name

不羁岁月 提交于 2019-12-22 04:21:18
问题 I've just encountered a very annoying problem while deploying new updates to my website. I have two seperate websites whereas one of them is a development version. Now when I want to apply my changes to the production it won't work because of error message: File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py", line 99, in get_response request.path_info) File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 249, in resolve for pattern in self.url_patterns:

Android database corrupt, but can open in SQLite Manager. Recoverable?

天大地大妈咪最大 提交于 2019-12-21 03:34:18
问题 In the latest two weeks, without releasing an update to my app, I have started getting a bunch of reports with corrupted databases. Below is the stacktrace. Android cannot open the database, and neither could the sqlite-manager program on my computer. However, the SQLite manager-addon to firefox could open it. After running the command "compact database", the database was fixed and I could open it in android. Is there any way I could do something like this within my app? The big problem is

Can I fix photos with corrupt jpeg data?

社会主义新天地 提交于 2019-12-20 20:00:10
问题 My phone (android, fwiw) takes pictures that are corrupted. I'm not sure why or how it is doing this, but it seems to prevent me from uploading the photos to some services. If I move the photos to my computer and open them in GIMP I see a warning message: Corrupt JPEG data: 1130 extraneous bytes before marker 0xd9 The error doesn't prevent me from viewing or editing the photos, but I'm wondering if there's some way to set up a batch process that would fix this problem? 回答1: It's hard to tell

Tracing memory corruption on a production linux server

岁酱吖の 提交于 2019-12-20 09:31:17
问题 Guys, could you please recommend a tool for spotting a memory corruption on a production multithreaded server built with c++ and working under linux x86_64? I'm currently facing the following problem : every several hours my server crashes with a segfault and the core dump shows that error happens in malloc/calloc which is definitely a sign of memory being corrupted somewhere. Actually I have already tried some tools without much luck. Here is my experience so far: Valgrind is a great(I'd

Deserialisation issue - java.io.StreamCorruptedException: invalid type code: 00

↘锁芯ラ 提交于 2019-12-20 06:27:41
问题 I'm writing a java file-transfer app, and i have some troubles with deserialisation myself-defined class Message from Datagramms. Other topics at StackOverflow has similar issues, but i didn't found something helpful from there, so i'm sorry in advance if i missed it. so, class Message is: import java.io.Serializable; public class Message implements Serializable { private static final long serialVersionUID = 1L; private int segmentID; private byte[] packet; private int bytesToWrite; public