cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

pvz import error Program exit code 0 solution

SOLVED
Highlighted
Alexandrite

pvz import error Program exit code 0 solution

Hi everybody, 

 

I sometimes uploading an pvz doesn't work. CAD-Optimizer goes through till low level, then runs endless. In the error log you can see the error "debug: [twx-studio:cad-import-filters] Program exit code 0".

There is a workaround:

Go to  C:\Users\***\AppData\Local\Temp\

Here yo find a folder named Studio-optimize... with some digits behind

Go into that folder, copy the file with the wanted resultion and paste it into your project path, 

C:\Users\***\Documents\VuforiaStudio\Projects\***\src\phone\resources\Uploaded

Please replace the *** with your username and project name.

 

That's it. Hopefully ptc will fix this issue. 

 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: pvz import error Program exit code 0 solution

So, PTC helped to find the issue. Seems like the browser kills the cad-optimizer if it runs too long. Only help till now is to run the optimizer via command prompt. To make working with it a bit easier, we wrote a bat file. Here is how it works:

 

1. Make folder on Desktop

2. Crate file with ending .bat (e.g. create textfile and rename ending from .txt to .bat

3. open file with editor and paste code from down below

4. Place desired pvz-file in folder

5. start CAD-optimizer.bat

6. go through steps note: If you want to place it in annother directory click right on bat and open with editor. Change part "C:\Users\%name%\Desktop\pvz_tool" to the desired directory

 

@echo off color 4a echo pvz optimizer starter tool set name="" set /p name=please enter your windows-username (needed to find directory): set input="" set /p input=type in the file name without data ending: set outputname="" set /p outputname=type in the desired output file name: set aufloesung="" set /p aufloesung=type in resolution (low/med/high): "C:\Users\%name%\Documents\VuforiaStudio\Projects\node_modules\cad-import-filters\import_filters\bin\pvsoptimize" -r "C:\Users\%name%\Documents\VuforiaStudio\Projects\node_modules\cad-import-filters\import_filters\recipe\pvsoptimize_%aufloesung%_vuforia.rcp" -p "C:\Users\%name%\Desktop\pvz_tool" -o "%outputname%" "C:\Users\%name%\Desktop\pvz_tool\%input%.pvz" pause

 

This of course is only a workaround if the file size can't be reduced in any other way.

Cheers

Whity

View solution in original post

2 REPLIES 2
Highlighted

Re: pvz import error Program exit code 0 solution

Hello @whity ,

I do not think that this could be answered in generally without the model.
Currently there is only one issue known (reported in 8.4.5 and in the means team it should be already fixed and will be provided with the next releases / pvaroptimizer Fatal: Received signal 11, terminating/ but it seems not to be the same as your problem.
May be, you can check more detailed the model where the problem occurs / e.g. you can open it in Creo View and edit the structure /advance/ and remove components to see if this could change the behavior/
Another question is the problem based on an assembly or is in this case based on component
What is specific on this model /texture or some geometry interference or geometry errors…
You can try to remove a specific component or replace it…
Other thing is to check if the issue occurs with the original format / for example on the model exported directly from Creo Parametric or the issue occurs after it was published by Creo Illustrate.
So, when you have an issue which is always reproducible with a specific model, maybe you can share the model with PTC so we can report it with the development team

Re: pvz import error Program exit code 0 solution

So, PTC helped to find the issue. Seems like the browser kills the cad-optimizer if it runs too long. Only help till now is to run the optimizer via command prompt. To make working with it a bit easier, we wrote a bat file. Here is how it works:

 

1. Make folder on Desktop

2. Crate file with ending .bat (e.g. create textfile and rename ending from .txt to .bat

3. open file with editor and paste code from down below

4. Place desired pvz-file in folder

5. start CAD-optimizer.bat

6. go through steps note: If you want to place it in annother directory click right on bat and open with editor. Change part "C:\Users\%name%\Desktop\pvz_tool" to the desired directory

 

@echo off color 4a echo pvz optimizer starter tool set name="" set /p name=please enter your windows-username (needed to find directory): set input="" set /p input=type in the file name without data ending: set outputname="" set /p outputname=type in the desired output file name: set aufloesung="" set /p aufloesung=type in resolution (low/med/high): "C:\Users\%name%\Documents\VuforiaStudio\Projects\node_modules\cad-import-filters\import_filters\bin\pvsoptimize" -r "C:\Users\%name%\Documents\VuforiaStudio\Projects\node_modules\cad-import-filters\import_filters\recipe\pvsoptimize_%aufloesung%_vuforia.rcp" -p "C:\Users\%name%\Desktop\pvz_tool" -o "%outputname%" "C:\Users\%name%\Desktop\pvz_tool\%input%.pvz" pause

 

This of course is only a workaround if the file size can't be reduced in any other way.

Cheers

Whity

View solution in original post

Announcements
Join an
AR Working Group!

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection