Avatar of andyrosa
andyrosa
 asked on

bug in MS photo editor crashes when printing a jpg file

I got a 25KB JPG of a warship from a friend.

If I try to print it using Microsoft Photo Editor XP, it crashes.

I tried it on 4 PC's and it crashes on all 4. (Windows 2000 with Office 2000, 2000 with XP, XP with 2000, and XP with XP).  Tried 4 other JPG images and they print fine.

The separate machines print to different printer brands.

Photo editor locks up but not the machine.  I can CTRL ALT DEL and end task without Windows crashing.

I can use Photo Editor to save the image to a .BMP and then print it out fine from photo editor.

I can load the same JPG image into IE or import it into Word and it prints fine.

I applied office 2000 SP1 and SP2 patches and I still receive the same problem.

The attempt on PC4 was from a fresh install of photo editor from the office XP disc into Win2000.

All 2000 machines have SP1 and SP2 installed and have all current updates.

Please test your theory with the actual picture (http://www.digitalforces.com/ships11.jpg)

Your assistance would be greatly appreciated
Microsoft Office

Avatar of undefined
Last Comment
GUEEN

8/22/2022 - Mon
Steve Knight

Prints fine (on PostScript printer to file:) on W2K with Photo Editor 3.01 (from Off 97).

How about if you load into PSP etc. and save out as a JPG again.  Sounds like an illegal or corrupt JPEG file which maybe IE allows but other progs barf on.

See how others go with it...

Steve
GUEEN

It also locked my Photo Editor (XP with Office XP and fully patched.)  I opened it in PhotoShop and re-saved it as a jpg with a file size of 34.4 KB  - It now prints fine.
You can download it here to test: http://www.tekmasters.com/images/ships11.jpg
GUEEN

Sounds like dragon-it is 100% correct :)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
andyrosa

ASKER
shekerra and dragon-it:
thank your for your input.
as you know, I already have a work around (save as bmp using PhotoEditor). Saving it as a jpg does not seem to help.
You would imagine the if the file is OK enough to be displayed by Photo Editor, I could be printed...
At the same time, if it is corrupted, a message would be nice, not 99% CPU.
I sent this info to MS's bug report page a few weeks ago and no response, of course.
I am hoping for a fix (a registry setting, a patch, a switch) Any additional insights?
Steve Knight

I've been looking for a JPEG checker to see if it can see any "illegal bits" in a file.... but haven't found anything yet...

The fact that it works in earlier versions (ie. my Off 97 version) kinda suggests an introduced bug or an intolerance to  something that was fine before...

I'll have a dig later!

Steve
andyrosa

ASKER
dragon-it:
That's a great idea.
It is good to know it did not crash on 97 too.
How big is the exe?
It could be just one DLL.
I wonder which DLL's does it use.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
GUEEN

Why don't you repair your office installation and see if that helps?  Just go to help menu in word or excel and click on detect & repair.
Steve Knight

shekerra,

Would be fair enough except its happening on various machines ... including yours isn't it?!

Got nowhere finding any JPEG checkers.
Photo Editor on mine is:

C:\Program Files\Common Files\Microsoft Shared\PhotoEd\*.*
PHOTOED.EXE     all v3.01
1033\PEINTL.DLL
WATERCOL.DLL
TEXTURIZ.DLL
STAMP.DLL
STAINEDG.DLL
NOTEPAPE.DLL
GRAPHICP.DLL
EMBOSS.DLL
CHALKCHA.DLL
PHOTOED.HLP
PHOTOED.CNT (internationalised descriptions)
PHOTOED.SRG (registry entries)

so realistically it probably only needs PHOTOED.EXE and maybe PEINTL.DLL as the other DLL's are obviously the effects...  size of all of it is 1.8Mb.

Quite willing to ZIP up the directory to save you finding an Office 97 machine if you want to try it...

Steve
andyrosa

ASKER
dragon-it:
my photoed.exe is v 3.0.1.1 (c) 2000 5/3/2000
most likely office 2K.
can you post your exe?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Steve Knight

OK zipped directory is in

http://www.dragon-it.co.uk/ee/eefiles.htm

Let us know when you have it... not really on to leave copyrighted material around on my website for the spiders to find...

I suppose at least (if that works) it would prove it is the later versions of Photo Editor that doesn't like the JPEG for some reason and not anything else unrelated on those machines.  Not a lot else mind!

Steve
andyrosa

ASKER
dragon-it:
thank you.
tried it.
Froze!
Makes no sense. Maybe be dll related to printing?
I wonder if it will work for shekerra.
www.digitalforces.com/photoed.zip has mine.
does it work for you?
Steve Knight

Hmm, the above ZIP is the same files as I sent you... are they the ones off your machine?

Just tried the image on W2K (Sp2) and a freshly installed Office 2000 (no SP) on amachine that didn't have Office before and still OK.... version of Photo Editor is 3.01 6/3/1999

In that case it was printed to a HP laserjet 4 driver to FILE: since it isn't on the network... might be worth trying a basic print driver like that aswell?

Maybe it is the Office XP (or just later Of 2000 SP) version you have there?

Weird - not like it matters /that/ much either of course but it would be nice to know why, wouldn't it!

Steve
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
GUEEN

The download didn't do it.  I am frozen with the new application.  I will bet that I would be able to print this on our 8100 at work though.  I only have a DJ 855C here.
andyrosa

ASKER
shekerra:
Let me know.
dragon-it:
sorry. I now posted the 2000 version of PhotoEd.EXE www.digitalforces.com/photoed.zip
let me know.
Steve Knight

Fraid that works fine too here!

W2K(Sp3), Office 97 installed, your PhotoEd 3.1.1 and original file... IE5.5 in case that matters!

Steve
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
andyrosa

ASKER
must be a dll or registry setting.
Steve Knight

True. Can't find any related bugs mentioned with PE ... strange isn't it!
GUEEN

Ummm what printers are you all using?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
GUEEN

Let's all compare this registry key: HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\Microsoft Photo Editor
Maybe someone has something a little different?

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0]

[HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\Conversion]
"Smooth"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\Crop]
"Corner1"=dword:00000000
"Corner2"=dword:00000000
"Corner3"=dword:00000000
"Corner4"=dword:00000000
"SquareOrRound"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\File Options]
"JPEG Compression"=dword:0000005a
"Path"="C:\\Documents and Settings\\bev.TECH4USERVICES\\Desktop"
"MRUExportType"=dword:00000001
"MRUImportType"=dword:00000007

[HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\Microsoft Photo Editor]
"LastFile1"="C:\\Documents and Settings\\bev.TECH4USERVICES\\Local Settings\\Temporary Internet Files\\OLK13A\\image0013.jpg"
"LastType1"="jpg"
"InitialPosition"=" 34,  74,  1027,  733, "
"StatusBar"="1"
"RepaintBg"="1"
"ProgressRate"="200"
"BackColor"=" 0,  0,  0,  0,  0,  0, "
"Show"="1"
"MDIMAX"="1"
"LastFile2"="C:\\Documents and Settings\\bev.TECH4USERVICES\\Desktop\\ships11.jpg"
"LastType2"="jpg"
"Picture Type"=dword:00000003
"Picture Width"=dword:00000384
"Picture Height"=dword:000001f4
"Picture Dpi"=dword:00000064

[HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\Print]
"Orientation"=dword:00000000
"Print Quality"=dword:0000012c

[HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\Rotate]
"Angle"=dword:0000002d
"Origin"=dword:00000000
"Function"=dword:00000071

[HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\Tool Bar]
"Visible"=dword:00000006
"left"=dword:00000026
"top"=dword:00000075



Steve Knight

OK, don't think there is much there that it could be but here's mine:

For the record I have successfully printed using OKI 600ex (HP laserjte IIp), Laserjet 4, and Apple Laserwriter (PS) drivers (some to file:).  Can't get it to crash on Win98, Win2K using Off 97, and /or Off 2k.

Steve

Windows Registry Editor Version 5.00

[HKEY_USERS\S-1-5-21-527237240-764733703-854245398-1000\Software\Microsoft\Photo Editor\3.0]

[HKEY_USERS\S-1-5-21-527237240-764733703-854245398-1000\Software\Microsoft\Photo Editor\3.0\File Options]
"JPEG Compression"=dword:0000005a
"Path"="C:\\"
"MRUExportType"=dword:00000003
"MRUImportType"=dword:00000008

[HKEY_USERS\S-1-5-21-527237240-764733703-854245398-1000\Software\Microsoft\Photo Editor\3.0\Filter]
"SharpenStrength"=dword:00000005

[HKEY_USERS\S-1-5-21-527237240-764733703-854245398-1000\Software\Microsoft\Photo Editor\3.0\Microsoft Photo Editor]
"LastFile1"="C:\\ships11.jpg"
"LastType1"="jpg"
"InitialPosition"=" 271,  25,  580,  734, "
"StatusBar"="1"
"RepaintBg"="1"
"ProgressRate"="200"
"BackColor"=" 0,  0,  0,  0,  0,  0, "
"Show"="3"
"MDIMAX"="1"
"LastFile2"=""
"LastType2"=""
"LastFile3"=""
"LastType3"=""
"LastFile4"=""
"LastType4"=""

[HKEY_USERS\S-1-5-21-527237240-764733703-854245398-1000\Software\Microsoft\Photo Editor\3.0\Tool Bar]
"Visible"=dword:00000006
"left"=dword:00000000
"top"=dword:00000027

GUEEN

If I right-click and copy from http://www.digitalforces.com/ships11.jpg and open photoed and select edit | paste as new image.  There is no problem with printing...
If I do anything else - it eats up 99% of my CPU
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
GUEEN

I can also open ships11 in PE - select all | copy  | paste as new image - no problem...
Steve Knight

I'll try it from a new net. of W2K PC's put in on a client site when I go there Wednesday - that's W2K SP2, Office XP (no SP unless they have rolled it without me...) and see if I can make it crash... and if so what does it!

Steve
Steve Knight

I'll try it from a new net. of W2K PC's put in on a client site when I go there Wednesday - that's W2K SP2, Office XP (no SP unless they have rolled it without me...) and see if I can make it crash... and if so what does it!

Steve
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
GUEEN

This is on XP SP1 - all updates/Office XP all sp updates.
I am quite boggled.  It almost appears to behave like a memory leak for the initial 'normal way of printing.'  But when pasted as 'new image' it prints instantly...
Steve Knight

On customer site today.... just tried it on their W2K SP2, Office XP (no SP) Photo Editor.... V 3.0.2.3. Guess what, no crash :-)  I don't suppose you could email the file to the address in my profile in case the way I am downloading is "fixing" the file in some way -- Right click on Link -> Save As is what I've done..

Date & Time of photoed.exe i 15-12-2000, 790,528 bytes.  Will take a copy home in case you want to try it... but I am getting the feeling it is something else completely?

That was to a RICOH Aficio high-end copier/printer (as made here!) and a LexMark laser...

Steve
andyrosa

ASKER
I do think the save AS can make a difference.
I posted it now as www.digitalforces.com/ships11.zip
shekerra:
what method did you use to keep the file 'as pure as possible' (the one that crashes photoed)?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
GUEEN

I just did a right-click on the link provided (saved to desktop) - inserted and mailed.
andyrosa

ASKER
I do think the save AS can make a difference.
I posted it now as www.digitalforces.com/ships11.zip
shekerra:
what method did you use to keep the file 'as pure as possible' (the one that crashes photoed)?
andyrosa

ASKER
I do think the save AS can make a difference.
I posted it now as www.digitalforces.com/ships11.zip
shekerra:
what method did you use to keep the file 'as pure as possible' (the one that crashes photoed)?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Steve Knight

Hi guys,

The one emailed to me also /doesn't/ crash on my Office 97 here (from bev..., I presume it was you!)....  

Steve
GUEEN

Yes Steve it was me :)
Steve Knight

ZIP file... same lark.  No crash!!  Must be pritner driver related?  Did you have any look with generic drivers -> FILE:?

Steve
Your help has saved me hundreds of hours of internet surfing.
fblack61
andyrosa

ASKER
The problem is related to the printer.
When I click File/Print, it crashes.
I changed the default system printer from HP 1100 to Generic/Text.
It now allows me to open the print dialog, and to print (I printed to file to avoid the 300 pages with one heart on each of them)
However, it seems epidemic.  It also crashes with the following W2K standard drivers:
OKIDATA 310 MS on FILE:
HP LaserJet 4/4M PS (postcript) on FILE:
HP LaserJet 4L/4M PS (postcript) on FILE:

dragon-it:
Can you test with either of the above?
Steve Knight

Hi,

Haven't got OKIDATA 310MS available in my list but:

HP LJ 4/4M PS driver (standard W2K) : OK still
HP Laserjet 1100 (MS) driver: OK (we have this printer)

Only thing I did notice was the size shows up as 0.30 x 0.24cm in the print dialog box but it still works if I print this size or fit to page etc....

Getting a long way but at the same time absolutely nowhere...

Steve
PashasKY

andyrosa,
No comment has been added lately (146 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Accept andyrosa's answer http:#8028621 and Refund

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

PashasKY
EE Cleanup Volunteer
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Steve Knight

Well I would have suggested splitting between the two persons assisting with andyrosa's question ...
ASKER CERTIFIED SOLUTION
YensidMod

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
GUEEN

I agree with dragon-it but yensidmod determined otherwise :)