[TC 10.50 ] Crash when copying with MediaAudio2

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[TC 10.50 ] Crash when copying with MediaAudio2

Post 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.
Last edited by petermad on 2022-12-13, 18:16 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.50 ] Crash in when copying with MediaAudio2

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50 ] Crash in when copying with MediaAudio2

Post 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?
Last edited by petermad on 2022-12-14, 11:41 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.50 ] Crash in when copying with MediaAudio2

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50 ] Crash in when copying with MediaAudio2

Post 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
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post 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).
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post 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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post 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.
Last edited by Usher on 2022-12-14, 21:42 UTC, edited 1 time in total.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post by *petermad »

2Usher
The size is 128 bytes - what you see in the code box here above.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post 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.
Last edited by petermad on 2022-12-17, 00:41 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post by *Usher »

petermad wrote: 2022-12-14, 17:06 UTC 2Usher
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?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post 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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post by *Usher »

petermad wrote: 2022-12-15, 08:59 UTC 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
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?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50 ] Crash when copying with MediaAudio2

Post by *petermad »

2Usher
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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply