This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Difference between running in kdevelop and from a terminal

Tags: None
(comma "," separated)
daviddoria
Registered Member
Posts
46
Karma
0
OS
If I run my program with the "Execute" button in KDevelop, it throws an exception. However, if I run the same executable from a terminal, it finishes successfully. There are no command line arguments to the program. If I run it with the "Debug" button (even though it is built in Release mode), it also completes successfully.

Any clues as to what could cause this?

Thanks,

David
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi,

sounds weird. Are you sure the same program is being run?

Also, environment variables and terminal capabilities can be different. What kind of program is that? Is the source code available?

Cheers,
Sven


I'm working on the KDevelop IDE.
daviddoria
Registered Member
Posts
46
Karma
0
OS
> sounds weird. Are you sure the same program is being run?

Yep. I output argv[0] and then copied and pasted it into the terminal.

> Also, environment variables and terminal capabilities can be different. What kind of program is that? Is the source code available?

The code is available, but it depends on many libraries so I wouldn't encourage anyone to try to compile it :). The part of the code that seems to be changing behavior is an eigen decomposition of a matrix from the Eigen3 library. My terminal and KDevelop environment are both totally standard/default.

I think you got it right with "sounds weird" haha. The worst part is that it runs fine in the debugger, so "step through with a debugger" (the normal recourse) it out!

David
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hmm. Try printing all environment variables and look if there's anything different.

Greetings


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell