Results 1 to 19 of 19

Thread: Desperate call for help...

  1. #1
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Exclamation Desperate call for help...

    Application output.doc

    Hello,

    Im currently working in a chemistry project using Qt under Linux. I used to work under Fedora 14 and just yesterday I switched to the most recent Kubuntu. My application is able to open some files and plot out some molecules using OpenGL. Worked without problems under Fedora, now that I switched to Kubuntu, my application crashes when I open the same files I opened under Fedora.

    I've attached the Application output I get (which I also didnt get under Fedora).

    I hope someone can make something out of that and help me out here, Im sure it must be something noobish slipping past me.

    Thank you very much!


    Kayim

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Desperate call for help...

    What attached output?

  3. #3
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    It's on a line just above "Hello,"

    Edit:

    Had to attach it as a .doc file
    Last edited by Miyak; 10th April 2011 at 03:30.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Desperate call for help...

    Did you rebuild your program after moving it to Kubuntu?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. The following user says thank you to wysota for this useful post:

    Miyak (10th April 2011)

  6. #5
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    yes, I deleted the object files, the .pro file and the .pro.user file. Rebuilt from the new system.

  7. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Desperate call for help...

    What gfx card do you have and what drivers do you have installed for it?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. The following user says thank you to wysota for this useful post:

    Miyak (10th April 2011)

  9. #7
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    ATI Technologies Inc RS690M [Radeon X1200 Series]

    How do i find out which drivers I have installed? As you may have deduced by now im a Linux neophyte, hehehe.

    Browsing through Synaptic I see I got 4 ATI display drivers Installed, which are:

    X.Org X server -- ATI Mach64 display driver 6.8.2-3build2
    X.Org X server -- ATI r128 display driver 6.8.1-3build1
    X.Org X server -- AMD/ATI display driver wrapper 1:6.13.1-1ubuntu5
    X.Org X server -- AMD/ATI Radeon display driver 1:6.13.1-1ubuntu5

    All of which were automatically installed.

    Im working on a Dell Inspiron 1521.

  10. #8
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Desperate call for help...

    Your error message indicates that the program is looking for the ibus library but can't locate it. Try installing the ibus package and see if that helps.

  11. The following user says thank you to SixDegrees for this useful post:

    Miyak (10th April 2011)

  12. #9
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    I installed every ibus package I found on synaptic and it still crashes on me :S
    application output 2.doc

    It did something though, as the new application output is shorter.

    I have a meeting tomorrow where Im supposed to show this app, so I might have to go back to Fedora for that, but I really like Kubuntu better xD

    Last night a cousin told me that I should've installed Kubuntu and THEN Windows 7, but I did it the other way around. Still, that couldnt be the cause my app is crashing, could it?

  13. #10
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Desperate call for help...

    Here's where your error is reported:

    Bus:pen: Can not get ibus-daemon's address.
    IBusInputContext::createInputContext: no connection to ibus-daemon
    Apparently, Ubuntu doesn't start the ibus daemon at startup; there are several complaints about this scattered across the Web.

    Here's an article on how to make it do that.

    Restart and try again.

  14. The following user says thank you to SixDegrees for this useful post:

    Miyak (10th April 2011)

  15. #11
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    thank you so much, that did take out a bunch of the application output errors...still it crashes though lol.

    Starting /home/kayim/Downloads/Fuente-build-desktop/Fuente...
    (2337) KSharedDataCache::Private::mapSharedMemory: Opening cache "/var/tmp/kdecache-kayim/icon-cache.kcache" page size is 4096
    (2337) KSharedDataCache::Private::mapSharedMemory: Attached to cache, determining if it must be initialized
    (2337) KSharedDataCache::Private::mapSharedMemory: Cache fully initialized -- attached to memory mapping
    (2337) KSharedDataCache::Private::mapSharedMemory: 6774784 bytes available out of 10485760
    (2337) KSycocaPrivate:penDatabase: Trying to open ksycoca from "/var/tmp/kdecache-kayim/ksycoca4"
    kfilemodule(2337)/kdecore (services) KMimeTypeFactory:arseMagic: Now parsing "/usr/share/mime/magic"
    kfilemodule(2337)/kdecore (services) KMimeTypeFactory:arseMagic: Now parsing "/home/kayim/.local/share/mime/magic"
    The program has unexpectedly finished.
    /home/kayim/Downloads/Fuente-build-desktop/Fuente exited with code 0

    That's what it still says :S

    Sorry to keep bothering, but Im going crazy cause it makes no sense to me xD

  16. #12
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Desperate call for help...

    I'm at a loss. You could try moving /home/kayim/.local/share/mime/magic, or the entire .local subdirectory, out of the way, followed by another restart. At this point, though, I'd say running the program in a debugger would be more fruitful, as there are no more explicit error messages.

    You aren't using QCoreApplication instead of QApplication by any chance? See here for a similar error message.

  17. #13
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    Okay, if I run the program under debugging in Qt Creator it gets to the point where I can watch and move the molecule I loaded, but crashes if I try to exit the application.

    I thought I wasnt using QCoreApplication but I can see there's a line which says Function: QCoreApplication. The problem is I didnt write the entire program, it was somewhat of an inheritance, so is there a way I could search the whole bunch of files to find which one is using QCoreApplication? Also, how can I post the debugging information to check if it's any help?

    thank you

    Edit:

    It also says it's stopped because of a segmentation fault by signal SIGSEGV

  18. #14
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Desperate call for help...

    Grep your source files for 'QCoreApplication'; see if replacing it with 'QApplication' has any effect. It is likely in the same file where your main() routine lives.

  19. #15
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    kayim@kayim-Inspiron-1521:~/Downloads/Fuente$ grep QCoreApplication *.*
    kayim@kayim-Inspiron-1521:~/Downloads/Fuente$ grep QApplication *.*
    Panel.cpp: QApplication::setStyle(QStyleFactory::create(style ));
    Sinapsis.cpp: : QApplication( argc , argv )
    Sinapsis.h:class Sinapsis : public QApplication


    Apparently, there arent any QCoreApplication in the whole program, dont know why it comes up in the debugger then :S


    Added after 5 minutes:


    Also, I dont think I posted the new application output which seems a little different.
    application output 3.doc
    Last edited by Miyak; 10th April 2011 at 21:42.

  20. #16
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Desperate call for help...

    So it looks like it outputs the string "Test1001" and dies.

    At this point, I'd advise you to revert to the platform it runs on, given that you seem unfamiliar with a good deal of the code.

  21. #17
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    Thanks, I think I will do that :S

    Still Im sure it's something fixable, right? I mean, it worked on Fedora 14, the exact same code and the exact same Qt release. Thank you so much for your help. I'll keep you guys posted if I find out how to make it work xD


    Kayim

  22. #18
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Desperate call for help...

    The thing is there is no easy way to determine if the crash is caused by the application or the environment it is running in. Since you don't know the code very well, it is hard to establish that as neither we nor you know what the code is doing.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  23. #19
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4

    Default Re: Desperate call for help...

    Apparently, Ubuntu is a jealous OS.....I just had to go back to an older version of my program, rewrite the code I added the last month while working on Fedora and now it's all cool!

    (2892) KSharedDataCache::Private::mapSharedMemory: Opening cache "/var/tmp/kdecache-kayim/icon-cache.kcache" page size is 4096
    (2892) KSharedDataCache::Private::mapSharedMemory: Attached to cache, determining if it must be initialized
    (2892) KSharedDataCache::Private::mapSharedMemory: Cache fully initialized -- attached to memory mapping
    (2892) KSharedDataCache::Private::mapSharedMemory: 6254592 bytes available out of 10485760
    (2892) KSycocaPrivate:penDatabase: Trying to open ksycoca from "/var/tmp/kdecache-kayim/ksycoca4"
    kfilemodule(2892)/kdecore (services) KMimeTypeFactory:arseMagic: Now parsing "/usr/share/mime/magic"
    kfilemodule(2892)/kdecore (services) KMimeTypeFactory:arseMagic: Now parsing "/home/kayim/.local/share/mime/magic"

    That's all I get, but now it wont crash no matter how many files I open.

    I find this amusing so I though I would share with you guys!

    Thanks again for the help

Similar Threads

  1. Desperate QString problem
    By onegun in forum Qt Programming
    Replies: 2
    Last Post: 31st January 2011, 09:52
  2. Desperate for help~~~ Qt 4.6.2 deployment
    By MorrisLiang in forum Installation and Deployment
    Replies: 1
    Last Post: 30th September 2010, 19:19
  3. White background in window, getting desperate!
    By dictoon in forum Qt Programming
    Replies: 19
    Last Post: 31st December 2009, 08:35
  4. call TCL script frm QT4.5
    By BalaQT in forum Qt Programming
    Replies: 3
    Last Post: 30th October 2009, 13:17
  5. how to call mfc dll use qt?
    By yunpeng880 in forum Qt Programming
    Replies: 2
    Last Post: 12th March 2009, 04:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.