corruption

git - recover from bad tree object?

南楼画角 提交于 2020-01-24 08:44:42
问题 I migrated a repository both locally and the remote, and now I am unable to push (or do much of anything) because of a bad tree object, > git push error: Could not read 4218a5a380d8b6cbc7f461c22cb48ed66a92c850 fatal: bad tree object 4218a5a380d8b6cbc7f461c22cb48ed66a92c850 fatal: The remote end hung up unexpectedly 4218a5a380d8b6cbc7f461c22cb48ed66a92c850 doesn't exist on my filesystem, > dir 4218a5a380d8b6cbc7f461c22cb48ed66a92c850 /s /p Volume in drive C is OS Volume Serial Number is

git - recover from bad tree object?

萝らか妹 提交于 2020-01-24 08:43:12
问题 I migrated a repository both locally and the remote, and now I am unable to push (or do much of anything) because of a bad tree object, > git push error: Could not read 4218a5a380d8b6cbc7f461c22cb48ed66a92c850 fatal: bad tree object 4218a5a380d8b6cbc7f461c22cb48ed66a92c850 fatal: The remote end hung up unexpectedly 4218a5a380d8b6cbc7f461c22cb48ed66a92c850 doesn't exist on my filesystem, > dir 4218a5a380d8b6cbc7f461c22cb48ed66a92c850 /s /p Volume in drive C is OS Volume Serial Number is

Can you please explain this C++ delete problem?

本秂侑毒 提交于 2020-01-04 09:10:35
问题 I have the following code: std::string F() { WideString ws = GetMyWideString(); std::string ret; StringUtils::ConvertWideStringToUTF8(ws, ret); return ret; } WideString is a third-party class, so are StringUtils. They are a blackbox to me. Second parameter is passed by reference. When I step through the debugger the line return ret throws a nasty popup (Visual C++) saying that heap may be corrupted. Upon closer examination copy of the string that gets returned is OK, but the deletion of ret

Jar file gets corrupted after pushing to github

落花浮王杯 提交于 2020-01-03 17:43:34
问题 There is this jar file which is produced locally as a result of the project build. However after it's pushed to github, it gets corrupted. Ran checksum on both local and downloaded jar files and they are different. Cannot even extract it. 回答1: It's probably because the line endings get converted. Put this in your .gitattributes file (create it if it doesn't exist): *.jar binary 来源: https://stackoverflow.com/questions/28528441/jar-file-gets-corrupted-after-pushing-to-github

Jar file gets corrupted after pushing to github

时间秒杀一切 提交于 2020-01-03 17:43:31
问题 There is this jar file which is produced locally as a result of the project build. However after it's pushed to github, it gets corrupted. Ran checksum on both local and downloaded jar files and they are different. Cannot even extract it. 回答1: It's probably because the line endings get converted. Put this in your .gitattributes file (create it if it doesn't exist): *.jar binary 来源: https://stackoverflow.com/questions/28528441/jar-file-gets-corrupted-after-pushing-to-github

check for bad sectors on hard disk

匆匆过客 提交于 2019-12-31 03:46:58
问题 Recently after a couple of power outages, my computer has gotten quite messed up (BSODs every now and then, entire OS behaves really strange). Now I have a program that ran perfectly fine before my computer got messed up. This program just basically creates a file using CreateFile and writes to it using WriteFile. This program also has other stuff doing their thing based on this file. I noticed that the entire program acted strangely as well. My debugging results: I noticed that after

SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator

时光毁灭记忆、已成空白 提交于 2019-12-31 03:21:08
问题 First I want to say thanks to everyone that reads this. Stackoverflow is an amazing site and you guys help me out with answers everyday in the form of questions already submitted. You all rock! My problem: I'm working on a database app that I'd like to back up the database at certian points so I can save the data I've collected in database over time, during development. So to save the database to accessible memory I've followed this page: How can I pull databases off my android onto my

Repair corrupted Git repository

荒凉一梦 提交于 2019-12-28 02:49:07
问题 My Git repository got corrupted after a couple of hard reboots due to power supply issues and now I'm unable to fix it (I was in the middle of staging some files at the last power failure): $ git status fatal: failed to read object 3d18855708b0f127d40c13c679559d7679228b69: Invalid argument $ git fsck fatal: failed to read object 24377c609184c192f3f3c1733bac7115c1080758: Invalid argument $ git branch -a (...works, lists branches...) $ git checkout someotherbranch fatal: failed to read object

SQLite3 database or disk is full / the database disk image is malformed

北战南征 提交于 2019-12-27 12:12:10
问题 My database is about 25 MB, and I've verified that the username accessing it, as well as the file permissions haven't changed in months. I'm having a problem where queries are failing due to a "database or disk is full" and then sometimes "database disk image is malformed" issue. Unless I'm reading this wrong, my disk isn't anywhere near full (this is an Ubuntu server, 9.10, if it makes any difference) Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 19610300 2389596 16224560 13%

SQLite3 database or disk is full / the database disk image is malformed

瘦欲@ 提交于 2019-12-27 12:11:11
问题 My database is about 25 MB, and I've verified that the username accessing it, as well as the file permissions haven't changed in months. I'm having a problem where queries are failing due to a "database or disk is full" and then sometimes "database disk image is malformed" issue. Unless I'm reading this wrong, my disk isn't anywhere near full (this is an Ubuntu server, 9.10, if it makes any difference) Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 19610300 2389596 16224560 13%