Questions tagged [corrupt]

Data structures or files may become damaged or corrupt.

The "corrupt" tag is appropriate for questions related to damaged data structures or files:

  • detecting corruption: often related to common error messages or error states
  • preventing corruption: techniques for analyzing causes and avoiding them
  • recovering from corruption: tools and techniques for extracting partial data from damaged data structures, or restoring consistency to inconsistent data

Questions will always be in the context of a particular data structure, such as:

  • file format (zip, gzip, rar, ...)
  • file system (extfs, ntfs, ...)
  • data structure (tree, heap, memory, ...)
423 questions
6
votes
3 answers

PHP readfile() corrupts file

In my function I'm downloading a file that saves downloads to a log file. Whenever I try to download an Excel file I uploaded, Excel states that it is corrupted. My local copy works fine. Here is my download.php:
6
votes
1 answer

How can I corrupt a Git repository?

What are some ways to create a corrupt git repository? Are there ways to permanently damage a git repository interestingly? Can you cripple a git repository such that it behaves somewhat normally but does strange things? My interest comes from when…
Kyle Kelley
  • 12,557
  • 4
  • 45
  • 75
5
votes
1 answer

How do determine if an image is partially corrupt? C#

I have raw bytes for an image. I use the following to code to determine if the image is corrupt or not public bool IsValidGDIPlusImage(byte[] imageData) { try { using (var ms = new MemoryStream(imageData)) { using…
user349026
5
votes
2 answers

Git pull, fatal: loose object

My colleague tried to do a git pull from our master. He got this error: $ git pull fatal: loose object f7630cc30248df1e19bcb40c9de1b60b71cdfce1 (stored in ./objects/f7/630cc30248df1e19bcb40c9de1b60b71cdfce1) is corrupt fatal: The remote end hung up…
Ken Williams
  • 19,823
  • 7
  • 71
  • 126
5
votes
6 answers

Is there any way to have PHP detect a corrupted image?

Is there any way to have PHP determine whether an image file is corrupted and will not be able to display properly? I've tried to check with fopen and check whether the URL is valid, but it hasn't worked!
Piotr
  • 1,317
  • 4
  • 18
  • 24
5
votes
2 answers

Recover corrupt zip or gzip files?

The most common method for corrupting compressed files is to inadvertently do an ASCII-mode FTP transfer, which causes a many-to-one trashing of CR and/or LF characters. Obviously, there is information loss, and the best way to fix this problem is…
Liudvikas Bukys
  • 5,410
  • 3
  • 23
  • 36
5
votes
1 answer

Visual Studio Installer Missing option value: InstallPath - Visual Studio 2019

I have the visual studio 2019 enterprise edition (VS 2019 16.1.4) installed with valid license (Visual Studio Subscription) and it was working good. All of sudden, when I try to open a project or any file that is part of the project, I am getting…
Gopi
  • 5,012
  • 18
  • 62
  • 127
5
votes
1 answer

Sonotype Nexus Repository/OrientDB can't connect to database

Yesterday our nexus repository instance went sideways due to a disk full event. After freeing some space and attempting a restart, nexus is no longer accessible. As a result, the database became corrupted (presumably) and cannot be connected to.…
Lance Held
  • 259
  • 2
  • 9
5
votes
0 answers

Check for or remove corrupt R packages or corrupt databases

I am not sure if I have a corrupt R database or corrupt R packages. I installed several packages in R a week ago and, ever since then, my previously installed packages have not been working correctly. When I try to reinstall a previously working…
user3545679
  • 161
  • 1
  • 10
5
votes
1 answer

Android Keystore : "Keystore was tampered with, or password was incorrect."

I'm using Android Stuio 0.5.9 as IDE My mac version 10.9.3 Formerly I use oracle java se7 for develop my applications but when I update my mac it gives some version error so I remove java 7 and install java 6 and solved it. When I develop a app in…
Olkunmustafa
  • 2,813
  • 8
  • 36
  • 53
5
votes
1 answer

How to save in excel 2010+ with NPOI 2.0

I use NPOI for a long time and it always works but now I need to make it work with .xlsx and at least Microsoft Office 2010. It works but when I try to open the file it says that it's corrupt and I can not repair it. Here's the error I get…
VinnyG
  • 6,743
  • 7
  • 54
  • 73
5
votes
0 answers

R ggplot2 package load

I'm very new with R (version 3.0.3) and I was working on a little app with shiny and ggplot. Everything was working fine and then it seems that I'm no more able to load the packages correctly. Here's my code and the error messages…
user3479103
  • 51
  • 1
  • 4
5
votes
1 answer

PHP: How to check if gz file is corrupt?

Is there any way to detect if a gz file is corrupt in PHP? I'm currently using http://www.php.net/manual/de/function.gzread.php#110078 to determine the file size and read the whole* file via $zd = gzopen ( $file, "r" ); $contents = gzread ( $zd,…
Hirnhamster
  • 6,032
  • 7
  • 35
  • 65
5
votes
2 answers

FTP zip upload is corrupted sometimes

I wrote a code for saving few images in a file and later compressing that file and uploading to an ftp server. When I download that from server, few files are fine and few files got corrupted. What can be the reason for that? Whether there may be a…
Supriya
  • 1,000
  • 1
  • 7
  • 16
5
votes
3 answers

error: object file is empty .git/objects/../.. is empty -- fatal: loose object ... is corrupt

So this is the fifth time this has happened in the past three weeks and I am really stumped as to why this keeps happening. This is the exact message I get when I do 'git status' error: object file…
Huub Mons
  • 139
  • 1
  • 11
1 2
3
28 29