Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4475

K5 browsers exit after some time

$
0
0
Hello,

I have a Kindle touch (K5), Firmware is: 5.3.7.3
I have jail-breaked it successfully following the description here: http://wiki.mobileread.com/wiki/K5_Index
After the jailbreak I have installed KUAL, and finally an extension to get full screen browser:
http://www.mobileread.com/forums/sho...d.php?t=210210

All works nice, and I have programmed a little test server app for my PC (using LabVIEW) which has a webserver in order to display images in the Kindle's browser. I reach the PC from the Kindle via my local wifi.
It works, however I face a strange bug: after some minutes, the WebLaunch browser quits without error msg. The same happens with the official browser, but with the following msg: "Application Error
The selected application could not be started. Please try again."

The web server was set up to autorefresh at every 10 seconds. If I set the auto refresh rate to some high value (lets say 1 hour), then I do not get any problem (or I did not wait enough), the browser just statically shows the loaded web site obviously (I have disabled the screensaver of the Kindle).

Here is the javascript and html code side of the LabVIEW webserver. How could I fix this problem? (if needed, I can share the LabVIEW project too).
Thanks very much for any help and guide!

index.js:
Code:

/*global $*/

/*
updateFPimage gets the newest version of the Front Panel
image from the server. To prevent the browser from loading
a cached version of the image, we add a query to the URL
for the image. We're using the time, but any query that is
guaranteed not to repeat would be fine.
*/
function updateFPimage() {
    //use strict prevents the use of undeclared variables
    "use strict";
    var d = new Date();
    $("#fpimg").attr("src", "getFPimage?" + d.getTime());
}

$(document).ready(function () {
    //use strict prevents the use of undeclared variables
    "use strict";
   
    //setInterval calls updateFPimage every 200 ms --> changed to 30 minutes to test bug...
    setInterval(updateFPimage, 1800000);
});

index.html:

Code:

<!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

  <title>Auto-Updating Image</title>
  <meta name="description" content="Auto-Update Image">
  <meta name="author" content="SitePoint">
</head>

<body>

  <script src="js/index.js"></script>
  <!-
    'id' is the hook we're going to use for our JS, and
    'getFPImage' is the name of our VI that returns an image
    of the front panel.
->
  <img id="fpimg" src="getFPImage">


</body>
</html>


Viewing all articles
Browse latest Browse all 4475

Trending Articles