Menu

#146 Malformed URL with KOrganizer!

v1.0_(example)
closed-fixed
nobody
r1710 (1)
5
2014-02-28
2013-08-05
Tsu Jan
No

Hello,

Only with Bespin, I get a messagebox with "Malformed URL" on it whenever I open KOrganizer. The message is sent from actionmanager.cpp in kdepim (4.10) and is apparently harmless. Do you have any clue how Bespin can trigger it?

Discussion

1 2 > >> (Page 1 of 2)
  • Thomas Luebking

    Thomas Luebking - 2013-08-05

    Not really - it sounds as if korganizer believes it was called as "korganizer --open <malformed_url>", but i really don't freak around in the application argument list the least.</malformed_url>

    I'd ask to first simply deactivate everything that's called "hack" or workaround"
    If that doesn't help, please attach your ~/.config/Bespin/Style.conf (for inspection and later on to eventually reproduce the issue)

     
  • Tsu Jan

    Tsu Jan - 2013-08-05

    Fortunately, it wasn't related to the hacks or workarounds (I like them).

    KOrganizer's code doesn't seem very clean with such warnings, which are independent of any style engine:

    KCoreConfigSkeleton::writeConfig:
    QCoreApplication::postEvent: Unexpected null receiver
    

    However, the mystery remains.

     
  • Thomas Luebking

    Thomas Luebking - 2013-08-06

    tbh, i would have preferred being able to bind it to some hacking around.

    The message should be a debug message and does not occur here (and I actually tried opening malformed URLs)
    If you're annoyed by it, you should be able to turn it off via "kdebugdialog --fullmode", filter for "korga" and ensure none of the outputs is passed into a messagebox.

    But how Bespin could ever possibly cause this in korganizer - i've no idea :-(

    How do you start korganizer?

     
  • Tsu Jan

    Tsu Jan - 2013-08-06

    How do you start korganizer?

    It makes no difference how it's started: with its daemon's tray icon, with a reminder being triggered, or even from Konsole.

     
  • Anonymous

    Anonymous - 2014-01-29

    I have exactly the same problem, and the "kdebugdialog --fullmode" method didn't do the trick. But I made the following observation: If the blue channel of the "Base" color (third panel on the left in bespin's color configuration) goes above 0x7F, the problem goes away. E.g. Base color #00277f -> message box in korganizer, Base color #002780 -> problem solved.
    Is this possible?

     
  • Thomas Luebking

    Thomas Luebking - 2014-01-29

    "Blue" seems strange, but the change also pitches the color value from 127 to 128.
    The value is the highest component, so would eg #80277f work as well?

     
  • Anonymous

    Anonymous - 2014-01-30

    Nope, the problem is in the blue channel only. #80277f works fine.Could it be a char/uchar issue, i.e. color values getting negative if >0x7f?
    Needless to say that bespin is the best style ever and that I'm longing to get my #00274C Base color back ;-)

     
  • Thomas Luebking

    Thomas Luebking - 2014-01-30

    80277f works fine.

    That actually /does/ suggest that the problem is indeed the value ("too low blue", but red determines the color value. #7f277f would likely cause the issue as well?)

    The special #7f limit indeed looks like a pot. char overflow, but that doesn't explain why kontact suddenly believes it was opened with a URL parameter =)
    (And i assume to perform calculations on short or integer anyway)

    -> I'll have to install korganizer (and akonadi) and check what's going on there.

     
  • Alexander Maye

    Alexander Maye - 2014-01-30

    (Now I found the time to escape anonymity ...)
    I'm not sure if the problem really is that korganizer thinks it gets launched with a whatever malformed URL. I can't say why, but my impression is that the problem occurs when setting up its UI. Anyway, I was hoping you would have an opportunity to trace the called bespin functions and locate the problem more precisely. And that there would be a hack for "Fix korganizer dark color scheme" ...

     
  • Thomas Luebking

    Thomas Luebking - 2014-01-30
    • labels: --> r1710
    • status: open --> closed-fixed
     
  • Thomas Luebking

    Thomas Luebking - 2014-01-30

    Happens because i attempt to fix qtextbrowser colors for dark schemes. Unconditionally reloading the document triggers this message in akonadi.
    -> r1710

     
  • Alexander Maye

    Alexander Maye - 2014-01-31

    Sounds to me as if you were able to do something about it, thank you. But what is r1710? And will the fix show up in the KDE repos sooner or later? Sorry for such simple questions.

     
  • Thomas Luebking

    Thomas Luebking - 2014-01-31

    r1710: svn revision 1710
    It's the svn commit that fixes the issue.

    When this is picked up by your distro i can't say (no: not even if i knew your distro ;-)
    If you compile bespin from svn, it's fixed for you with the next recompile.

     
  • Anonymous

    Anonymous - 2014-02-18

    The fix solves the problem in korganizer proper, thank you for that. It's not yet over, I'm afraid. Korganizer's reminder program, korgac, still shows the same symptoms: "Malformed URL" if the blue channel is below 0x7C. I guess it's a related problem, maybe a different UI element? Would be great if you could take another look. Unfortunately I didn't find a way to launch korgac's message window directly; therefore, to reproduce the problem, set an event in korganizer for e.g. 16 minutes later with a reminder 15 minutes in advance. After about 1 minute the reminder window should pop up together with the "Malformed URL" error message.

     
  • Thomas Luebking

    Thomas Luebking - 2014-02-18

    Sure you restarted the korgac process (likely a daemon?) with the recompiled style?

    This is very likely to be the same function call causing this, so if it still happens, then this would also happen with a non-empty document - what would make avoiding it a bit tricky.

    You could do me

     
  • Anonymous

    Anonymous - 2014-02-19

    I observed that korganizer's problem was solved by your fix while korgac's wasn't since you implemented it. I didn't have the time to verify it's the blue channel again until yesterday. In any case I shut down the computer dozens of time before. My current bespin revision is 1710-162.6. Why do you think korgac is showing a non-empty document whereas korganizer wasn't? Let me know what I could do (you).

     
  • Thomas Luebking

    Thomas Luebking - 2014-02-19

    I shut down the computer dozens of time before
    That means "yes"

    The function that triggered this behavior in korganizer is no more called for empty documents, so korgac will contain a QTextEdit with a non-empty document which by reloading yells the "Malformed URL" issue - could be some placeholder text.

    I was about to ask you to check the contents of those documents but then decided to first wait for confirmation that korgac was restarted and also should check the document contents/conditions myself to lok for a pattern to avoid.

    Apparently I forgot to delete the already typed half-sentence before pushing the post button =)

     
  • Thomas Luebking

    Thomas Luebking - 2014-02-19

    Status update:
    I'm completely unable to add a calendar, thus an event - "traditional" calendars just crash in the wizard and while i can add an iCal, that has absolutely no effect :-(

    The result is that i can fill in an event, but "apply" or "ok" will just highlight the title lineedit (maybe the dialog should start with "no calendar available to add an event to"), so i simply cannot trigger an reminder atm., sorry.

     
  • Anonymous

    Anonymous - 2014-02-20

    How about setting up a fresh account for testing? I checked again today - no way to simulate a korgac reminder other than from korganizer. Let me know if I can help.

     
  • Thomas Luebking

    Thomas Luebking - 2014-02-20

    On a fresh account akonadiserver segfaults on startup* and leaves 4 mysql processes.

    After resolving that, the behavior remains the exact same (crashing wizard and no addition of the iCal file as calendar either)

    Can you try r1712?

     
    • Tsu Jan

      Tsu Jan - 2014-02-20

      Do you you have nVidia < 331.38 (https://bugs.kde.org/show_bug.cgi?id=326480)?

       
  • Thomas Luebking

    Thomas Luebking - 2014-02-20

    Yupp.
    I could however resolve the "akondiserver does not start at all" issue by adding binlog_format=mixed to ~/.local/share/akonadi/mysql.conf, but calendars could still not be added.

     
  • Alexander Maye

    Alexander Maye - 2014-02-24

    I could, but the KDE repo still has r1710. Can I get it somewhere else?

     
  • Thomas Luebking

    Thomas Luebking - 2014-02-24

    what repo?

    svn checkout svn://svn.code.sf.net/p/cloudcity/code/ cloudcity
    If you have that, "svn update" in the source dir will do.

    1712 patch is here:
    https://sourceforge.net/p/cloudcity/code/1712/

     
  • Anonymous

    Anonymous - 2014-02-25

    Well, last time your fix was "picked up by my distro", but this time this seems not to be the case. Anyway, I followed your instructions and the problem may be solved. I say "may" because installing bespin via "sudo make install" didn't work (as expected). Here is what I did:
    1) Uninstall the distro-version of bespin in yast.
    2) "sudo make install" your r1712
    3) on reboot, bespin was no longer an option in the application appearance settings (instead, cleanlooks was selected)
    4) re-installed bespin from the distro (r1710)
    5) "sudo make install" your r1712. I hope this installed the vital libraries in /usr/lib64/kde4 of the new release over the old ones
    6) logged out&in again
    7) problem with korgac was gone

    Now, to make sure the problem is really solved, how can I find out what release of bespin is currently running? Running /usr/bin/bespin revision shows Style & Config Version 1616, but this doesn't make sense to me.

    On a side note, the distro-bespin installs also some nice presets in /usr/share/bespin/presets, but they don't show up in the config window under presets. How can I make it aware of those presets?

     
1 2 > >> (Page 1 of 2)

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB