FAQ: Difference between revisions

Jump to navigation Jump to search
15 bytes removed ,  30 June 2022
m
adjusted list level for gdb
(→‎MS Windows: added gdb notes for windows troublshooting.)
m (adjusted list level for gdb)
Line 107: Line 107:
** '''Solution 3:''' Did you install Octave on a network-drive?  Do you have the execution permissions?
** '''Solution 3:''' Did you install Octave on a network-drive?  Do you have the execution permissions?
** '''Solution 4:''' Is your computer managed by your company?  Does your administrator prohibit script execution?
** '''Solution 4:''' Is your computer managed by your company?  Does your administrator prohibit script execution?
* '''Collecting gdb backtrace information''' The following instructions can help you gather troubleshooting information that may help developers identify the problem if the above steps are ineffective:
===Collecting gdb backtrace information===
** if Octave is 'hanging' (the process is remaining open):
The following instructions can help you gather troubleshooting information that may help developers identify the problem if the above steps are ineffective:
**# attempt to start the Octave GUI  
* if Octave is 'hanging' (the process is remaining open):
**# with the program stalled (either at the GUI, or with the black terminal window), open the Task Manager (right click on taskbar, select Task manager), switch to the "Details" tab, find `octave-gui.exe` on that list, ad take note of the corresponding PID (process ID)
*# attempt to start the Octave GUI  
**# Open the folder where Octave is installed. You should find a file called `cmdshell.bat` in the main folder. Run that file, which should open a MSYS2 bash (command line) window.
*# with the program stalled (either at the GUI, or with the black terminal window), open the Task Manager (right click on taskbar, select Task manager), switch to the "Details" tab, find `octave-gui.exe` on that list, ad take note of the corresponding PID (process ID)
**# At that prompt, run `gdb -p <em>PID</em>` where <em>PID</em> is the process ID noted previously.
*# Open the folder where Octave is installed. You should find a file called `cmdshell.bat` in the main folder. Run that file, which should open a MSYS2 bash (command line) window.
**# at the gdb prompt, execute `thread apply all bt`.  (If this returns a list longer than one page you may need to 'continue' by typing `c`.)
*# At that prompt, run `gdb -p <em>PID</em>` where <em>PID</em> is the process ID noted previously.
**# copy and paste that output into a text file and append it to your trouble report at octave.discourse.group or bug report at bugs.octave.org.
*# at the gdb prompt, execute `thread apply all bt`.  (If this returns a list longer than one page you may need to 'continue' by typing `c`.)
*# copy and paste that output into a text file and append it to your trouble report at octave.discourse.group or bug report at bugs.octave.org.


** if Octave is immediately crashing and closing:
* if Octave is immediately crashing and closing:
**# Open the folder where Octave is installed. You should find a file called `cmdshell.bat` in the main folder. Run that file, which should open a MSYS2 bash (command line) window.
*# Open the folder where Octave is installed. You should find a file called `cmdshell.bat` in the main folder. Run that file, which should open a MSYS2 bash (command line) window.
**# At that prompt, run `gdb octave`. (that will start gdb attached to the octave executable.)
*# At that prompt, run `gdb octave`. (that will start gdb attached to the octave executable.)
**# At the gdb prompt, execute `r --gui`.  That should attempt to start the Octave in GUI mode.  The gdb prompt should stay unresponsive as long as octave is running.
*# At the gdb prompt, execute `r --gui`.  That should attempt to start the Octave in GUI mode.  The gdb prompt should stay unresponsive as long as octave is running.
**# If octave crashes, the gdb prompt should become responsive again. execute `thread apply all bt`.  (If this returns a list longer than one page you may need to 'continue' by typing `c`.)
*# If octave crashes, the gdb prompt should become responsive again. execute `thread apply all bt`.  (If this returns a list longer than one page you may need to 'continue' by typing `c`.)
**# copy and paste that output into a text file and append it to your trouble report at octave.discourse.group or bug report at bugs.octave.org.
*# copy and paste that output into a text file and append it to your trouble report at octave.discourse.group or bug report at bugs.octave.org.


==I do not see any output of my script until it has finished?==
==I do not see any output of my script until it has finished?==
150

edits

Navigation menu