Found an issue in SpiderBasic ? Please report it here !
Peter53
 
Posts: 12
Joined: Thu Mar 28, 2019 2:58 pm

Create Android app stops at 60% (Solved)

by Peter53 Tue Sep 03, 2019 11:48 am

Just separated it from the similar IOS bug report since it seems to otherwise 'drown' in the IOS topic.
The problem is still present in Windows version. We have to revert to version 2.0 to compile to android aps.
Best regards
Peter

Update: 12/15/19.
Added this to the "tips and tricks" section too.
viewtopic.php?f=9&t=1478

This only concerns people using Windows 10 and Windows 10 Privacy Tool
available from this site: https://www.winprivacy.de/english-home/
Since SpiderBasic version 2.0, I have been unable to compile for
Android. An annoying crash happened each and every time at 60%.
No information, no hints and no way to explain why the compiler
stopped....Unable to give Fred any hints of ANY kind, I settled
for version 2.0 and did what I had to do..
Recently I bought new ssd drives, gfx card and other hardware which
required a completely new installation. Latest SpiderBasic and jdk installed
but this time I omitted the privacy tool...and there it was..!
Working like a charm. For the first time I was able to compile for Android
on a version greater then 2.0! Lovely!!
Now...Using a privacy tool can be a nice thing, but it does pose several
problems in doing so. At default settings, the privacy tool will
automatically tinker with telemetry and so forth....and this is some of the
issues that hinders the compiler from creating the Android app.
So...Be careful with privacy tools! It may be a great thing, but it can cause
problems in unexpected ways and become a real nuisance.. :-)
Last edited by Peter53 on Sun Dec 15, 2019 11:50 am, edited 1 time in total.
hoerbie
 
Posts: 33
Joined: Sun Mar 17, 2019 5:51 pm

Re: Create Android app stops at 60%

by hoerbie Tue Sep 03, 2019 5:39 pm

I think this could be some problems with different Cordova versions just as from different Windows versions, I actually have no problem compiling our App for Android using SB2.21 on Windows 7 Pro 32-Bit (including all updates) with Java JDK/JRE 8.0_202 32-Bit, but I never did any updates to Cordova/NPM there since my install in February 2019.

I will do some tests tomorrow with different Windows installs and report here.
Fred
Site Admin
 
Posts: 1215
Joined: Mon Feb 24, 2014 10:51 am

Re: Create Android app stops at 60%

by Fred Wed Sep 04, 2019 1:13 pm

With the Windows version, cordova is shipped in the SB package and should work out of the box. Did you tried to do a reinstall ?
hoerbie
 
Posts: 33
Joined: Sun Mar 17, 2019 5:51 pm

Re: Create Android app stops at 60%

by hoerbie Wed Sep 04, 2019 6:54 pm

I did some tests today with the 2.22b1 version:

My two development machines for Windows:

Win7 Pro SP1 64Bit
JDK 1.8.0_202
-> .apk compiled

Win7 Pro SP1 32Bit
JDK 1.8.0_202
-> .apk compiled

A nearly new laptop where I installed SB Beta and Java today and tested before and after a lot of Windows updates:

Windows 10 Home 1809 17763.652 64Bit
JDK1.8.0_221 32Bit
-> .apk compiled

Windows 10 Home 1809 17763.720 64Bit
JDK1.8.0_221 32Bit
-> .apk compiled

I can do further tests if needed in some VMs (XP Pro 32Bit, Win 8 Pro 32Bit, Win 10 Pro 64Bit).


By the way, in Preferences/Compiler there's configured the "JDK 1.8+ path", does this work only with 1.8.x or can we use newer JDK12 also, I never had time to test, what the "+" really means, and JDK12 is only 64-Bit.....
Peter53
 
Posts: 12
Joined: Thu Mar 28, 2019 2:58 pm

Re: Create Android app stops at 60%

by Peter53 Wed Sep 04, 2019 11:25 pm

@Fred
Sorry for the late replay. Working at odd hours.
Yes, I've tried reinstalling, complete deletion and reinstalling.
To get SpiderBasic 2.0 working as it should, I needed to download java 1.8.0_191
and set the path accordingly: ie. "C:\Program Files (x86)\Java\jdk1.8.0_191\"
After that, it has worked and compiled to android flawlessly.
Is there something similar which must be done for 2.22?
Running Windows 10.
Best regards
Peter

Edit:
@Hoerbie
Thanks for testing...I can't explain why anything above 2.0 won't work for me. (Unless it requires a different java to be installed)

Edit 2:
Tested SB 2.0 with jdk1.8.0_202 and it still compiles perfectly. Any SB version above 2.0 won't compile to android and craches at 60% without further information. I can't figure out the problem, since no hint is given, so I have to stick with SB 2.0 for now.
Removing the path to jdk in the compiler section, displays a warning that it needs the jdk to compile for android, which is correct...So the problem must be elsewhere...?
Fred
Site Admin
 
Posts: 1215
Joined: Mon Feb 24, 2014 10:51 am

Re: Create Android app stops at 60%

by Fred Fri Sep 13, 2019 8:27 am

could you try to compile from commandline with the new --verbose flag to see what's happening ?
Peter53
 
Posts: 12
Joined: Thu Mar 28, 2019 2:58 pm

Re: Create Android app stops at 60%

by Peter53 Fri Sep 13, 2019 9:25 am

@Fred
It's weird. I'm really sorry I can't provide more useful info... :(
Everything works fine using 2.0 and that's especially troublesome.
I've tried a full reformat, reinstall, installed the jdks and the result is the same each time...
No info..just crash with a single message "App build failed" at 60%.
Problem is related to Android build only. I wish other had the same issues and would post it, then we might narrow it down...mayby.
Anyway..I do enjoy SpiderBasic. ;)
William Van Hoecke
 
Posts: 5
Joined: Tue Oct 22, 2019 12:09 pm

Re: Create Android app stops at 60%

by William Van Hoecke Tue Oct 22, 2019 12:29 pm

Hi,
Using PB for quite some time now but only just starting with SB.
Same problem here: at 60% I get 'App buid failed' ??

Any solution yet.
Thanks
the.weavster
 
Posts: 171
Joined: Sat Mar 01, 2014 3:02 pm

Re: Create Android app stops at 60%

by the.weavster Fri Oct 25, 2019 8:55 pm

Just a guess but does following falsam's tip to close the debug window make a difference:
Code: Select all
; Really close the debug window
CloseDebugOutput()
!$('div').eq(0).remove()
William Van Hoecke
 
Posts: 5
Joined: Tue Oct 22, 2019 12:09 pm

Re: Create Android app stops at 60%

by William Van Hoecke Tue Oct 29, 2019 5:03 pm

@ the.weavster

Not sure what you mean ?
If put this at the start of my code -> !$('div').eq(0).remove()
still the same -> App buid failed

getting desporate here
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest