Issue 122864

Summary: Access violation in python.exe
Product: General Reporter: peterB <Peter.Binney>
Component: scriptingAssignee: jsc
Status: CLOSED FIXED QA Contact:
Severity: Major    
Priority: P3 CC: bluczyns, issues, jmg.dc9, jsc
Version: 4.0.0Keywords: regression
Target Milestone: 4.0.1Flags: jsc: 4.0.1_release_blocker+
Hardware: PC   
OS: Windows, all   
Issue Type: DEFECT Latest Confirmation in: 4.0.0
Developer Difficulty: ---
Attachments:
Description Flags
The unoconv.py from github none

Description peterB 2013-07-27 15:41:21 UTC
Any attempt to run "C:\Program Files (x86)\OpenOffice 4\program\python.exe" results in Segmentation violation

I have just upgraded from 3.4.1 and can no longer run various scripts that use the built-in python ;-(
Comment 1 Ariel Constenla-Haile 2013-07-27 18:03:04 UTC
@jsc: python.exe (main/pyuno/zipcore/python.cxx) wasn't adapted to the 3-layer removal.

Unhandled exception at 0x1b001b0c in python.exe: 0xC0000005: Access violation writing location 0x00130000.

 	python.exe!tools::buildPath()  + 0xde bytes	C++
>	python.exe!wmain(int argc=2089951896, wchar_t * * argv=0x0012fb08, wchar_t * * __formal=0x7c91e920)  Line 110 + 0x21 bytes	C++
 	0012f294()	
 	ntdll.dll!7c91d97a() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]	
 	gdi32.dll!77f1d8f3() 	
 	ntdll.dll!7c91cffa() 	
 	gdi32.dll!77f1d920() 	
 	gdi32.dll!77f1d92a()
Comment 2 Ariel Constenla-Haile 2013-07-30 14:55:27 UTC
*** Issue 122894 has been marked as a duplicate of this issue. ***
Comment 3 Oliver-Rainer Wittmann 2013-08-09 12:02:35 UTC
It seems that the corresponding path values in /pyuno/zipcore/python.cxx have not been adjusted to the no longer existing "3-layer office"
Comment 4 jsc 2013-08-21 09:04:03 UTC
propose showstopper flag because it makes internal python unusable
Comment 5 jsc 2013-08-21 14:27:11 UTC
does anybody have a script in place to test it?
Comment 6 peterB 2013-08-21 17:29:04 UTC
Created attachment 81372 [details]
The unoconv.py from github

I would do the following using the attached unoconv.py (which came from https://github.com/dagwieers/unoconv):

1. Create any-old.ods
2. "C:\Program Files (x86)\OpenOffice 4\program\python.exe" unoconv.py -f pdf -o any-old.pdf any-old.ods
Comment 7 jsc 2013-08-22 09:59:44 UTC
Fix available and it works on Windows. Will do a further test on Linux
Comment 8 jsc 2013-08-29 11:27:22 UTC
fixed on branch AOO401 rev. 1518593

tested on Windows and Linux, Mac uses the system python
Comment 9 SVN Robot 2013-08-29 11:29:03 UTC
"jsc" committed SVN revision 1518593 into branches/AOO401:
#122864# correct preapration of python env aligned with new dir structure
Comment 10 SVN Robot 2013-08-29 11:38:07 UTC
"jsc" committed SVN revision 1518604 into trunk:
#122864# merge fix from AOO401 branch
Comment 11 jsc 2013-08-30 09:12:56 UTC
set target milestone
Comment 12 Ariel Constenla-Haile 2013-09-18 23:26:20 UTC
*** Issue 123293 has been marked as a duplicate of this issue. ***