Error constructing cesiumwidget

When using the source method, I'm hitting an error on load Error constructing CesiumWidget. (CesiumWidget.js:629) Visit http://get.webgl.org</a...

Thanks for looking into this.

I checked out your branch and hit against this error (after installing webpack and webpack-dev-server. I presume you’ve got them as globals):

...
  [634] ./~/cesium/Source/Widgets/VRButton/VRButton.js 5.7 kB {0} [built]
  [635] ./~/cesium/Source/Widgets/VRButton/VRButtonViewModel.js 6.91 kB {0} [built]

WARNING in ./~/cesium/Source/ThirdParty/earcut-2.1.1.js
Critical dependencies:
1:479-486 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/cesium/Source/ThirdParty/earcut-2.1.1.js 1:479-486

ERROR in Path must be a string. Received undefined

Not sure where to start debugging that one.

Are you using the postInstall.sh script in this example? I see it runs, but there doesn’t seem to be any reference to the copied files in the Webpack build list (see module 635 references the cesium source).

With regards to differences, it seems very similar, but I’m using Webpack 2 with Babel/React, so there might be some incompatibilities there.

Well I wanted to add this as an edit, but it wasn’t accepted, so I added my findings as an answer:

I managed to make it work with CrossWalk on any device with Android 4+ on it and android webview with a sony xperia phone with android 5 on it. I wanted to add the things I’ve found:

If you want to use android webview, your device must have android 5+ and your device must not be on gpu_blacklist. There is no device list for gpu_blacklist on the net that I can find, but there is a way to understand that your device is in the gpu_blacklist or not. Open chrome, then type chrome://gpu, then look at reset notification strategy field. If it is 0x8252 then your device supports webgl, if it is 0x0000 then your device is in the blacklist. So with android 5+ and your device not being on the gpu_blacklist, you can use webgl with android webview.

If you want to use chrome instead of android webview even with a device which is on gpu_blacklist, you must use chrome version 37+. To check it, open chrome, type chrome://version. After that open chrome, type chrome://flags, in that page enable webgl and override software rendering list fields. With that you can use webgl even with devices that on the gpu_blacklist or with devices that has os below android 5 on them.

If your device can’t provide above requirements, like mine, you can use CrossWalk it works. However, the documentation is not well organized and you can’t find much information other than its own documentation, in case you have problems with it. The reason CrossWalk works is when you build apk file you can send command line arguments like --ignore-gru-blacklist. However as the documentation states if you use this on devices that are on the gpu_blacklist, your application or the whole device might froze.

  • Remove From My Forums
  • Question

  • I’m having a problem using Internet Explorer 11 and the flight tracking site radarbox24.com on one of my PC’s, using Windows 7. When I try to use Cockpit View, I get a message «Error Constructing CesiumWidget». My other PC’s work fine with this
    site.Any ideas?

Answers

  • Hi,

    a guess would be either Tracking Protection or ActiveX filtering.

    Do you see a blue icon (circle with a line through it) in the IE Address bar when you visit that particular page of that site?

    Double click it to adjust the Tracking Protection and ActiveX filtering options for that site (see Help>Internet Explorer Help menu from IE).

    Regards.

    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it’s highly recommended you head on over to http://answers.microsoft.com/en-us

    Please include the FULL address (copied from the IE Address bar) of any websites you are having problems with your questions.


    Rob^_^

    • Proposed as answer by

      Tuesday, July 28, 2015 6:24 AM

    • Marked as answer by
      Michael_LS
      Wednesday, August 26, 2015 9:26 AM

7 / 7 / 5

Регистрация: 15.04.2009

Сообщений: 564

1

22.09.2021, 14:58. Показов 823. Ответов 2


добрый день
Кто нибудь работал с cesium https://www.youtube.com/watch?v=BuDjPKLvhv8
я проделала все и результат не такой какой нужен
Прикрепила результат
как исправить не знаю
Вроде с браузером все нормально. Пробовала два
драйвера обновила
Все не помогает
Ноут куплен 6 лет назад
Может знает кто в чем дело
Спасибо

Миниатюры

cesium
 

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



332 / 295 / 134

Регистрация: 14.03.2015

Сообщений: 1,087

Записей в блоге: 1

22.09.2021, 15:39

2

HelloWord, В консоли нет ошибок?



0



7 / 7 / 5

Регистрация: 15.04.2009

Сообщений: 564

23.09.2021, 15:57

 [ТС]

3

есть

Код

Error constructing CesiumWidget.
Visit <a href="http://get.webgl.org">http://get.webgl.org</a> to verify that your web browser and hardware support WebGL.  Consider trying a different web browser or updating your video drivers.  Detailed error information is below:
DeveloperError: Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.
Error
    at new DeveloperError (vendor.js:77110)
    at getCesiumBaseUrl (vendor.js:148252)
    at buildModuleUrlFromBaseUrl (vendor.js:148272)
    at buildModuleUrl (vendor.js:148310)
    at getDefaultCredit (vendor.js:242806)
    at Function.get (vendor.js:242842)
    at new CreditDisplay (vendor.js:242616)
    at new Scene (vendor.js:330003)
    at new CesiumWidget (vendor.js:418112)
    at new Viewer (vendor.js:424959)

Добавлено через 25 минут
В main.ts есть строка
window[‘CESIUM_BASE_URL’] = ‘/assets/cesium/’;

на нее ругается

Добавлено через 20 минут
может кто проделывал это? Выводил землю на экран? Подскажите ссылку как это делать?
спасибо



0



У меня есть веб-проект (зависит от WebGL), который работает на компьютерах в любом браузере. Сейчас я пытаюсь открыть этот проект как приложение для мобильных телефонов на базе Android. Для этого я использовал WebView. На моем телефоне (Nexus 3) был Android 4.3, и, как я узнал позже, до Android 5, компонент WebView не поддерживал WebGL. С Android 5 WebView стал обновляемым независимым компонентом, который зависит от Chromium версии 37 (может быть обновлен) и начал поддерживать WebGL. Так что ошибка, которую я получал с Android 4.3, ожидаема.

После этого я попробовал использовать другой телефон (Samsung galaxy S4 с Android 5 и Chrome версии 43). Значит, приложение должно было работать нормально, но все равно получать ошибку в WebView. Я попробовал get.webgl.org, но с той же ошибкой:

Error constructing CesiumWidget.

Visit http://get.webgl.org to verify that your web browser and hardware support WebGL. Consider trying a different web browser or updating your video drivers.

Подробная информация об ошибке приведена ниже:

RuntimeError: The browser supports WebGL, but initialization failed.

Ошибка

at new RuntimeError (http://192.168.43.125:8090/TMAPW/lib/Cesium/Build/CesiumUnminified/Cesium.js:10657:19)
at new Context (http://192.168.43.125:8090/TMAPW/lib/Cesium/Build/CesiumUnminified/Cesium.js:96489:19)
at new Scene (http://192.168.43.125:8090/TMAPW/lib/Cesium/Build/CesiumUnminified/Cesium.js:120928:23)
at new CesiumWidget (http://192.168.43.125:8090/TMAPW/lib/Cesium/Build/CesiumUnminified/Cesium.js:130986:25)
at AMouseListener.Map2D.initWidget 

Это все еще казалось проблемой конфигурации, поэтому я попытался открыть это в Chrome, а не в WebView, но с той же ошибкой. Я включил WebGL в Chrome, следуя инструкциям. `Хотя Firefox работает нормально. У меня три вопроса:

  1. Кажется, что-то я делаю не так, как это исправить?

  2. Android по-прежнему не поддерживает WebGL в WebView, разве нет возможности открывать приложения, зависимые от WebGL?

  3. Есть ли другой способ открыть проект WebGL как приложение. (Я читал о cordova и cocoon.js, но не уверен, что это можно сделать с их помощью.) Так что, если есть один, который работает нормально, я бы предпочел сразу перейти к нему.

3 ответа

Лучший ответ

За исключением Samsung s4 с Android 5.0.1, остальные устройства возвращают значение webgl true.

  • | Nexus 9 | Android 5.0 | webgl работает |
  • | Nexus 6 | 5.1.1 | webgl работает |
  • | htc | 4.4.4 | webgl работает |
  • | Samsung Galaxy Note 4 | 5.0.1 | webgl работает |
  • | samsung s4 | 5.0.1 | webgl не работает |
  • | samsung s5 | 6.0 | webgl работает |
  • | Nexus 5 | 6.0 | webgl работает |
  • | MotoX | 6.0 | webgl работает |


1

Pratap Dessai
22 Июл 2016 в 18:50

Я хотел добавить это как правку, но это не было принято, поэтому я добавил свои выводы в качестве ответа:

Мне удалось заставить его работать с CrossWalk на любом устройстве с Android 4+ на нем и android webview с телефоном sony xperia с android 5 на нем. Я хотел добавить то, что нашел:

Если вы хотите использовать android webview, ваше устройство должно иметь android 5+, и ваше устройство не должно быть на gpu_blacklist. Я не могу найти в сети список устройств для gpu_blacklist, но есть способ узнать, находится ли ваше устройство в gpu_blacklist или нет. Откройте Chrome, введите chrome://gpu и посмотрите reset notification strategy field. Если это 0x8252, то ваше устройство поддерживает webgl, если это 0x0000, то ваше устройство находится в черном списке. Таким образом, когда android 5+ и ваше устройство не подключено к gpu_blacklist, вы можете использовать webgl с android webview.

Если вы хотите использовать Chrome вместо android webview даже на устройстве, подключенном к gpu_blacklist, вы должны использовать Chrome версии 37+. Чтобы проверить это, откройте Chrome, введите chrome://version. После этого откройте хром, введите chrome://flags на этой странице включите поля webgl и override software rendering list. При этом вы можете использовать webgl даже с устройствами, которые подключены к gpu_blacklist, или с устройствами, на которых установлена ​​операционная система ниже android 5.

Если ваше устройство не может удовлетворить вышеуказанные требования, например мое, вы можете использовать CrossWalk, оно работает. Однако документация плохо организована, и вы не сможете найти много информации, кроме ее собственной документации, на случай, если у вас возникнут проблемы с ней. Причина, по которой CrossWalk работает, заключается в том, что при создании файла apk вы можете отправлять аргументы командной строки, такие как --ignore-gru-blacklist. Однако, как указано в документации, если вы используете это на устройствах, подключенных к gpu_blacklist, ваше приложение или все устройство может зависнуть.


7

halil
18 Июн 2015 в 13:11

Понравилась статья? Поделить с друзьями:
  • Error connecting to ftp access denied 530
  • Error connecting to device st link v2 error 0x21
  • Error connecting to database zabbix postgresql ubuntu
  • Error connecting to database postgres zabbix
  • Error connecting to database please try again перевод