Libgdx html (gwt) font error - Invalid page id - html

When I try to run html application I get this error in browser:
GwtApplication: exception: Error loading font file: fonts/comic-en.fnt
Error loading font file: fonts/comic-en.fnt
Invalid page id:
For input string: ""
Android build runs always successfully, the font file is correct. This bug happens even while running libgdx sample projects. Is there some secret magic?

Fixed in github.com/libgdx/libgdx/pull/4475

Related

Can't export my Unity project as an html5

I'm trying to export my game as an html5, but everytime I keep getting the same error message:
**UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <11d97693183d4a6bb35c29ae7882c66b>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <11d97693183d4a6bb35c29ae7882c66b>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
**
I have tried changing the settings, but the **build ** folder they created is empty.I just want it to give me an html file.

Getting "Argument Invalid Exception Error" on using selenium for passing URL customized URL's to chrome driver

I have a text file which contains multiple random URL's.
Example: https://5SnczRo6sk3hWl=10pfmNzxmNZ7f.geVxQ25XIQ%ic/%2O.nrw
While sending it to chrome, for some urls I'm receiving mentioned error however for some it is working properly. (My aim is very simple: Send URL to browser ,check its output and then close the browser.)
PFB Code:
url = open ('URL_DB_new.txt','r')
url_rpt = url.read().split("\n")
for link in url_rpt:
driver = webdriver.Chrome(executable_path=r'D:\Software\chromedriver\chromedriver.exe')
print("link: ", link)
driver.get(link)
time.sleep(3)
driver.quit()
PFB Error:
Selenium Error
Any suggestion on how to handle this exception or remove it?

Error when loading Viewer v3.2.1

I'm getting an error when loading the Forge Viewer v3.2.1.
I've just tried with v3.1.1 and it's working fine.
The error thrown in the console is:
ERROR TypeError: WGS is undefined
Autodesk.Viewing.Private.initializeLegacyNamespaces#https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3D.min.js?v=v3.2.1:12:10590
e#https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3D.min.js?v=v3.2.1:42:7197
j#https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3D.min.js?v=v3.2.1:42:5825
It was working fine yesterday, and I haven't touched my code, so I assume it is a bug.
Thanks.
The url you should use is https://developer.api.autodesk.com/derivativeservice/v2/viewers/viewer3D.min.js?v=3.2.1. My apps are using this and it works fine.
I'm loading this version like this:
https://developer.api.autodesk.com/derivativeservice/v2/viewers/viewer3D.min.js?v=3.2.*
Add the script like that it is working for me.

Appcelerator message = "JSON Parse error: Unexpected identifier \"undefined\"";

I am adding new features to an app I wrote last years and is working now ... I just port the code from Appcelerator (3.2...) to the Appcelerator Studio 5.2.0.GA SDK ... and I have spent 2 days trying to figure out why code that currently works on an app in the app store is not working in the SDK 5.2.0 environment
I keep getting the above error .. I am positive the url is correct and working
This line of code works now in the app in the store and in 3.1... but is not working in 5.2.0
var jsonObject = JSON.parse(this.responseText);
It gives the above error
"JSON Parse error: Unexpected identifier \"undefined\"";
I have read their site and searched for a solution ... Thanks
entire Block
Try one thing:
Open this site and put your response data in which you are getting error https://jsonformatter.curiousconcept.com
After parsing the same data on the above site, you can check whether the problem is really in your Titanium code or in your data.
Also check whether you are really getting any response data or not.
If it does not help, then please share some necessary source code
Thanks

Exit code 1 http error : 1202 - wkhtmltopdf - Google Map (static image)

I have a problem with the generation of a PDF with wkhtmlpdf. Here is my investigation:
1- Generation of PDF with static Google Map image in default mode (default size)
The web page and PDF contain the image.
2- Generation of PDF with static Google Map image with business licence (customize size)
The web page contains the image, the PDF not.
3- In command line
If I run in command line the wkhtmlpdf instruction, I receive this exception code:
Exit with code 1 due to http error: 1202
The only difference between the both is the url parameters &client=XXXXX and &signature=YYY are added for the business call at Google.
I didn't find a description for this http error code on the net and I wonder me if it's really a right http error code.
I am not an expert with wkhtmltopdf.
This is actually issue #1502 and is fixed in the development version, for which you can download a snapshot from the website.
So, the description for this error code is: PDF generated OK, but some request(s) did not return HTTP 200.
In waiting the final version, I decided to load the Google Map image in local and after put a reference in the web page.
With this solution, I don't have any exception while the generation of PDF.
Below is the code to load and save the Google Map image.
String myUrl = "http://www.lesoir.be/sites/default/files/imagecache/475x317/2014/04/02/1670051557_B972392274Z.1_20140402231342_000_GIT27H8H9.2-0.jpg";
URL imageURL = new URL(myUrl);
RenderedImage img = ImageIO.read(imageURL);
File outputfile = new File("C:\\Dev\\Tmp\\Img\\image.jpg");
ImageIO.write(img, "jpg", outputfile);