Bug 733 - displays only the part of the loaded image raw binary file
Summary: displays only the part of the loaded image raw binary file
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: File handling (show other bugs)
Version: unreleased development snapshot
Hardware: x86 Windows
: Normal major
Target Milestone: PulseView 0.3.0
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-14 13:05 CET by Alexander
Modified: 2016-02-05 09:16 CET (History)
2 users (show)



Attachments
Raw binary file for example to see bag (49.17 KB, application/octet-stream)
2016-01-14 13:05 CET, Alexander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2016-01-14 13:05:07 CET
Created attachment 212 [details]
Raw binary file for example to see bag

System: Windows7 64bits 
PulseView version 0.3.0-git-39ccf9c

When loading raw binary type file that I created, it is displayed only partially. What if I open the binary file created by the PulseView, in most cases (but not always) the file opens correctly and fully.

I tried to load files of different lengths and bit width, the error persists. 
I also tried on several other computers, same result.

the file attached (32bits raw binary)

sincerely, Alexander Deev.
Comment 1 Soeren Apel 2016-01-14 21:58:46 CET
Well, what is your expectation? Do you expect the entire measurement to show? Not showing the entire measurement after loading the file is the current default behavior. It's expected the user uses the "zoom to fit" button afterwards.

Is this what you're referring to or are you actually expecting data that you're not seeing?
Comment 2 Alexander 2016-01-15 08:07:06 CET
to Soeren Apel:
How does the button "zoom" I know.

It's about the fact that I uploaded the file length, for example, 1 kilobyte, and it appears as if it is a file with a length of 26 bytes. Ie PulseView ignores most of the input data.

Thanks in advance, Alexander Deev.
Comment 3 Soeren Apel 2016-01-31 15:12:09 CET
This is a Windows-only issue, it works flawlessly on linux. The issue here is that files opening via the import menu are opened in the default mode of the OS, being text mode on Windows. This cuts off all files at the 0x1A EOF marker.

Fix is here: https://github.com/abraxa/pulseview/commit/c8e50b6efe18ff5ede06f0321d27d572dc3a6bc5

Obviously this bug prevented any of the import modules to work properly, so this explains why the trace32_ad module crapped out on Windows. This should also be fixed now, will verify once a nightly is available.
Comment 4 Uwe Hermann 2016-01-31 17:35:40 CET
Fixed in c8e50b6efe18ff5ede06f0321d27d572dc3a6bc5, thanks!
Comment 5 Alexander 2016-02-05 09:16:26 CET
yay!!! working!! 
Soeren Apel, thank you very much.