corruption

How do you determine if an .sqlite or .sqback is corrupt in Java?

戏子无情 提交于 2019-12-05 05:51:10
I have been given a directory of directories each containing a collection of .sqlite and .sqback files that I must parse. The problem is that I believe some of these files to be corrupt when I receive them because I get the error: ERR: [SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed) on my console when I try to process them. This only happens with some of the files. I have isolated a few and tried running my program on fresh copies of these bad files individually and they cause errors. Most of the files are fine though :) I realized that there is a

Django: cannot import name

穿精又带淫゛_ 提交于 2019-12-05 03:37:54
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: File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 278, in _get_url_patterns

Git recovery: “object file is empty”. How to recreate trees?

和自甴很熟 提交于 2019-12-05 02:38:26
问题 Note: I don't have any before-corruption clone of this repository. I believe my situation is different from others described here, because I'm missing a tree, not a blob. What happened: When I tried to clone a repository over LAN (via SSH), Git returned an error saying that the repository is corrupted: remote: error: object file ./objects/2e/223ce259e9e33998d434acc778bc64b393d5d4 is empty remote: fatal: loose object 2e223ce259e9e33998d434acc778bc64b393d5d4 (stored in ./objects/2e

Cause of corrupted file contents

主宰稳场 提交于 2019-12-04 21:27:22
问题 I'm having a recurring problem with an app in the wild. It has a fairly simple XML file it dumps out every now and then, something like every 30 minutes. The data files are often quite small - e.g. < 5KB. It doesn't hold a lock on the file - it just recreates it from scratch each time. I was lucky enough to see the problem occur on a test machine, and what I observed was that the file was corrupted and set to "nulls" (i.e. 00 in Hex). What's really weird is that it is exactly the correct

Java servlet: problem with corrupt file download

南楼画角 提交于 2019-12-04 20:51:42
I use three servlets to serve files for download: ByteArrayDownloadServlet: used for small files, such as reports or files from database FileDownloadServlet: used for small to large files MultipleFileDownloadServlet: create a zip with the requested files and stream it They are based in the following implementation: link text I have received several complaints about corrupted downloads. The problem is that I can't simulate or find a pattern in the errors: sometimes with large files sometimes when the user requests more than one file to download and a zip file and is created dynamically

RStudio R File Corruption

回眸只為那壹抹淺笑 提交于 2019-12-04 12:08:49
I had a R script open in RStudio. The file was saved many times over the course of several weeks and worked perfectly fine when RStudio was opened and closed. However, today, I restarted my computer and when I opened RStudio and more specifically the script that I mentioned, all of the R code vanished, leaving a single long row of "....." with red highlighting. When I tried to open the R file in other text processors such as Sublime Text and Notepad++, only a line of zeroes was visible. None of my other R files were affected. I'm currently running Windows 8.1 and have the latest version of R

Efficiently detect corrupted jpeg file?

时间秒杀一切 提交于 2019-12-04 08:06:58
问题 Is there an efficient way of detecting if a jpeg file is corrupted? Background info: solutions needs to work from within a php script the jpeg files are on disk manual checking is no option (user uploaded data) I know that imagecreatefromjpeg(string $filename); can do it. But it is quite slow at doing so. Does anybody know a faster/more efficient solutions? 回答1: From the command line you can use jpeginfo to find out if a jpeg file is OK or not. $ jpeginfo -c test.jpeg test.jpeg 260 x 264

Visual Studio 2015 Debugger Corruption - Is it a bug or just me?

牧云@^-^@ 提交于 2019-12-04 05:39:10
Have I gone mad? I've always been able to trust the debugger right? Turns out that during a debugging session with VS2015, when I for example change the value of a variable in the Immediate Window, then that assignment results in a "garbage" value being assigned. It's the same garbage value every time, but completely wrong nonetheless. I've distilled this down to the simplest console application repro, and just in case you might think to concur with my self-assessment of madness, I've also made a screenshot video clip of it going awry. Are you guys getting this issue too or is this a local

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

旧时模样 提交于 2019-12-03 10:38:35
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 that I cannot even attempt to open the database, because newer versions of Android will immediately

What is the “Break instruction exception” in WinDbg?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 05:06:42
问题 I'm debugging some random crash bugs, but actually very difficult to go deep into. Because when i open crash dump, only find one error: 0:000> .exr -1 ExceptionAddress: 00000000 ExceptionCode: 80000003 (Break instruction exception) ExceptionFlags: 00000000 NumberParameters: 0 Actually i haven't set any hard-code breakpoint in code, so i search about this exception in google, some people said this exception may be caused by heap corruption. So my question is, Is there any other reason why