Quotefread & fwrite crash on the G12 with an assert in FsIoNotify. I suspect it may be related to this issue https://chdk.setepontos.com/index.php?topic=6179.0. Changing the code to use open/close/read/write fixes the crash.[/size]Hmmm. I thought those FsIoNotify issues were over. Are other parts of CHDK using fopen (such as Lua) not affected? Logging file operations to camera log could give some hints.
fread & fwrite crash on the G12 with an assert in FsIoNotify. I suspect it may be related to this issue https://chdk.setepontos.com/index.php?topic=6179.0. Changing the code to use open/close/read/write fixes the crash.[/size]
open etc have their own problems with cached memory on some platforms.
A couple features that would be nice:Restore file timestamps. It looks like it's saved, but not restored
Warn in the status message area on the >2gb and >32gb cases (but I'm not sure we have a way to know from code which applies)
The above isn't an objection to checking in the modules. I'm fine with having them checked in.
Do you have links to related posts/discussions?
QuoteWarn in the status message area on the >2gb and >32gb cases (but I'm not sure we have a way to know from code which applies)Might be possible to compile lists of platformIDs, I guess.
edit: Another early thread about that, with some specific models mentioned https://chdk.setepontos.com/index.php?topic=2483.0
One is that the new exmem allocator allocates uncached memory, purely because of those early Vx models that have no cached version.
Another is that that I'm still naming the new CHDK functions exmem_alloc and exmem_free - that is, the names don't indicate that the memory is uncached. Should they?
Seems like it might be a little clearer to call them exmem_ualloc and exmem_ufree instead (edit: or _uncached to follow the same pattern as exmem_alloc_cached).
The allocated memory could still be used as the application requires, but it's up to the caller to use the appropriate cache operation(s) and safety margins.The module IMO still has an acceptable speed with uncached memory.
Tested on the previous version:elph130, 32GB FAT32 card, backup / restore OKD10, 4GB FAT16 card, warns correctly autoboot will be lostSX710, 64GB FAT32, warns correctly autoboot will be lostSX710, 32GB FAT32, backup / restore OKA540, 2GB FAT16, backup / restore OK
Started by bdasmith General Discussion and Assistance
Started by seejay « 1 2 3 » Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)