Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
April 19, 2014, 12:56:30 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: (yet another) b7 crash  (Read 1235 times)
brwainer
JkDefrag Junior
**
Posts: 7


View Profile
« on: May 16, 2009, 03:36:39 am »

actaually, this has been happening since b5 for me, but I never got around to posting it.

The problem: after analysis, MyDefrag crashes
The Debuglog: (note: only the portion at the end is posted; the text file is 2.11MB)
Code:
22:06:07 Starting VolumeBoolean for 'D:' ('\\?\Volume{eef95e4a-9668-11dd-aa7e-806e6f6e6963}').
22:06:07   Volume medium is not removable.
22:06:07   Volume is writable.
22:06:07   Volume is mounted.
22:06:07   Finished VolumeBoolean: TRUE
22:06:07 Testing if volume 'D:\' is hybernated.
22:06:07   No, not hybernated.
22:06:07 Counting zones.
22:06:07 Running script: WriteLogfile
22:06:07   Loading file into memory: C:\Program Files\MyDefrag v4.0b7\Scripts\WriteLogfile.MyD
22:06:07 Replacing macros.
22:06:07 Script:
  1. # MyDefrag v4.0 default script: write logfile
  2. #
  3. # This script is part of the standard MyDefrag distribution. It is called by all
  4. # the other standard scripts to write to the logfile.
  5.
  6.
  7. WriteLogfile("MyDefrag.log","
  8. Date:                       !Date! !Time!
  9. MyDefrag version:           !MyDefragVersion!
 10. Windows version:            !WindowsVersion!
 11. Commandline:                !Commandline!
 12. Working directory:          !WorkingDirectory!
 13.
 14. Volume mountpoint:          !MountPoint!
 15. Volume name:                !VolumeName!
 16. Volume type:                !VolumeType!
 17. Total disk space:           !TotalDiskSpaceBytes! bytes
 18.                             !TotalDiskSpaceGigaBytes! gigabytes
 19. Bytes per cluster:          !BytesPerCluster! bytes
 20. Average end-begin distance: !AverageBeginEndDistance! clusters
 21.                             !AverageBeginEndDistanceOfVolumeSize!% of volume size
 22.
 23. Item count (the number of files and folders)
 24.            Unfragmented       Fragmented            All
 25. ------- ----------------- ----------------- -----------------
 26. Files   !UTF000N! !UTF010N! !UTF020N!
 27. Folders !UTF100N! !UTF110N! !UTF120N!
 28. ------- ----------------- ----------------- -----------------
 29. All     !UTF200N! !UTF210N! !UTF220N!
 30.
 31. Item count as percentage of total item count
 32.            Unfragmented       Fragmented            All
 33. ------- ----------------- ----------------- -----------------
 34. Files   !UTF000P!%!UTF010P!%!UTF020P!%
 35. Folders !UTF100P!%!UTF110P!%!UTF120P!%
 36. ------- ----------------- ----------------- -----------------
 37. All     !UTF200P!%!UTF210P!%!UTF220P!%
 38.
 39. Occupied size in bytes (the amount of space occupied on disk)
 40.            Unfragmented       Fragmented            All
 41. ------- ----------------- ----------------- -----------------
 42. Files   !UTF002N! !UTF012N! !UTF022N!
 43. Folders !UTF102N! !UTF112N! !UTF122N!
 44. ------- ----------------- ----------------- -----------------
 45. All     !UTF202N! !UTF212N! !UTF222N!
 46.
 47. Occupied size in gigabytes
 48.            Unfragmented       Fragmented            All
 49. ------- ----------------- ----------------- -----------------
 50. Files   !UTF002G! !UTF012G! !UTF022G!
 51. Folders !UTF102G! !UTF112G! !UTF122G!
 52. ------- ----------------- ----------------- -----------------
 53. All     !UTF202G! !UTF212G! !UTF222G!
 54.
 55. Occupied size as percentage of total size
 56.            Unfragmented       Fragmented            All
 57. ------- ----------------- ----------------- -----------------
 58. Files   !UTF002P!%!UTF012P!%!UTF022P!%
 59. Folders !UTF102P!%!UTF112P!%!UTF122P!%
 60. ------- ----------------- ----------------- -----------------
 61. All     !UTF202P!%!UTF212P!%!UTF222P!%
 62.
 63. Used size in bytes
 64.            Unfragmented       Fragmented            All
 65. ------- ----------------- ----------------- -----------------
 66. Files   !UTF001N! !UTF011N! !UTF021N!
 67. Folders !UTF101N! !UTF111N! !UTF121N!
 68. ------- ----------------- ----------------- -----------------
 69. All     !UTF201N! !UTF211N! !UTF221N!
 70.
 71. Used size in gigabytes
 72.            Unfragmented       Fragmented            All
 73. ------- ----------------- ----------------- -----------------
 74. Files   !UTF001G! !UTF011G! !UTF021G!
 75. Folders !UTF101G! !UTF111G! !UTF121G!
 76. ------- ----------------- ----------------- -----------------
 77. All     !UTF201G! !UTF211G! !UTF221G!
 78.
 79. Used size as percentage of total size
 80.            Unfragmented       Fragmented            All
 81. ------- ----------------- ----------------- -----------------
 82. Files   !UTF001P!%!UTF011P!%!UTF021P!%
 83. Folders !UTF101P!%!UTF111P!%!UTF121P!%
 84. ------- ----------------- ----------------- -----------------
 85. All     !UTF201P!%!UTF211P!%!UTF221P!%
 86.
 87.
 88. Gaps by count
 89.                     Count      Percentage of all
 90.              ----------------- -----------------
 91. Small gaps   !GAP01N! !GAP01P!%
 92. Big gaps     !GAP02N! !GAP02P!%
 93.              ----------------- -----------------
 94. All gaps     !GAP00N! !GAP00P!
 95.
 96. Gaps by size
 97.                    Bytes          Gigabytes      Percentage of all
 98.              ----------------- ----------------- -----------------
 99. Small gaps   !GAP11N! !GAP11G! !GAP11P!%
100. Big gaps     !GAP12N! !GAP12G! !GAP12P!%
101.              ----------------- ----------------- -----------------
102. All gaps     !GAP10N! !GAP10G! !GAP10P!%
103. Average gap  !GAP13N! !GAP13G! !GAP13P!%
104. Median gap   !GAP14N! !GAP14G! !GAP14P!%
105. Biggest gap  !GAP15N! !GAP15G! !GAP15P!%
106.
107.
108. These items could not be moved:
109. Fragments   Bytes          Clusters     Name
110. ------- ----------------- ------- -----
111. !UnmovablesList!
112. ------- ----------------- ------- -----
113. !UnmovablesTotalFragments! !UnmovablesTotalBytes! !UnmovablesTotalClusters!  Total
114.
115.
116. These items are fragmented:
117. Fragments   Bytes          Clusters     Name
118. ------- ----------------- ------- -----
119. !FragmentedList!
120. ------- ----------------- ------- -----
121. !FragmentedTotalFragments! !FragmentedTotalBytes! !FragmentedTotalClusters!  Total
122.
123.
124. The 25 largest items on disk:
125. Fragments   Bytes          Clusters     Name
126. ------- ----------------- ------- -----
127. !LargestItemsList!
128. ------- ----------------- ------- -----
129. !LargestItemsTotalFragments! !LargestItemsTotalBytes! !LargestItemsTotalClusters!  Total
130.
131.
132. ")
22:06:07 Compiling the script.
22:06:07 Executing the script.
22:06:07 Finished executing the script.
22:06:07   There are 9 zones.
22:06:07 Starting VolumeActions.
22:06:07 Processing disk D:
I have crashed!
  Command line: "C:\Program Files\MyDefrag v4.0b7\MyDefrag.exe" -r FastOptimize.MyD
  Exception: ACCESS_VIOLATION (the memory could not be read or written)
  1. At line 513 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\tree.cpp'
  2. At line 3710 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\disk.cpp'
  3. At line 913 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  4. At line 43 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  5. At line 2762 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  6. At line 43 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  7. At line 308 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  8. At line 43 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  9. At line 2762 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  10. At line 43 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  11. At line 2762 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  12. At line 43 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  13. At line 2762 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  14. At line 43 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  15. At line 2762 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\interpret.cpp'
  16. At line 464 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\execute.cpp'
  17. At line 623 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\execute.cpp'
  18. At line 795 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\execute.cpp'
  19. At line 882 in 'd:\www.kessels.com\sources\mydefrag\mydefrag\mydefrag.cpp'
  20. At line (unknown) in (unknown)
  21. At line (unknown) in (unknown)
  22. At line (unknown) in (unknown)

What I think: (I haven't read any posts on here since b3, so maybe this has already been suggested) after each drive, MyDefrag doesn't seem to clean itself up right. It's almost like it's corrupting it's own memory, as this always happens on the 2nd, 3rd, 4th, etc. drive, never the first. If the 1st drive needs more than a few files fixed, then it crashes on the second drive. Since the second drive is an HP restore partition, if MyDefrag doesn't crash, it will on the 3rd drive if the 3rd drive is good (and the first) it will go on. So basically, after a "bad" drive, the next "bad" drive will crash. Due to this, my USB external (drive Z:, either #4 or #5 in the list of things to do) hasn't been defragmented for a while; it's starting to slow down.

I hope this helps!


EDIT: just read some otehr posts and I have a few things to add. First, You obviously have your own hypothesis, and I suspect it's not taht different from my own. Seccondly, I think the reason the crash report is sometimes there, sometimes not is that I've experienced two types of crashes with MyDefrag: one where MyDefrag tells me 'Oops! I've Crashed!...' and says to put my log here, and another where Windows tells me the program experienced an error and needs to close. It seems that when windows closes the app, no crash report is done.
« Last Edit: May 16, 2009, 03:49:32 am by brwainer » Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7182



View Profile WWW
« Reply #1 on: May 16, 2009, 09:16:48 pm »

Thanks for testing and for posting the logfile, I appreciate it! I am fairly sure now that the problem is not caused by memory corruption, but by multithreading, where one thread is cleaning up old data from memory and another thread is reading that same data. I hope to have it fixed in the next beta, not sure because I cannot repeat the problem.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!