Cesium on Android

I am trying to use Cesium in a Crosswalk webview in an Android application, the server is embedded in the same application and implementedd using NanoHTTPD. If I connect the server and I load the webpage from a PC connected through the wifi hotspot, it loads all perfectly. If I try to load the webpage from the webview or even with the Chrome application for Android, it crashes.

Do you have any idea about what could be causing that?

Thanks

I’m not familiar with Crosswalk, does it fully support WebGL? Can you copy and paste the result of going to http://webglreport.com in the webview?

Also, the latest Android (4.4.3 I believe) supposedly supports WebGL out of the box in it’s WebView now, but I haven’t tried Cesium on it yet.

I'm not familiar with Crosswalk, does it fully support WebGL? Can you copy and paste the result of going to http://webglreport.com in the webview?

Crosswalk has the purpose to bring WebGL to the webview even to Android prior KitKat by replacing the native browser by a chromium based one.

Even without Crosswalk my device is WebGL compatible (Xiaomi Mi3).

I can do a screenshot of the report but I don't know how to post it.

Also, the latest Android (4.4.3 I believe) supposedly supports WebGL out of the box in it's WebView now, but I haven't tried Cesium on it yet.

I am trying to use Cesium in a Crosswalk webview in an Android application, the server is embedded in the same application and implementedd using NanoHTTPD. If I connect the server and I load the webpage from a PC connected through the wifi hotspot, it loads all perfectly. If I try to load the webpage from the webview or even with the Chrome application for Android, it crashes.

Do you have any idea about what could be causing that?

Thanks

--

You received this message because you are subscribed to the Google Groups "cesium-dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Has anyone managed to embed node.js in Android or to use Cesium in a webview somehow?

You should be able to select all text and just copy and paste the results.

Also, stock Android supports screenshots with Power + Volume Down at the same time. On some phones it’s Power + Home Button (press and hold for a few seconds and the snapshot ends up in your Gallery).

Can you also let us know the exact error you’re getting.

Sorry for the misunderstanding, I know how to take the screenshot but not how to post it in this forum. The crosswalk webview doesn't let me select the text, I tried.

The thing is that I am not getting any error, my application or Android Google Chrome app crash while loading the HelloWorld.html. By crash I mean that it disapears from the screen and they have to be relaunched, but logcat shows no error, not even a warning, nothing.

Sorry I do get an error, segmentation fault, see: http://stackoverflow.com/questions/24390864/nanohttpd-in-android-serving-multiple-files-webpage

From the looks of that link, I don’t think the crash has anything to do with Cesium and is purely a nanohttpd issue (which I’m not familiar with), sorry.

Actually, after all the array of comments that followed we realised that most probably it isn't. I tried with two different webservers, both work if I connect from the desktop browser but they don't if I connect with the phone web browser. I am going to keep trying to integrate node.js in the application and if I don't find anything I would have to go for one of the alternatives.

Thanks.

From the info on stackoverflow, it looks like a crash in Chrome itself on Android.

06-25 10:27:03.980: A/libc(19604): Fatal signal 11 (SIGSEGV) at 0x00000080 (code=1), thread 19696 (Chrome_InProcGp)

If you’re using the latest version of Chrome, you can try creating a reproducible test case and reporting the crash to the Chrome team. https://code.google.com/p/chromium/issues/list