this.isRTL is not a function error when using paper-dropdown-menu webcomponent - polymer

Getting this error when loading up the paper-dropdown-menu webcomponent.
Uncaught TypeError: this._isRTL is not a function
Longer stacktrace for SEO:
Uncaught TypeError: this._isRTL is not a
function get _localeHorizontalAlign #
iron-dropdown.html:306_updateOverlayPosition #
iron-dropdown.html:461_positionTargetChanged #
iron-dropdown.html:405_observerEffect #
polymer.html:1562_effectEffects # polymer.html:1405_propertySetter #
polymer.html:1389setter # polymer.html:1468attached #
iron-fit-behavior.html:222_invokeBehavior #
polymer-micro.html:433_doBehavior # polymer-micro.html:426(anonymous
function) # polymer-micro.html:210_makeReady #
polymer-micro.html:111(anonymous function) # polymer-micro.html:117
polymer-mini.html:2046 Uncaught TypeError: Cannot read property
'getWidth' of undefined(anonymous function) #
app-drawer-layout.html:189complete #
polymer-mini.html:2085Debouncer.boundComplete #
polymer-mini.html:2062_atEndOfMicrotask #
polymer-mini.html:2040window.MutationObserver.observe.characterData #
polymer-mini.html:2055

Apparently Polymer 1.5 is not compatible with paper-dropdown-menu version ~1.2.1. I had to downgrade to Polymer 1.4 to use the paper-dropdown-menu.
Edit:
The problem was the this component is not compatible with the Shadow DOM.

Related

how should I import aws-sdk?

I tried to import aws-sdk/client-personalize-import but it didnt work.
it showed error described below.
Should i import another modules or something?
or anybody has idea if it is built on vue.js?
ERROR Failed to compile with 15 errors friendly-errors 15:24:07
ERROR in ./node_modules/#aws-sdk/client-personalize-runtime/node_modules/#aws-sdk/config-resolver/dist-es/index.js friendly-errors 15:24:07
Module build failed: Error: ENOENT: no such file or directory, open 'C:\Users\sara.yamashita\project\ec-front\node_modules\#aws-sdk\client-personalize-runtime\node_modules\#aws-sdk\config-resolver\dist-es\index.js'
friendly-errors 15:24:07
# ./node_modules/#aws-sdk/client-personalize-runtime/dist-es/PersonalizeRuntimeClient.js 1:0-63 17:26-45
# ./node_modules/#aws-sdk/client-personalize-runtime/dist-es/index.js
# ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/string-replace-loader??ref--12!./pages/item/_code/index.vue?vue&type=script&lang=js&
# ./pages/item/_code/index.vue?vue&type=script&lang=js&
# ./pages/item/_code/index.vue
# ./.nuxt/router.js
# ./.nuxt/index.js
# ./.nuxt/client.js
# multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
friendly-errors 15:24:07
ERROR in ./node_modules/#aws-sdk/client-personalize-runtime/node_modules/#aws-sdk/middleware-content-length/dist-es/index.js friendly-errors 15:24:07
Module build failed: Error: ENOENT: no such file or directory, open 'C:\Users\sara.yamashita\project\ec-front\node_modules\#aws-sdk\client-personalize-runtime\node_modules\#aws-sdk\middleware-content-length\dist-es\index.js'
friendly-errors 15:24:07
# ./node_modules/#aws-sdk/client-personalize-runtime/dist-es/PersonalizeRuntimeClient.js 2:0-76 26:33-55
# ./node_modules/#aws-sdk/client-personalize-runtime/dist-es/index.js
# ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/string-replace-loader??ref--12!./pages/item/_code/index.vue?vue&type=script&lang=js&
# ./pages/item/_code/index.vue?vue&type=script&lang=js&
# ./pages/item/_code/index.vue
# ./.nuxt/router.js
# ./.nuxt/index.js
# ./.nuxt/client.js
# multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
friendly-errors 15:24:07

COLMAP running error in remote server while running Non-Rigid NeRF

I was checking the github code of LLFF : https://github.com/Fyusion/LLFF, Non-Rigid NeRF : https://github.com/facebookresearch/nonrigid_nerf and followed the suggested steps to install requirements. While running a preprocess file which return poses from images by SfM using COLMAP. I was getting the following error while executing the preprocessing in a remote server. Can anyone please help me with solving this?
python preprocess.py --input data/example_sequence1/
Need to run COLMAP
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, webgl, xcb.
*** Aborted at 1660905461 (unix time) try "date -d #1660905461" if you are using GNU date ***
PC: # 0x0 (unknown)
*** SIGABRT (#0x3e900138a9f) received by PID 1280671 (TID 0x7f5740d49000) from PID 1280671; stack trace: ***
# 0x7f57463a2197 google::(anonymous namespace)::FailureSignalHandler()
# 0x7f574421f420 (unknown)
# 0x7f5743bf300b gsignal
# 0x7f5743bd2859 abort
# 0x7f57442be35b QMessageLogger::fatal()
# 0x7f574477c799 QGuiApplicationPrivate::createPlatformIntegration()
# 0x7f574477cb6f QGuiApplicationPrivate::createEventDispatcher()
# 0x7f57443dbb62 QCoreApplicationPrivate::init()
# 0x7f574477d1e1 QGuiApplicationPrivate::init()
# 0x7f5744c03bc5 QApplicationPrivate::init()
# 0x562bbb634975 colmap::RunFeatureExtractor()
# 0x562bbb61d1a0 main
# 0x7f5743bd4083 __libc_start_main
# 0x562bbb620e39 (unknown)
Traceback (most recent call last):
File "imgs2poses.py", line 18, in <module>
gen_poses(args.scenedir, args.match_type)
File "/data1/user_data/ashish/NeRF/LLFF/llff/poses/pose_utils.py", line 268, in gen_poses
run_colmap(basedir, match_type)
File "/data1/user_data/ashish/NeRF/LLFF/llff/poses/colmap_wrapper.py", line 35, in run_colmap
feat_output = ( subprocess.check_output(feature_extractor_args, universal_newlines=True) )
File "/home/ashish/anaconda3/envs/nrnerf/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/home/ashish/anaconda3/envs/nrnerf/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['colmap', 'feature_extractor', '--database_path', 'scenedir/database.db', '--image_path', 'scenedir/images', '--ImageReader.single_camera', '1']' died with <Signals.SIGABRT: 6>.
'''

How to play a local video in Vue-plyr?

I can get vue-plyr to work with a youtube video like so:
<template>
<section id="vision" class="vision">
<vue-plyr>
<div data-plyr-provider="youtube" data-plyr-embed-id="bTqVqk7FSmY"></div>
</vue-plyr>
</section>
</template>
but when I try to use a local video like described in the doc:
<template>
<section id="vision" class="vision">
<vue-plyr :options="options">
<video
controls
crossorigin
playsinline
>
<source
size="1080"
src="../../videos/cgi_neutral.mp4"
type="video/mp4"
/>
</video>
</vue-plyr>
</section>
</template>
I get an error:
Uncaught Error: Module parse failed: Unexpected character ' ' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
at Object../resources/videos/cgi_neutral.mp4 (app.js:92053)
at __webpack_require__ (app.js:92132)
at Module../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/vue/sections/vision.vue?vue&type=template&id=0c8fcfd8&scoped=true (app.js:39037)
at __webpack_require__ (app.js:92132)
at Module../resources/vue/sections/vision.vue?vue&type=template&id=0c8fcfd8&scoped=true (app.js:87992)
at __webpack_require__ (app.js:92132)
at Module../resources/vue/sections/vision.vue (app.js:87291)
at __webpack_require__ (app.js:92132)
at Module../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/vue/index.vue?vue&type=script&setup=true&lang=js (app.js:36141)
at __webpack_require__ (app.js:92132)
./resources/videos/cgi_neutral.mp4 # app.js:92053
__webpack_require__ # app.js:92132
./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/vue/sections/vision.vue?vue&type=template&id=0c8fcfd8&scoped=true # app.js:39037
__webpack_require__ # app.js:92132
./resources/vue/sections/vision.vue?vue&type=template&id=0c8fcfd8&scoped=true # app.js:87992
__webpack_require__ # app.js:92132
./resources/vue/sections/vision.vue # app.js:87291
__webpack_require__ # app.js:92132
./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/vue/index.vue?vue&type=script&setup=true&lang=js # app.js:36141
__webpack_require__ # app.js:92132
./resources/vue/index.vue?vue&type=script&setup=true&lang=js # app.js:87384
__webpack_require__ # app.js:92132
./resources/vue/index.vue # app.js:86765
__webpack_require__ # app.js:92132
./resources/js/router.js # app.js:39210
__webpack_require__ # app.js:92132
./resources/js/app.js # app.js:39103
__webpack_require__ # app.js:92132
(anonymous) # app.js:92297
__webpack_require__.O # app.js:92169
(anonymous) # app.js:92299
(anonymous) # app.js:92301
This git issue says to install scss-loader but I already have it:
"sass-loader": "^12.2.0"
What am I doing wrong?
Can you put file mp4 in public folder ? And it can be acccessed via browser with url like
localhost:8000/videos/cgi_neutral.mp4 ,
then embed in component :
<source
size="1080"
src="/videos/cgi_neutral.mp4"
type="video/mp4"
/>
It is better than use loader with webpack + file-loader

openpose issue when running the example: check failed: error == cudaSuccess (2 vs. 0) out of memory, result in core dumped

Does anyone encounter this issue when using the openpose 1.7 under ubuntu 20.04?
I cannot run the example provided. It will simply core dumped. CUDA version 11.3, Nvidia driver version 465.19.01, GPU geforce rtx 3070.
dys#dys:~/Desktop/openpose$ ./build/examples/openpose/openpose.bin --video examples/media/video.avi
Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
F0610 18:34:51.300406 28248 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0) out of memory
*** Check failure stack trace: ***
# 0x7f63e2bc51c3 google::LogMessage::Fail()
# 0x7f63e2bca25b google::LogMessage::SendToLog()
# 0x7f63e2bc4ebf google::LogMessage::Flush()
# 0x7f63e2bc56ef google::LogMessageFatal::~LogMessageFatal()
# 0x7f63e28ffe2a caffe::SyncedMemory::mutable_gpu_data()
# 0x7f63e27796a6 caffe::Blob<>::mutable_gpu_data()
# 0x7f63e293a9ee caffe::CuDNNConvolutionLayer<>::Forward_gpu()
# 0x7f63e28bfb62 caffe::Net<>::ForwardFromTo()
# 0x7f63e327a25e op::NetCaffe::forwardPass()
# 0x7f63e32971ea op::PoseExtractorCaffe::forwardPass()
# 0x7f63e329228b op::PoseExtractor::forwardPass()
# 0x7f63e328fd80 op::WPoseExtractor<>::work()
# 0x7f63e32c0c7f op::Worker<>::checkAndWork()
# 0x7f63e32c0e0b op::SubThread<>::workTWorkers()
# 0x7f63e32ce8ed op::SubThreadQueueInOut<>::work()
# 0x7f63e32c5981 op::Thread<>::threadFunction()
# 0x7f63e2f04d84 (unknown)
# 0x7f63e2c07609 start_thread
# 0x7f63e2d43293 clone
Aborted (core dumped)

autodesk forge viewer.js update from 6.5.1 to 6.6 or 7.1, 2d hyperlink promise exception

change view from 3d to 2d view.
In 6.5.1
viewer.load(document.getViewablePath(Views2D));
no exception
In 6.6
viewer.load(document.getViewablePath(Views2D));
//promise exception in chrome console
In 7.1
viewer.loadModel(document.getViewablePath(Views2D), {});
//promise exception in chrome console
Uncaught (in promise)
{instanceTree: null, maxTreeDepth: 0, err: undefined}
Promise.then (async)
loadHyperlinks # HyperlinkTool.js:323
activate # HyperlinkTool.js:123
activateTool # ToolController.js:265
f.load # Hyperlink.js:42
loadExtensionLocal # ExtensionManager.js:270
loadExtension # ExtensionManager.js:213
(anonymous) # ExtensionManager.js:312
o.onload # globals.js:183
load (async)
u # globals.js:185
(anonymous) # ExtensionManager.js:310
loadExtensionAsync # ExtensionManager.js:309
loadExtension # ExtensionManager.js:205
(anonymous) # GuiViewer3D.js:412
setTimeout (async)
D.createUI # GuiViewer3D.js:406
(anonymous) # GuiViewer3D.js:300
(anonymous) # GuiViewer3D.js:288
setTimeout (async)
(anonymous) # GuiViewer3D.js:316
(anonymous) # Viewer3D.js:1228
(anonymous) # F2DLoader.js:420
Engineering is still taking time to address this issue.
While we wait for their fix we can work around this issue by disabling the hyperlink extension in our load options:
new Autodesk.Viewing.Private.GuiViewer3D(...),{disabledExtensions:{hyperlink:true}}