copy folder on standalone: bizzare things with LC8

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rmuzzini
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Mon Oct 08, 2012 11:30 am

copy folder on standalone: bizzare things with LC8

Post by rmuzzini » Mon Sep 19, 2016 10:26 am

hi all.
experts and people who loves paranormality needed here.

i have a stack, quite old (first release was made with LC 6 or even runRev 5.5, can't remember).
i was recompiling it with LC8.1, for iOS 10 compatibility.
it has a folder included as "non-stack files", which contains a single file.
when i save it as stand alone here's the result:
for Android: all ok as expected
into iOS (and MacOS, Windows and even Linux) the folder included into the built apps contains the expected file PLUS another file whose name is exactly the full path to the original file on my machine (yes, with slashes into the name!).
example:
"mystack.livecode" with embedded folder "myfiles" with 1 single file "myfile.sqlite"
after having compiled it, in stand alone "myfiles" folder i can see:
"myfile.sqlite", which is correctly a 900 KB file
AND
"/Users/remu/Documents/Project/Apps/test_app/myfiles/myfile.sqlite", a 1 KB file, almost empty.
bizzare? ah! wait, read more below…

if i open that unwanted file with a hex editor, along lot of zeros i can read the path to the app i used years ago to edit it ("Applications/-DataBase/SQLite Database Browser 2.0 b1.app"). a no longer existent path, btw…

!!!

things to know:
- if i put other files into "myfiles", the stand alone "myfiles" folder contains correct files as expected, except for THAT specific sqlite file, which comes with its ghost brother.
- even if i put other sqlite files in "myfiles" folder, THAT specific sqlite file is the ONLY one with this anomaly
- if i create a brand new empty stack, i embed the "myfiles" folder and i build the SA, same result: that "path-to-original" file is created too
- if i use LC7 to open a backUp copy of my original stack (note: which was updated during the years 'till LC7 and it never gave me problems) and i build the SA, the SA embedded folder contains the correct file only, as expected.

therefore:
- this is a quite bizzare issue
AND
- it is something related to that specific old sqlite file
AND
- it is something related to the way LC8 builds the stand alone

now, the difficult part:
any hint?
:-/
Android:
SA_android.png
SA_android.png (23.23 KiB) Viewed 4629 times
iOS
SA_iOS.png
MacOS
SA_MacOS.png

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 861
Joined: Fri Feb 06, 2015 4:03 pm

Re: copy folder on standalone: bizzare things with LC8

Post by LiveCode_Panos » Mon Sep 19, 2016 10:48 am

Hi rmuzzini,

This looks quite similar to this bug:

http://quality.livecode.com/show_bug.cgi?id=18379

Best regards,
Panos
--

rmuzzini
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Mon Oct 08, 2012 11:30 am

Re: copy folder on standalone: bizzare things with LC8

Post by rmuzzini » Mon Sep 19, 2016 10:54 am

thank you for your hint, panos.
it seems we can add another "AND":

AND
- who build the app is italian (system related issue?)

i currently run MacOS 10.10.5. italian as first language.

rmuzzini
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Mon Oct 08, 2012 11:30 am

Re: copy folder on standalone: bizzare things with LC8

Post by rmuzzini » Mon Sep 19, 2016 11:02 am

it seems the issue is worse than i thought: i had a look inside other apps i recently updated with LC 8.1 and for lot of them i got that bug.
lot of unwanted files saved into the stand alone.
speaking of PNGs and JPEGs, this time
note: 8 apps, 4 have this issue, 4 have not.
even more bizzare…

rmuzzini
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Mon Oct 08, 2012 11:30 am

Re: copy folder on standalone: bizzare things with LC8

Post by rmuzzini » Mon Sep 19, 2016 11:23 am

note: i set my macOS system language to "english" and i got same buggy result.

Post Reply