Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2013
    Location
    Linux Userland
    Posts
    84

    Gtkpod Parsing Error Upon Startup


    Back then, gtkpod is able to run as a normal user and now, it would crash with the following messages
    Code:
    (gtkpod:7305): Gtk-WARNING **: Theme parsing error: <data>:2:10: Not using units is deprecated. Assuming 'px'.
    Segmentation fault
    I'd assume it has something to do with the gtk theme. I changed the windows theme and contrast but to no effect. I'm able run the software properly with root permission, I check with gdb:

    Code:
    gdb gtkpod core
    GNU gdb (GDB) 7.4.1-debian
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/bin/gtkpod...(no debugging symbols found)...done.
    [New LWP 7269]
    [New LWP 7276]
    [New LWP 7278]
    [New LWP 7279]
    [New LWP 7280]
    [New LWP 7277]
    
    warning: Can't read pathname for load map: Input/output error.
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    Core was generated by `gtkpod'.
    Program terminated with signal 11, Segmentation fault.
    #0 0x00007ff578f29a5c in WTF::fastFree(void*) ()
    from /usr/lib/libjavascriptcoregtk-3.0.so.0
    
    (gdb) backtrace
    #0 0x00007ff578f29a5c in WTF::fastFree(void*) ()
    from /usr/lib/libjavascriptcoregtk-3.0.so.0
    #1 0x00007ff52f7e5101 in GenericTableContent::~GenericTableContent() ()
    from /usr/lib/scim-1.0/1.4.0/IMEngine/table.so
    #2 0x00007ff52f7d9d22 in TableFactory::~TableFactory() ()
    from /usr/lib/scim-1.0/1.4.0/IMEngine/table.so
    #3 0x00007ff52f7d9e29 in TableFactory::~TableFactory() ()
    from /usr/lib/scim-1.0/1.4.0/IMEngine/table.so
    #4 0x00007ff530bc4e41 in scim::ReferencedObject::unref() ()
    from /usr/lib/x86_64-linux-gnu/libscim-1.0.so.8
    #5 0x00007ff530b8e03e in scim::Pointer<scim::IMEngineFactoryBase>::set(scim::IMEngineFactoryBase*) () from /usr/lib/x86_64-linux-gnu/libscim-1.0.so.8
    #6 0x00007ff530b8d54d in scim::Pointer<scim::IMEngineFactoryBase>::reset(scim::IMEngineFactoryBase*) () from /usr/lib/x86_64-linux-gnu/libscim-1.0.so.8
    #7 0x00007ff530b88c26 in scim::CommonBackEnd::CommonBackEnd(scim::Pointer<scim::ConfigBase> const&, std::vector<std::string, std::allocator<std::string> > const&) () from /usr/lib/x86_64-linux-gnu/libscim-1.0.so.8
    #8 0x00007ff530e9573f in ?? ()
    from /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-scim.so
    #9 0x00007ff530e8d0d2 in ?? ()
    from /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-scim.so
    #10 0x00007ff597afea76 in g_type_class_ref ()
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
    ---Type <return> to continue, or q <return> to quit---
    #11 0x00007ff597ae7381 in g_object_newv ()
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
    #12 0x00007ff597ae791c in g_object_new ()
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
    #13 0x00007ff530e8cc41 in gtk_im_context_scim_new() ()
    from /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-scim.so
    #14 0x00007ff530ea12ff in im_module_create ()
    from /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-scim.so
    #15 0x00007ff598965956 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
    #16 0x00007ff598966219 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
    #17 0x00007ff5989666e1 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
    #18 0x00007ff598963442 in gtk_im_context_get_preedit_string ()
    from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
    #19 0x00007ff598913075 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
    #20 0x00007ff5989157ea in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
    #21 0x00007ff598916b23 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
    #22 0x00007ff598596980 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
    #23 0x00007ff597821355 in g_main_context_dispatch ()
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #24 0x00007ff597821688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #25 0x00007ff597821a82 in g_main_loop_run ()
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #26 0x00007ff59897b3d5 in gtk_main ()
    ---Type <return> to continue, or q <return> to quit---
    from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
    #27 0x00000000004086d7 in main ()
    
    (gdb) up
    #1 0x00007ff52f7e5101 in GenericTableContent::~GenericTableContent() ()
    from /usr/lib/scim-1.0/1.4.0/IMEngine/table.so
    The problem here is, there's no debugging symbol found which is critical in this debugging process but it's confusing because someone illustrates that you'll need to have a C file which I dont have. I'm lost at what to do next.

  2. #2
    i'm fairly sure the gtk error and the segmentation fault are unrelated.
    try opening any gtk app in a terminal, you'll get loads of similar warnings and even errors.
    maybe you can run gtkpod itself with some sort of verbose switch?
    or take a look at X and other log files right after the crash? should be something there.

    about gdb, sorry can't help with that i never used it.

    also what distro are you using and what version of gtkpod? there's versions for gtk3 and gtk2.

  3. #3
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    2,103
    The only way gdb will help is if the object was compiled with the -g switch to enable debugging symbols.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    2,103
    If you want to know where it is seg faulting you could try strace - or download the source for the version of the software you are using and enable debugging.

  6. #5
    Just Joined!
    Join Date
    Jan 2013
    Location
    Linux Userland
    Posts
    84
    Quote Originally Posted by nihili View Post
    you can run gtkpod itself with some sort of verbose switch?
    or take a look at X and other log files right after the crash? should be something there. What distro are you using and what version of gtkpod? there's versions for gtk3 and gtk2.
    I believe I'm using gtk3, I'm unable to boot into verbose mode because there's no option to it seems. I modify the directory /etc/default/grub on removing "quiet" on the DEFAULT LINUX CMD, it shows more detailed text during the bootup process but still starts on Gnome graphical interface. I don't think you can switch to verbose mode with gtkpod (version 2.1.2), since it isn't build with that in mind.

    Here's the message log it leaves after gtkpod crashes:

    Code:
    debian kernel: [  709.653201] gtkpod[5045]: segfault at 8 ip 00007f86e36eea5c sp 00007fffa2b63030 error 4 in libjavascriptcoregtk-3.0.so.0.13.2[7f86e340a000+393000]
    The same error appeared on the kernel log as well.

  7. #6
    Just Joined!
    Join Date
    Jan 2013
    Location
    Linux Userland
    Posts
    84

    Strace found ghost files

    Quote Originally Posted by gregm View Post
    If you want to know where it is seg faulting you could try strace - or download the source for the version of the software you are using and enable debugging.

    This might confirm my theory that installing from Debian repository doesn't include the source file; I chose to install strace and saved the trace execution to a local file, it seems that there's a lot of nonexistent files that it was trying to look in the locale folder:

    Code:
    open("/usr/lib/locale/zh.EUCTW/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/locale/zh_HK.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/locale/zh_HK.utf8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/locale/zh_HK.utf-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/locale/zh_SG.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/locale/zh_SG.utf8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/locale/zh_SG/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/locale/zh_SG.utf-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    It also goes through the scim table directory, as expected to recognize my keyboard layout. There are several repeated messages:

    Code:
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    open("/usr/lib/libm17n.so.0", O_RDONLY) = 13
    read(13, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@o\0\0\0\0\0\0"..., 832) = 832
    fstat(13, {st_mode=S_IFREG|0644, st_size=217992, ...}) = 0
    mmap(NULL, 2323976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 13, 0) = 0x7fc02ce5c000
    mprotect(0x7fc02ce91000, 2093056, PROT_NONE) = 0
    mmap(0x7fc02d090000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 13, 0x34000) = 0x7fc02d090000
    mmap(0x7fc02d091000, 9736, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc02d091000
    close(13)
    I'm not sure what to look for since the program closes after it finding no files.

  8. #7
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    2,103
    It's hard to tell from a small sample of a trace what is happening. The lib being read, libm17n, is an internationalization text processing lib. It is opened, stated, mapped and closed seemingly successfully. I doubt that not finding locale files would cause a problem. Perhaps attach the trace?

  9. #8
    Just Joined!
    Join Date
    Jan 2013
    Location
    Linux Userland
    Posts
    84

    File upload

    Quote Originally Posted by gregm View Post
    It's hard to tell from a small sample of a trace what is happening. The lib being read, libm17n, is an internationalization text processing lib. It is opened, stated, mapped and closed seemingly successfully. I doubt that not finding locale files would cause a problem. Perhaps attach the trace?
    I've uploaded the file to this address: https://goput.it/v/c6l.txt. It's too big to be uploaded through this attachment and pasting it would consume a lot of space.

  10. #9
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    2,103
    The last thing that happens seems to be the scim setup - it provides Chinese, Japanese and Korean language support. That might be where the problem is. What distro are you running? Are you up to date with everything?

    Just to be sure - you have your ipod mounted when you run gtkpod?

  11. #10
    Just Joined!
    Join Date
    Jan 2013
    Location
    Linux Userland
    Posts
    84
    Quote Originally Posted by gregm View Post
    The last thing that happens seems to be the scim setup - it provides Chinese, Japanese and Korean language support. That might be where the problem is. What distro are you running? Are you up to date with everything?

    Just to be sure - you have your ipod mounted when you run gtkpod?
    I'm running Debian Wheezy codename 7.5, there are some recent updates regarding some security patches but I ignore them since it isn't related to this issue. My device is mounted on .gvfs folder and I couldn't open gtkpod once but not when running strace. Maybe I should remove scim setup instead? I tried exiting the program but gtkpod still won't open.

    If I remember correctly, my scim setup is able function properly but their style of pinyin is different so I install several language tables to test out the right one.
    Last edited by G-Known; 06-12-2014 at 02:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •