Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

take to long to create rarity #12

Open
2 tasks done
sadun619 opened this issue Jul 18, 2022 · 14 comments
Open
2 tasks done

take to long to create rarity #12

sadun619 opened this issue Jul 18, 2022 · 14 comments
Labels
bug Something isn't working

Comments

@sadun619
Copy link

Checklist

Description

if have many conditions (multiple different layerConfigurations) , it take too many time to create rarity, in my layer configuration have 143 configurations. and i'm waiting from 6 hours. but still not create rarity or not showing any error.

Steps to reproduce

No response

Expected result

No response

Actual result

No response

Environment

OS Version (uname -a on unix, systeminfo on windows):
Node.js version (node -v):

@sadun619 sadun619 added the bug Something isn't working label Jul 18, 2022
@bolshoytoster
Copy link
Owner

@sadun619 it's probably either stuck in a loop or you have a big collection.

Could you add console.log(1) on line 18, console.log(2) on line 43 and console.log(3) on line 60; then try to do rarity again and paste the output here please.

@sadun619
Copy link
Author

@sadun619 it's probably either stuck in a loop or you have a big collection.

Could you add console.log(1) on line 18, console.log(2) on line 43 and console.log(3) on line 60; then try to do rarity again and paste the output here please.

collection are 4489. but too may configurations, layers and traits have, (113 layer configuration, 65 layers, 876 traits)

i tried adding console.log, still take too may time time and no any respond.

PS D:\Project\NFT_project\09-15-07-2022 4489\hashlips_art_engine-main> node utils/rarity.js
1

(process:13652): GLib-GIO-WARNING **: 22:29:13.560: Unexpectedly, UWP app Microsoft.ZuneMusic_10.20122.11121.0_x64__8wekyb3d8bbwe' (AUMId Microsoft.ZuneMusic_8wekyb3d8bbwe!Microsoft.ZuneMusic') supports 20 extensions but has no verbs

@bolshoytoster
Copy link
Owner

@sadun619 what if you add console.log('config') on line 21, console.log('layer') after line 22 and console.log('element') after line 27.

@sadun619
Copy link
Author

console.log('element')

try with previous added console.log + new console.log and just new console.log both not working and both showing just word "element" and "layer" like as bellow .

PS D:\Project\NFT_project\09-15-07-2022 4489\hashlips_art_engine-main> node utils/rarity.js
config
layer

(process:5360): GLib-GIO-WARNING **: 22:59:38.499: Unexpectedly, UWP app Microsoft.ZuneMusic_10.20122.11121.0_x64__8wekyb3d8bbwe' (AUMId Microsoft.ZuneMusic_8wekyb3d8bbwe!Microsoft.ZuneMusic') supports 20 extensions but has no verbs
element
element
element
element
element
element
element
element
element
element
element
element
element
element
element
element
layer

@bolshoytoster
Copy link
Owner

@sadun619

try with previous added console.log + new console.log and just new console.log both not working and both showing just word "element" and "layer" like as bellow .

It's not meant to make it work; I'm just trying to figure out what's wrong.

Does it continue outputting or does it stop after that layer?

@sadun619
Copy link
Author

stop after layer

@sadun619
Copy link
Author

@sadun619

try with previous added console.log + new console.log and just new console.log both not working and both showing just word "element" and "layer" like as bellow .

It's not meant to make it work; I'm just trying to figure out what's wrong.

Does it continue outputting or does it stop after that layer?

stop after layer. but i cant run another command on that terminal. at least cannot type. it stuck.

@bolshoytoster
Copy link
Owner

@sadun619

i cant run another command on that terminal.

If you use CTRL + C you can interrupt the running command.


it looks like getElements is being really slow, it might have something to do with the warning you got.

This comment suggests running Get-AppXPackage Microsoft.ZuneVideo -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} to get rid of it.

It may also be caused if you still have the command running in different terminals.

@sadun619
Copy link
Author

Get-AppXPackage Microsoft.ZuneVideo -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

tried, warning still showing.

no. run only one terminal.

@bolshoytoster
Copy link
Owner

@sadun619 could you try rebooting?

@sadun619
Copy link
Author

@sadun619 could you try rebooting?

yes. it's not working and warning still showing.

@bolshoytoster
Copy link
Owner

@sadun619 in src/main.js could you add console.log(1) after line 103 and console.log(2) after line 113?

@sadun619
Copy link
Author

after modified main.js

Node.js v17.4.0
PS D:\Project\NFT_project\09-15-07-2022 4489\hashlips_art_engine-main> node utils/rarity.js
1
config
layer
1
2
D:\Project\NFT_project\09-15-07-2022 4489\hashlips_art_engine-main\src\main.js:115
.forEach((i, index) => {
^

TypeError: Cannot read properties of undefined (reading 'forEach')
at getElements (D:\Project\NFT_project\09-15-07-2022 4489\hashlips_art_engine-main\src\main.js:115:5)
at D:\Project\NFT_project\09-15-07-2022 4489\hashlips_art_engine-main\utils\rarity.js:26:20
at Array.forEach ()
at D:\Project\NFT_project\09-15-07-2022 4489\hashlips_art_engine-main\utils\rarity.js:21:10
at Array.forEach ()
at Object. (D:\Project\NFT_project\09-15-07-2022 4489\hashlips_art_engine-main\utils\rarity.js:19:21)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)

@bolshoytoster
Copy link
Owner

@sadun619 could you paste lines 112-117 of your src/main.js please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants