MantisBT - Cheat Engine
View Issue Details
0000375Cheat Engine(No Category)public2015-02-21 21:462015-02-28 01:37
ReporterHans Henrik 
Assigned To 
PrioritylowSeveritymajorReproducibilityalways
StatusnewResolutionopen 
Platformx86_64OSWindows 7 x64 ultimate SP1OS Version
Summary0000375: unable to scan for single bit
Descriptionwhen trying to scan for single bit 0, cheat engine will just show an error:
Scan error: thread 0: Stream write error
Steps To Reproduceopen a process
Value Type: Binary
Scan Type: Exact
check Bits
Value: 0

press First Scan.
TagsNo tags attached.
Attached Filesjpg scanforbit.jpg (75,442) 2015-02-21 21:46
http://cheatengine.org/mantis/file_download.php?file_id=136&type=bug
jpg

Notes
(0000765)
Dark Byte   
2015-02-21 22:39   
(Last edited: 2015-02-21 23:09)
Every address found will eat up 13 bytes (address+bitspecifier+originalvalue)
process memory exists 85% out of 0 bits

let's assume this game uses 1GB RAM, so 1000000000*8 bits=8000000000
85% of 8000000000 = 6800000000 addresses will be found
6800000000 * 13 will end up eating about 88.400.000.000 bytes. So make sure the folder your scanresults are in is formatted using NTFS (not FAT as that is limited to 4GB) and that it has at least 88.4GB diskspace left

Oh yeah, I forgot the First scan saving so you can compare to the first scan results, so 88.4*2=176.8GB

And don't forget the UNDO feature (which you can disable on settings). If it's enabled (default) then that one will also make a copy of the results:
88.4*3=265.2 GB

So yeah,
my suggestion is: NEVER scan for the BIT 0 (if you have to, scan for 1, or more than just 1 bit)

(0000780)
Hans Henrik   
2015-02-28 01:24   
(Last edited: 2015-02-28 01:37)
if i read this right http://prntscr.com/6anso6
the game use about 232 MB ram?
now, i have about 22.2 GB ram available ( http://prntscr.com/6antto )
i have 366 GB hdd available ( http://prntscr.com/6anufq )

VirtualMemoryBytes=232260000;
VirtualMemoryBits=VirtualMemoryBytes*8;
BytesNeededToStoreResults=(VirtualMemoryBits*13)*3 //assuming EVERY BIT is 0 ofc. 1 copy for original scan, 1 copy for compare with last scan, and... my brain is derping
//
MegabytesNeededToStoreResults=(BytesNeededToStoreResults/1024)/1024;
//69108 mb
GigabytesNeededToStoreResults=MegabytesNeededToStoreResults/1024;
//67.48 GB
// ^fully valid javascript btw. run it in your browser if you wish to verify :p
..this should be possible, afaik?


Issue History
2015-02-21 21:46Hans HenrikNew Issue
2015-02-21 21:46Hans HenrikFile Added: scanforbit.jpg
2015-02-21 22:39Dark ByteNote Added: 0000765
2015-02-21 22:44Dark ByteNote Edited: 0000765bug_revision_view_page.php?bugnote_id=765#r20
2015-02-21 22:45Dark ByteNote Edited: 0000765bug_revision_view_page.php?bugnote_id=765#r21
2015-02-21 23:08Dark ByteNote Edited: 0000765bug_revision_view_page.php?bugnote_id=765#r22
2015-02-21 23:09Dark ByteNote Edited: 0000765bug_revision_view_page.php?bugnote_id=765#r23
2015-02-28 01:24Hans HenrikNote Added: 0000780
2015-02-28 01:25Hans HenrikNote Edited: 0000780bug_revision_view_page.php?bugnote_id=780#r50
2015-02-28 01:37Hans HenrikNote Edited: 0000780bug_revision_view_page.php?bugnote_id=780#r51