Bug 407 - Crash on opening a file
Summary: Crash on opening a file
Status: RESOLVED DUPLICATE of bug 405
Alias: None
Product: PulseView
Classification: Unclassified
Component: File handling (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-02 10:11 CEST by Joel Holdsworth
Modified: 2014-09-02 10:21 CEST (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Holdsworth 2014-09-02 10:11:46 CEST
Step to reproduce:

./pulseview /path/to/sigrok/session/file.sr
<CRASH!>

Expected cause:

The old input handling API has been deleted from libsigrok since before d4c937749a92ce6defa2f0095b34692181afe597.

PulseView's InputFile class was deleted in ab973f4729258b729d2aa84abfa14b61609fa35e, to regain compatibility.

Before this change PulseView would try to use the InputFile class to load the file, and if that failed it would fall-back onto using the SessionFile class. With no InputFile class now, the usage of SessionFile seems to be broken.

The InputFile class will be restored after the libsigrok C++ binding port is merged.
Comment 1 Joel Holdsworth 2014-09-02 10:21:06 CEST

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