New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 642924 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Unable to open RAW file( .CR2 , .ARW)

Project Member Reported by abod...@chromium.org, Aug 31 2016

Issue description

Google Chrome	54.0.2840.7 (Official Build) dev (64-bit)
Platform	8743.5.0 (Official Build) dev-channel samus


Please specify Cr-* of the system to which this bug/feature applies (add
the label below).

Steps To Reproduce:
Try to open attached file from the File.app

Expected Result:
Should open RAW files.
Its not reproduced M53(8530.76.0/53.0.2785.87)

Actual Result:
Error " The file couldn't be displayed" 
How frequently does this problem reproduce? (Always, sometimes, hard to
reproduce?)
100%
What is the impact to the user, and is there a workaround? If so, what is
it?

Please provide any additional information below. Attach a screen shot or
log if possible.


 
Screenshot 2016-08-31 at 2.48.25 PM.png
187 KB View Download
RAW_SONY_A100.ARW
8.7 MB Download
RAW_CANON_30D.CR2
7.3 MB Download
Cc: rookrishna@chromium.org dhadd...@chromium.org
Labels: M-54

Comment 3 by fukino@chromium.org, Aug 31 2016

Components: Platform>Apps>PhotoEditor
Labels: -Pri-2 Pri-1
Owner: fukino@chromium.org
Status: Started (was: Untriaged)
Cc: hirono@chromium.org
Labels: ReleaseBlock-Stable
Reproduced the issue. It looks like a blocker.
image_loader extension says:
PiexLoaderError: NaCL module load failed:
PnaclCoordinator: pexe load failed (pp_error=-2)
Given that it worked in M53, it seems this is a recent regression.
I'll bisect it.
Cc: thestig@chromium.org
After bisection, https://codereview.chromium.org/2138583002 turned out to be the first bad revision.

Lei, I'm not sure about what output_all_resource_defines="false" means, but setting output_all_resource_defines="true" in ui/chromeos/resources/ui_chromeos_resources.grd fixes this issue. (NaCL module load failure.)

Is output_all_resource_defines="true" a proper fix for this issue?
No, we should look into why it won't work with output_all_resource_defines="false". It is likely my CL just exposed another bug. See also  bug 634044 .

If it is reproducible with a ChromeOS on Linux build and you need help, please let me know and I can take a look.
Thanks! It'd be great if you can take a look at this issue.

This issue is reproducible with a Chrome OS on Linux with official build. i.e. with gn flag:
is_official_build = true
is_chrome_branded = true
Oops, "ui/chromeos/resources/ui_chromeos_resources.grd" in comment #7 was wrong.
It should be "ui/file_manager/file_manager_resources.grd".
Sure. Let me kick off a build and see how it goes. I have sample RAW files somewhere.
Yes, I can repro and flipping the bit in file_manager_resources.grd does make the problem go away.
I see IDR_IMAGE_LOADER_PIEX_LOADER_PNACL is missing, but not sure why yet.
Owner: thestig@chromium.org
Feels like a grit resource generation bug.  Bug 628086  is related.
Actually, grit is doing what it is told. The .grd file is wrong but it worked before because grit was generating all resources anyway. Now we tell grit to drop resources that are in <if> blocks that evaluate to false, and suddenly files go missing. Though there is no compile time failure because IDR_IMAGE_LOADER_PIEX_LOADER_PNACL is never directly referenced from C++.

https://codereview.chromium.org/2305583003
Owner: hirono@chromium.org
Assigning back to hirono, who has written https://codereview.chromium.org/2300283002/
Project Member

Comment 17 by bugdroid1@chromium.org, Sep 2 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/55e10010b0e3c851165f7b8af4465d05d525d729

commit 55e10010b0e3c851165f7b8af4465d05d525d729
Author: hirono <hirono@chromium.org>
Date: Fri Sep 02 21:59:32 2016

Refer internal PIEX library by using <include> tag in piex.pexe.txt.

We put PIEX internal library in ui/file_manager/internal directory. The
problem is we cannot access the resources in the directory by using
chrome-extension:// URL because it's not under extension directory.

Previously we prepared the dummy file of PIEX file in image_loader
extension, and assigns the same resource ID both to the dummy file and
internal library. It enabled the image loader extension to access
internal library via the URL of dummy file.

The CL removes the hack and adds <include> tag to the dummy file. The
contents of dummy file is replaced with the internal library by
<include> tag at the compile time.

BUG= 642924 
TEST=load raw file with official chrome

Review-Url: https://codereview.chromium.org/2300283002
Cr-Commit-Position: refs/heads/master@{#416358}

[modify] https://crrev.com/55e10010b0e3c851165f7b8af4465d05d525d729/ui/file_manager/file_manager_resources.grd
[modify] https://crrev.com/55e10010b0e3c851165f7b8af4465d05d525d729/ui/file_manager/image_loader/piex/piex.pexe.txt

Labels: Merge-Request-54
Status: Fixed (was: Started)

Comment 19 by dimu@chromium.org, Sep 5 2016

Labels: -Merge-Request-54 Merge-Approved-54 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M54 (branch: 2840)
Project Member

Comment 20 by bugdroid1@chromium.org, Sep 5 2016

Labels: -merge-approved-54 merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d0d8bece245e83fd7e9af27020f4f86f614cc391

commit d0d8bece245e83fd7e9af27020f4f86f614cc391
Author: Daichi Hirono <hirono@chromium.org>
Date: Mon Sep 05 03:27:44 2016

Refer internal PIEX library by using <include> tag in piex.pexe.txt.

We put PIEX internal library in ui/file_manager/internal directory. The
problem is we cannot access the resources in the directory by using
chrome-extension:// URL because it's not under extension directory.

Previously we prepared the dummy file of PIEX file in image_loader
extension, and assigns the same resource ID both to the dummy file and
internal library. It enabled the image loader extension to access
internal library via the URL of dummy file.

The CL removes the hack and adds <include> tag to the dummy file. The
contents of dummy file is replaced with the internal library by
<include> tag at the compile time.

BUG= 642924 
TEST=load raw file with official chrome

Review-Url: https://codereview.chromium.org/2300283002
Cr-Commit-Position: refs/heads/master@{#416358}
(cherry picked from commit 55e10010b0e3c851165f7b8af4465d05d525d729)

Review URL: https://codereview.chromium.org/2308323002 .

Cr-Commit-Position: refs/branch-heads/2840@{#148}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/d0d8bece245e83fd7e9af27020f4f86f614cc391/ui/file_manager/file_manager_resources.grd
[modify] https://crrev.com/d0d8bece245e83fd7e9af27020f4f86f614cc391/ui/file_manager/image_loader/piex/piex.pexe.txt

Status: Verified (was: Fixed)
Chrome OS 54.2840.33/8743.35.0
Project Member

Comment 22 by bugdroid1@chromium.org, Oct 27 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d0d8bece245e83fd7e9af27020f4f86f614cc391

commit d0d8bece245e83fd7e9af27020f4f86f614cc391
Author: Daichi Hirono <hirono@chromium.org>
Date: Mon Sep 05 03:27:44 2016

Refer internal PIEX library by using <include> tag in piex.pexe.txt.

We put PIEX internal library in ui/file_manager/internal directory. The
problem is we cannot access the resources in the directory by using
chrome-extension:// URL because it's not under extension directory.

Previously we prepared the dummy file of PIEX file in image_loader
extension, and assigns the same resource ID both to the dummy file and
internal library. It enabled the image loader extension to access
internal library via the URL of dummy file.

The CL removes the hack and adds <include> tag to the dummy file. The
contents of dummy file is replaced with the internal library by
<include> tag at the compile time.

BUG= 642924 
TEST=load raw file with official chrome

Review-Url: https://codereview.chromium.org/2300283002
Cr-Commit-Position: refs/heads/master@{#416358}
(cherry picked from commit 55e10010b0e3c851165f7b8af4465d05d525d729)

Review URL: https://codereview.chromium.org/2308323002 .

Cr-Commit-Position: refs/branch-heads/2840@{#148}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/d0d8bece245e83fd7e9af27020f4f86f614cc391/ui/file_manager/file_manager_resources.grd
[modify] https://crrev.com/d0d8bece245e83fd7e9af27020f4f86f614cc391/ui/file_manager/image_loader/piex/piex.pexe.txt

Sign in to add a comment