Page 1 of 2
[TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-07, 22:47 UTC
by petermad
Code: Select all
---------------------------
Total Commander 10.52
---------------------------
Exception in wpdplug.wfx:FsGetFileW!
Access violation at address 7494A056. Read of address 08E07000
Windows 7 SP1 Professional 6.1 (Build 7601), base: 00400000
Please report this error to the Author, with a description
of what you were doing when this error occurred!
Windows exception: C0000005
Stack trace:
7494A056
>0044CC8E 0044CBB3 0044D035 0044F03A 0042A97E 0044E5D8
0042A97E 004223E4 0044E52E 0042A97E 0044E52E 0042A97E
0044F03A 0042A97E 0044E5D8 0042A97E 0044E6A2 0044E5D8
0042A97E 004F91CC 0044E5D8 0042A97E 0042F81C 0042A97E
0044D035 004541F2 0044D035 0044E6A2 0044F03A 0042A97E
0044E5D8 0042A97E 004301B9 00430254
Raw:
005F0071 005F0071 005F0071 004020AE 00402255 00403440
0041871A 004182F9 004774D0 00477504 00402255 00403440
00402229 004026AC 004079C9 0041846B 00477504 005F0071
005F0071 00421A03 00421A0C 00402255 00403440 00402229
0053001E 0054000B 005F0071 004223E4 004223F4 005BFFFE
004020AE 00402255 004223E4 0042A97E 00403440 004021D4
0044E5D8 004223E4 004020AE 00402255 004223E4 00444ECD
004023FB 00403440 004023FB 00403440 00402DD5 00472300
00445A63 00445BA2 004511DB 0044CC8E 0044CCA6 0044CBB3
0043DD1E 0043DD1E 0044E62A 0044E6A2 0044F03A 0044F05D
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Ja Nej
---------------------------
I got this crash when using the MediaAudio2 (v. 1.4) plugin to copy a Samsung, backup from the SD-card on my Samsung Galaxy S20, Android 13 to my Windows 7 PC.
I also get a crash in the 64bit version, but get no crash report.
The report above I got after the first file was tried copied.
I also got this report after an almost complete copy og the same dir (4.8 Gb in 591 files)
Code: Select all
---------------------------
Total Commander 10.52
---------------------------
Exception in wpdplug.wfx:FsGetFileW!
Access violation at address 7494A056. Read of address 05927000
Windows 7 SP1 Professional 6.1 (Build 7601), base: 00400000
Please report this error to the Author, with a description
of what you were doing when this error occurred!
Windows exception: C0000005
Stack trace:
7494A056
>0044CC8E 0044CBB3 0044D035 0044F03A 0042A97E 0044E5D8
0042A97E 004223E4 0044E52E 0042A97E 0044E52E 0042A97E
0044F03A 0042A97E 0044E5D8 0042A97E 0044E6A2 0044E5D8
0042A97E 004F91CC 0044E5D8 0042A97E 0042F81C 0042A97E
0044D035 004541F2 0044D035 0044E6A2 0044F03A 0042A97E
0044E5D8 0042A97E 004301B9 00430254
Raw:
0045004B 0047003F 005C0043 0045004B 0047003F 00403440
004021D4 005F0052 005F0052 00477504 004023FB 004023FB
004023FB 004026C4 00402D9A 00402FE3 00402255 00403440
004021D4 004026AC 004079C9 0041846B 005F0052 0045004B
0047003F 005C0043 0045004B 0047003F 00421A03 00421A0C
005CF108 004020AE 00402255 0053001E 005F0052 0054000B
0045004B 0047003F 005C0043 0045004B 0047003F 0045004B
0047003F 00530048 0042A97E 00402098 00402255 0045004B
0047003F 00530048 004223E4 004223F4 0045004B 0047003F
004223E4 0045004B 0047003F 00444ECD 004023FB 00403440
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Ja Nej
---------------------------
Copying the same dir after entering the SmartPhone vis the drive button [u1] worked without problems.
Re: [TC 10.50 ] Crash in when copying with MediaAudio2
Posted: 2022-12-12, 17:27 UTC
by ghisler(Author)
I have a Samsung Galaxy S10e, and MediaAudio2 works just fine. It only has Android 12, though, and will not receive Android 13. So maybe Android 13 is sending some invalid data which the plugin can't handle - we will unfortunately never know.
Re: [TC 10.50 ] Crash in when copying with MediaAudio2
Posted: 2022-12-12, 20:01 UTC
by petermad
It only occurs if I mark the entire folder (in this case called 1670454987192), and it appears to happen when TC get to the file SmartSwitchBackupinf.bk in the root of tat folder. If I exclude SmartSwitchBackupinf.bk from the copy process (Only files of this type: *.* | SmartSwitchBackupInf.bk) then it works OK. The same if I go into the 1670454987192 folder, mark all the folders and files and start the copy.
the 1670454987192 folder is located in the SmartSwitchBackup folder on the SD card.
When testing this, I came upon this:
https://www.ghisler.ch/board/viewtopic.php?p=424891#p424891 - maybe there is a connection?
Re: [TC 10.50 ] Crash in when copying with MediaAudio2
Posted: 2022-12-13, 16:08 UTC
by ghisler(Author)
Where on your phone is that folder "1670454987192" located? Is it some kind of system folder? It's quite unusual to have a folder with so many digits.
Re: [TC 10.50 ] Crash in when copying with MediaAudio2
Posted: 2022-12-13, 17:21 UTC
by petermad
It is placed on my SD-card in /storage/3135-6464/SmartSwitchBackup (when I enter my SD-card from the front page - SmartSwitchBackup is in the 1'st level (just like for example DCIM)
The number, I guess, is the Unix time in milliseconds
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-14, 09:02 UTC
by ghisler(Author)
I see, so is there anything special about that file SmartSwitchBackupInf.bk? Maybe it's larger than 2GB or even 4GB? These are both special limits, the first is the maximum for a 32-bit signed size, and the second the maximum for 32-bit unsigned (actually 4GB-1 byte).
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-14, 11:43 UTC
by petermad
It is an ANSi text-file with this content:
Code: Select all
{"backup_id":801751359,"device_name":"SM-G981B","display_name":"Samsung Galaxy S20 G5","date":"1670454987192","size":8393001780}
one line only, no line-break.
in the root of the 1670454987192 folder there are these 5 files:
.nomedia
SmartSwitchBackup.bk
SmartSwitchBackup.bk_backup
SmartSwitchBackupInf.bk
SmartSwitchBackupInf.bk_backup
the SmartSwitchBackup.bk and SmartSwitchBackup.bk_backup are 1.9 Mb binary files, the rest are ANSI text files below 130 bytes. And then there are 62 subfolders, but TC doesn't even get to copy those.
I now tried again - excluding the SmartSwitchBackupInf.bk file (Only files of this type: *.* | SmartSwitchBackupInf.bk), but the TC just crached when trying to copy the .nomedia file.
If I try to use the Synchronization Tool to copy the 1670454987192 directory TC also crashes.
When I reopen TC after the crash I can see a 0 byte SmartSwitchBackupInf.bk file and nothing else in the 1670454987192 folder on the PC.
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-14, 17:00 UTC
by ghisler(Author)
Do other file operations like renaming these files work without crash? With Android 12 I have the strange behaviour that renaming returns an error, but when I then refresh the list, the name has actually changed.
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-14, 17:02 UTC
by Usher
petermad wrote: 2022-12-14, 11:43 UTC
It is an ANSi text-file with this content:
Code: Select all
{"backup_id":801751359,"device_name":"SM-G981B","display_name":"Samsung Galaxy S20 G5","date":"1670454987192","size":8393001780}
Look at the size: 8393001780. It's almost 8 GiB.
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-14, 17:06 UTC
by petermad
2Usher
The size is 128 bytes - what you see in the code box here above.
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-14, 17:23 UTC
by petermad
Do other file operations like renaming these files work without crash
If I try to rename any file with MediaAudio 2,I get a message that it is not possible - remove the write protecyion. When I afterwards reload the folder, the file turns out to have been renamed anyway.
If I try to open SmartSwitchBackupInf.bk in Lister I get the same crash as when I try to copy it.
But I have testet a lot and have so far found out that it does not depend on the filename or the folder name, but in some way depends on the size of the file.
Here is what I do to reproduce the bug:
1. Download this archive:
https://madsenworld.dk/tcmd/test.zip
2. Copy the 3 files in the archive to any directory on the phone (for example Documents on the SD-card)
3. Close and reopen TC, and open the phone's SD-card with AudioMedia 2 and go to the Documents folder
4. Copy the file test2.txt to the PC - no problem here
5. Copy the file test1.txt to the PC - TC crashes here
6. Reopen TC and copy the file test3.txt to the PC - TC crashes here
So it not just the size of the file. And it is not whether it has line breaks (I have tried that too), it is just som (small) sizes of non-binary files that causes it.
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-14, 21:39 UTC
by Usher
petermad wrote: 2022-12-14, 17:06 UTC
2
Usher
The size is 128 bytes - what you see in the code box here above.
Peter, this small file contains info about total backup size. Is it so difficult to understand it?
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-15, 08:59 UTC
by petermad
2Usher
It is only that little file that is not copied and causes the crash, the rest of the backup copies fine - the backup is NOT one big file, it is 591 files in 62 folders. The biggest file is 176 Mb an the total backup is 4.7 Gb
Also read my next post - it is not about this particular backup, it happens when ever I try to copy small ANSI files of certain sizes, from anywhere on the phone.
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-17, 00:04 UTC
by Usher
petermad wrote: 2022-12-15, 08:59 UTC
2
Usher
It is only that little file that is not copied and causes the crash, the rest of the backup copies fine - the backup is NOT one big file, it is 591 files in 62 folders. The biggest file is 176 Mb an the total backup is 4.7 Gb
So it's larger than 4 GiB, and the number in
"size":8393001780 is probably a total size of UNPACKED set of files.
It looks like a bug in a backup tool - it can create a backup set larger than 4 GiB, but it cannot UPDATE it (If I understand it correctly, this small file is added as the last one, when the backup is finished). Have you tried to create a backup set smaller than 4 GiB?
Re: [TC 10.50 ] Crash when copying with MediaAudio2
Posted: 2022-12-17, 00:40 UTC
by petermad
2
Usher
Have you tried to create a backup set smaller than 4 GiB?
It is not about the backup, it was just here that I first experienced the bug - please read the other posts here above especially:
But I have testet a lot and have so far found out that it does not depend on the filename or the folder name, but in some way depends on the size of the file.
Here is what I do to reproduce the bug:
1. Download this archive:
https://madsenworld.dk/tcmd/test.zip
2. Copy the 3 files in the archive to any directory on the phone (for example Documents on the SD-card)
3. Close and reopen TC, and open the phone's SD-card with AudioMedia 2 and go to the Documents folder
4. Copy the file test2.txt to the PC - no problem here
5. Copy the file test1.txt to the PC - TC crashes here
6. Reopen TC and copy the file test3.txt to the PC - TC crashes here
So it not just the size of the file. And it is not whether it has line breaks (I have tried that too), it is just som (small) sizes of non-binary files that causes it.