View Issue Details

IDProjectCategoryView StatusLast Update
0000558ascendpygtk guipublic2013-02-26 13:39
Reporterjohn 
Assigned Tosreenatha 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.04 LTS
Product Version0.9.8 
Target Version0.9.9Fixed in Version0.9.9 
Summary0000558: commandline use 'pygtk/asdev /tmp' causes crash from parser
DescriptionASCEND needs to check that an ordinary file is being requested, and not pass a directory name to the parser, since it currently causes a crash.

Otherwise, the return of error messages from the parser needs to be checked.
Steps To Reproducejohn@novo:~/ascend-branches/sreenatha$ pygtk/ascdev models/johnpye/
Additional InformationPYTHON: SETTING UP SOLVER HOOKS
PYTHON SOLVER HOOKS
ascend/compiler/module.c:1008 (ModuleSearchPath): File 'models/johnpye/' opened directly, without path search
Note: Module (null)<0>: Module for 'models/johnpye/' created OK.
ascxx/library.cpp:117 (load): Beginning parse of (null)<0>
input in flex scanner failed
john@novo:~/ascend-branches/sreenatha$
TagsNo tags attached.

Relationships

Activities

john

2012-08-09 09:21

administrator   ~0000891

This looks like it's working, but is there any way to stop ASCEND from attempting to load the GUI before checking whether or not the file exists?

sreenatha

2012-08-17 02:59

developer   ~0000908

Last edited: 2012-08-17 03:02

View 2 revisions

It is possible to stop the modules/GUI (that are responsible for option parsing) from loading in the specific case of a single incorrect command line argument. However, if we generalize it to the case of any number of arguments, no option parsing would be done. Without option parsing, we can't be sure whether the given path is an incorrect file address or a correct assets-directory address.

john

2013-02-26 13:24

administrator   ~0000951

Fixed in changeset 4441

Issue History

Date Modified Username Field Change
2012-07-01 05:56 john New Issue
2012-08-06 09:12 john Assigned To => sreenatha
2012-08-06 09:12 john Status new => assigned
2012-08-07 05:57 svn
2012-08-07 15:11 svn
2012-08-07 15:13 sreenatha File Added: patch
2012-08-09 05:20 sreenatha File Deleted: patch
2012-08-09 05:49 svn
2012-08-09 09:21 john Note Added: 0000891
2012-08-17 02:11 svn
2012-08-17 02:59 sreenatha Note Added: 0000908
2012-08-17 03:02 sreenatha Note Edited: 0000908 View Revisions
2013-02-26 13:24 john Note Added: 0000951
2013-02-26 13:24 john Status assigned => resolved
2013-02-26 13:24 john Resolution open => fixed
2013-02-26 13:26 john Fixed in Version => 0.9.9
2013-02-26 13:39 john Target Version 1.0 => 0.9.9