Bug 1363 - Pulseview crashes if a large .VCD file will be opened
Summary: Pulseview crashes if a large .VCD file will be opened
Status: RESOLVED DUPLICATE of bug 1624
Alias: None
Product: PulseView
Classification: Unclassified
Component: File handling (show other bugs)
Version: 0.5.0
Hardware: All Windows
: Normal major
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-08 20:15 CET by user
Modified: 2020-10-17 11:34 CEST (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description user 2019-03-08 20:15:45 CET
If I open a large .vcd file with Pulseview it crashes after less seconds during loading this file!

With following steps you can reproduce this problem:

1.) Create a .vcd file with sigrok-cli with this command:

sigrok-cli.exe --driver demo --time 600s --channels D0 --config samplerate=100000 --output-format vcd --output-file test.sr

2.) Open the created file with sigrok pulseview

--> The application crashes after less seconds during loading and closes himself

(I've tested it on 2 separate systems)
Comment 1 Gerhard Sittig 2019-03-08 20:31:19 CET
The .sr file extension is probably not what you want for the VCD output format.

See the generated file, and do the math.  The low timescale (1ns?) times the 
sample count result in rather large a memory consumption, which your hardware 
probably does not provide.

Yes there is other software which can handle this file.  The current sigrok 
implementation cannot (yet).  So find a VCD file creator which can pick a 
better (more suitable) timescale, or modify the file before loading.

There is experimental code in https://repo.or.cz/libsigrok/gsi.git/shortlog/refs/heads/wip/output-vcd-timescale which you may want to try, especially https://repo.or.cz/libsigrok/gsi.git/commitdiff/2fbae019d359eb6cc7a084510467a9ed671f6a32
Comment 2 user 2019-03-08 22:34:03 CET
thank you for your answer, i will check it the next days.

For your information: 
I use .vcd format, because i have the same problem like in this case "Bug 762" (https://sigrok.org/bugzilla/show_bug.cgi?id=762) when i use .sr format --> i get the message during sampling "Device only sent xxxx samples" and the recording stops. (the driver, which i use is: fx2lafw, and the Device: saleae logic analyzer but not the original device --> imitation)

I can't find another solution here, do you have any idea?

ty
Comment 3 Gerhard Sittig 2020-10-17 11:34:00 CEST

*** This bug has been marked as a duplicate of bug 1624 ***