haochengxia / vscode-numpy-viewer

Display (binary) .npy or .npz files in VSCode.
https://marketplace.visualstudio.com/items?itemName=Percy.vscode-numpy-viewer
MIT License
16 stars 2 forks source link

The editor not be opened due to an unexpected error: Assertion Failed: argument is underfined or null #12

Open raghav2712 opened 1 year ago

raghav2712 commented 1 year ago

Type: Bug Wanted to open .npy file. The editor not be opened due to an unexpected error: Assertion Failed: argument is underfined or nul.

Extension version: 0.1.7 VS Code version: Code 1.76.2 (ee2b180d582a7f601fa6ecfdad8d9fd269ab1884, 2023-03-14T17:57:21.103Z) OS version: Linux x64 5.14.0-1054-oem snap Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz (16 x 2500)| |GPU Status|2d_canvas: disabled_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: disabled_off
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: disabled_off
webgl2: disabled_off
webgpu: disabled_off| |Load (avg)|5, 4, 3| |Memory (System)|15.36GB (7.49GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch /home/von-karman/Documents/3D_Bous_codes/Vorticity_profile_Gaussian_vortex1/ICTS_QG_code/Final_code_NBS/frequency_wavenumber_spectrum/omega/filtering/Ro=0.1 --crash-reporter-id ca5fb3f2-f77c-42b6-b6e9-14b5360682b5| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 nodejswelcome1:30587005 2e4cg342:30602488 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 2i9eh265:30646982 pythonb192:30669360 defaultazurewalk:30687958 pythonms35:30701012 pythonfmttext:30710681 pythonclientmvcf:30708686 ```
haochengxia commented 1 year ago

Can you offer a .npy file to help me reproduce this problem? Many thanks.

raghav2712 commented 1 year ago

Rajendra Singh Rajput has sent you an email via Gmail confidential mode:

[image: Gmail logo]Re: [haochengxia/vscode-numpy-viewer] The editor not be opened due to an unexpected error: Assertion Failed: argument is underfined or null (Issue #12) https://confidential-mail.google.com/msg/AA2T6PaN1-Y1BkHXKs2iKn4ZMnSbunuvK3oHpe9IG9NlOeQwke2O4KNFV_lEutgUR4511STg5ha8RVTeqFQ7RSEl-YXPmfcOdT-W9ghM5eVWez7zSTszew2oiti1rNXvKOItoVnwLLZIYNNdeY9wHwzIPX7qwcg9lugVBhXeYbCXTQbzqUpQMs4TL39QFvi9vMlhhEH9xeHESKUgNA==

This message was sent on Apr 18, 2023 at 8:01:55 AM PDT You can open it by clicking the link below. This link will only work for @.***

View the email https://confidential-mail.google.com/msg/AA2T6PaN1-Y1BkHXKs2iKn4ZMnSbunuvK3oHpe9IG9NlOeQwke2O4KNFV_lEutgUR4511STg5ha8RVTeqFQ7RSEl-YXPmfcOdT-W9ghM5eVWez7zSTszew2oiti1rNXvKOItoVnwLLZIYNNdeY9wHwzIPX7qwcg9lugVBhXeYbCXTQbzqUpQMs4TL39QFvi9vMlhhEH9xeHESKUgNA==

Gmail confidential mode gives you more control over the messages you send. The sender may have chosen to set an expiration time, disable printing or forwarding, or track access to this message. Learn more https://support.google.com/mail/answer/7674059 Gmail: Email by Google Use is subject to the Google Privacy Policy https://myaccount.google.com/privacypolicy?hl=en Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA You have received this message because someone sent you an email via Gmail confidential mode. [image: Google logo]

raghav2712 commented 1 year ago

您的 Google 验证码是 251937

haochengxia commented 1 year ago

The problem is that the file is too large and includes more than 10 million elements (13729792). It is a performance issue of vs code itself. Therefore, I would recommend you try another extension vscode-pydata-viewer which is powered by a Python interpreter and display limited elements. image Hope it can be helpful, thanks.

michaelklachko commented 11 months ago

I have the same issue when trying to open a file containing an array with 22,000 elements.

haochengxia commented 11 months ago

I will check this issue as soon as possible. THX