Bug 432802 - MacOS version does not start
Summary: MacOS version does not start
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: macos-application (show other bugs)
Version: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Ruixuan Tu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-11 13:39 UTC by Viktor
Modified: 2024-08-02 13:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor 2021-02-11 13:39:13 UTC
SUMMARY

I've successfully followed the build steps for MacOS: https://community.kde.org/KDEConnect/Build_MacOS

but `kdeconnect-indicator` does not start. Starting from the terminal outputs:

```
open -a kdeconnect-indicator
LSOpenURLsWithRole() failed for the application /Applications/kdeconnect-indicator.app with error -10810.
```

I've tried with the nightly build too. It gave the same output.

STEPS TO REPRODUCE
1. build using the linked docs
2. install
3. start from the terminal

OBSERVED RESULT

App does not start

EXPECTED RESULT

App should start

SOFTWARE/OS VERSIONS
Windows: 
macOS: Catalina 10.15.7
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 kalahanss 2024-03-03 21:12:02 UTC
+1

My description (maybe can help):
I build `okular` on my macOS following this instruction: https://community.kde.org/Get_Involved/development/Mac
After that I try to run okular, but nothing happens. I run okular under lldb (debugger) and I found out why nothing was happening:
```
[I press Ctrl+C]
Process 98689 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007ff81728b5ce libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`:
->  0x7ff81728b5ce <+10>: jae    0x7ff81728b5d8            ; <+20>
    0x7ff81728b5d0 <+12>: movq   %rax, %rdi
    0x7ff81728b5d3 <+15>: jmp    0x7ff817289184            ; cerror_nocancel
    0x7ff81728b5d8 <+20>: retq
Target 0: (okular) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007ff81728b5ce libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007ff8172c876b libsystem_pthread.dylib`_pthread_cond_wait + 1211
    frame #2: 0x000000010271a82b QtCore`QWaitConditionPrivate::wait(QDeadlineTimer) + 59
    frame #3: 0x000000010271a7a3 QtCore`QWaitCondition::wait(QMutex*, QDeadlineTimer) + 83
    frame #4: 0x000000010271694d QtCore`QSemaphore::acquire(int) + 109
    frame #5: 0x00000001028f354b QtCore`void doActivate<false>(QObject*, int, void**) + 1419
    frame #6: 0x00000001013a3626 QtDBus`QDBusConnectionManager::connectToBus(QDBusConnection::BusType, QString const&, bool) + 86
    frame #7: 0x00000001013a3580 QtDBus`QDBusConnectionManager::busConnection(QDBusConnection::BusType) + 208
    frame #8: 0x00000001013a673c QtDBus`QDBusConnection::sessionBus() + 44
    frame #9: 0x000000010105b56d libKF5ConfigCore.5.dylib`___lldb_unnamed_symbol1919 + 1245
    frame #10: 0x000000010105aba8 libKF5ConfigCore.5.dylib`KConfigWatcher::create(QExplicitlySharedDataPointer<KSharedConfig> const&) + 200
    frame #11: 0x0000000104b9229d breeze.so`___lldb_unnamed_symbol1665 + 349
    frame #12: 0x0000000104b731bc breeze.so`___lldb_unnamed_symbol1413 + 508
    frame #13: 0x0000000104b8dac5 breeze.so`___lldb_unnamed_symbol1621 + 149
    frame #14: 0x0000000101b07003 QtWidgets`QStyleFactory::create(QString const&) + 243
    frame #15: 0x0000000101a9285b QtWidgets`QApplication::setStyle(QString const&) + 11
    frame #16: 0x000000010000ad53 okular`___lldb_unnamed_symbol699 + 131
    frame #17: 0x00007ff816f3d386 dyld`start + 1942
(lldb)
```
I don't quite understand how I can provide much more information that could be useful.

STEPS TO REPRODUCE
1. curl https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py -o setup.py
2. python3 setup.py --prefix $HOME/dev/craft_root
3. source $HOME/dev/craft_root/craft/craftenv.sh
4. craft okular
5. [run executable] $HOME/dev/craft_root/build/kde/applications/okular/image-RelWithDebInfo-23.08.4/Applications/KDE/okular.app/Contents/MacOS/okular

SOFTWARE/OS VERSIONS
macOS: 14.3.1 (23D60)
KDE Frameworks Version:  5.114.0
Qt Version: 5.15.12