Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

XDK feb 23 release - not running my app anymore

Bradley_E_
Beginner
1,209 Views

(two images added)

This is my second post on this same project of mine. I've uploaded logs and tried to explain what is happening. I don't have any answer. Im seeing things in the console that i never saw before, "backend-services.js" ive never seen, missing resources, i know the two different ERR are to be ignored but i still dont know how anyone would be "comfortable" seeing that in the console every time. 

Regardless, I can attach a working copy of this project if that would help. Before XDK updated it was all working fine. Now after update, with zero code changes, i went to emulate my project and it crashed. The first screen is a login screen that sends an AJAX POST to my amazon server to get login credentials and when i run that first function it shows the XDK splash screen and then crashes.

This app has multiple thousand line JS files and large index.html files, and the project was due to be released next week and submitted to the App store tomorrow. I lost all day yesterday, and now i feel my only solution is to start from scratch and copy paste code where i can and rebuild the app. I've begun recreating the login page only and  

I will give it one more, day but i have investors that will not understand this problem, and frankly i don't have an explanation except to say that the Flex capacitor went out...

I've uploaded logs from XDK all day yesterday and this morning, i have one post from yesterday and now this one with zero response. Someone give me an idea of whats going on please. 

0 Kudos
1 Solution
Swati_S_Intel1
Employee
1,209 Views

Hello Brad,

We have a workaround until we have a fix for emulator crash. The crash happens when you are trying to change the location of the current page during ajax callback and emulator is not able to resolve the relative address. Please use the following code wherever you are trying to change the location.    

var newLocation = 'index.html#viewjobs_online'; // or any other new location 
if ( window.tinyHippos ) { 
// special case for emulator
  newLocation = getWebRoot() + newLocation;
}
document.location.href=newLocation;

function getWebRoot() {
    "use strict" ;
    var path = window.location.href ;
    path = path.substring( 0, path.lastIndexOf('/') ) ;
    path += '/';
    return path;
}

Thanks,

Swati

View solution in original post

0 Kudos
7 Replies
Swati_S_Intel1
Employee
1,209 Views

Hi Brad,

Sorry to hear that your project is breaking with new version of XDK. I'm looking into the problem. If you don't mind please send your project so I can debug.

Thanks,

Swati

0 Kudos
Bradley_E_
Beginner
1,209 Views

i sent you a private message with the app attached, thanks

0 Kudos
Swati_S_Intel1
Employee
1,209 Views

I tried the app you sent me. Your app works fine with test tab, there seems to be an issue with emulator while getting data from the your server, I'm trying to narrow it down. Meanwhile, please use test tab to test your app and debug tab if you want to debug. Build should work also.

Thanks,

Swati

0 Kudos
Swati_S_Intel1
Employee
1,209 Views

Hello Brad,

I tested your app extensively and the problem lies in the location url referenced via emulator. This is an emulator only bug. We are trying to get a fix for that. The app works fine with Test tab using App Preview on device as well as when you build and run on the device. For now you can avoid using emulator. 

In your other post https://software.intel.com/en-us/forums/topic/541973 you mentioned that the app does not work on device. I believe it is a different app you are talking about there or please check with the version that you sent me. I checked on both iOS and android and the project you sent works just fine.

Thanks,

Swati

 

0 Kudos
Bradley_E_
Beginner
1,209 Views

Swati, 

Thanks for looking further into this. The version i sent you does work in teh TEST tab for me right now, and the build finally worked as well. I reloaded teh ZIP i gave you a few hours ago and was able to get good results. The emulator though is in crash mode and i cannot test anything in it at the moment. 

The ZIP i gave you i had already tried reseting all the plugins and i think that is what made the test and build version fail for me for so long. So when i reloaded it and XDK it seems to be working. Not have the emulator tab can really slow down some development though, so i hope a solution is found soon.

Thanks so much for your help, please let me know what fixes are made with the emulator or if i can help in any way.

 

0 Kudos
Swati_S_Intel1
Employee
1,210 Views

Hello Brad,

We have a workaround until we have a fix for emulator crash. The crash happens when you are trying to change the location of the current page during ajax callback and emulator is not able to resolve the relative address. Please use the following code wherever you are trying to change the location.    

var newLocation = 'index.html#viewjobs_online'; // or any other new location 
if ( window.tinyHippos ) { 
// special case for emulator
  newLocation = getWebRoot() + newLocation;
}
document.location.href=newLocation;

function getWebRoot() {
    "use strict" ;
    var path = window.location.href ;
    path = path.substring( 0, path.lastIndexOf('/') ) ;
    path += '/';
    return path;
}

Thanks,

Swati

0 Kudos
Bradley_E_
Beginner
1,209 Views

Thank you, i will use this until i get further detail from you.

0 Kudos
Reply