Jump to content


GCS crashing on Mac


  • Please log in to reply
11 replies to this topic

#1 Reddog

Reddog

    UI Manager

  • Members
  • PipPipPip
  • 1200 posts
  • Country: flag of Australia Australia


Posted 09 April 2011 - 12:12 PM

I am able to get the GCS to crash a bit on Mac, I will post the crash reports here for people if they are interested.
Attached File  crash report.rtf   50.99K   39 downloads

#2 Edouard

Edouard

    GCS Developer

  • Members
  • PipPipPip
  • 716 posts
  • LocationParis
  • Country: flag of France France


Posted 09 April 2011 - 03:24 PM

Thanks Nathan. What would be helpful, is to explain how you can reproduce this crash (steps to take to make it crash every time, or most of the time if you can't narrow it down enough), and open a Jira ticket with no assignee.

#3 Reddog

Reddog

    UI Manager

  • Members
  • PipPipPip
  • 1200 posts
  • Country: flag of Australia Australia


Posted 10 April 2011 - 12:29 AM

I am actually trying to crash it to find any weird issues, so these crashes are not things normal people would find themselves doing. I will try to replicate it but since I am doing all sorts of clicking and moving things around to try to crash it (as well as mucking with my quad while connected) replicating it has been hard. I will keep testing.

Fantastic work on everything everyone! The best autopilot and GCS I have ever used and I have used some of the arduino stuff as well as some of the commercial stuff. Kicks everyones asses!

#4 Reddog

Reddog

    UI Manager

  • Members
  • PipPipPip
  • 1200 posts
  • Country: flag of Australia Australia


Posted 10 April 2011 - 04:18 AM

I got it to crash again today when I connected the board and then moved between the config tab and the flight data tab, see attached crash report.Attached File  crash report.rtf   45.38K   33 downloads

Edited by Reddog, 10 April 2011 - 04:18 AM.


#5 CheBuzz

CheBuzz

    Ex-Member

  • Banned
  • PipPipPip
  • 397 posts
  • Country: flag of United States United States


Posted 10 April 2011 - 06:17 AM

I honestly have very little idea how to read those things.  So the best way to find the source of a crash is to run the program under gdb.  Though this may cause it to run really slow.  But if it crashes, a backtrace can help pinpoint the problem.  From that crash report, I see that thread 1 crashed, but thread 1 seems to have:

Thread 1 Crashed:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             0x00007fff847dd16a kevent + 10
1   libSystem.B.dylib             0x00007fff847df03d _dispatch_mgr_invoke + 154
2   libSystem.B.dylib             0x00007fff847ded14 _dispatch_queue_invoke + 185
3   libSystem.B.dylib             0x00007fff847de83e _dispatch_worker_thread2 + 252
4   libSystem.B.dylib             0x00007fff847de168 _pthread_wqthread + 353
5   libSystem.B.dylib             0x00007fff847de005 start_wqthread + 13

I don't think that is part of the GCS.  Anybody see something I don't?

#6 Reddog

Reddog

    UI Manager

  • Members
  • PipPipPip
  • 1200 posts
  • Country: flag of Australia Australia


Posted 10 May 2011 - 02:27 AM

I have been able to replicate a crash on Mac multiple times. It goes as follows:

GCS is already running.

1. Connect CC via USB
2. Change Values
3. Save Values
4. Disconnect

Do the above and on the third time you try to connect CC via USB the GCS crashes. It always happens the 3rd time and I have replicated this probably 30 times.

Edited by Reddog, 10 May 2011 - 02:30 AM.


#7 Reddog

Reddog

    UI Manager

  • Members
  • PipPipPip
  • 1200 posts
  • Country: flag of Australia Australia


Posted 10 May 2011 - 02:28 AM

View PostCheBuzz, on 10 April 2011 - 06:17 AM, said:

I honestly have very little idea how to read those things.  So the best way to find the source of a crash is to run the program under gdb.  Though this may cause it to run really slow.  But if it crashes, a backtrace can help pinpoint the problem.  From that crash report, I see that thread 1 crashed, but thread 1 seems to have:

Thread 1 Crashed:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             0x00007fff847dd16a kevent + 10
1   libSystem.B.dylib             0x00007fff847df03d _dispatch_mgr_invoke + 154
2   libSystem.B.dylib             0x00007fff847ded14 _dispatch_queue_invoke + 185
3   libSystem.B.dylib             0x00007fff847de83e _dispatch_worker_thread2 + 252
4   libSystem.B.dylib             0x00007fff847de168 _pthread_wqthread + 353
5   libSystem.B.dylib             0x00007fff847de005 start_wqthread + 13

I don't think that is part of the GCS.  Anybody see something I don't?

I am not sure what GDB is?

#8 Ivan

Ivan

    Developer

  • Members
  • PipPipPip
  • 324 posts
  • Country: flag of New Zealand New Zealand


Posted 10 May 2011 - 09:24 AM

Ah I can confirm the issue too, its been happening for me. I'll try and get some debuging enabled.

#9 Uj.

Uj.

    New Member

  • Members
  • Pip
  • 5 posts
  • Country: flag of United Kingdom United Kingdom

Posted 30 August 2011 - 07:45 PM

Just like to say that the GCS works for me (IMAC,Snowleopard) as long as i unplug my Bamboo tablet before i start the App.The GCS does not like its USBishness*.I think i have seen someone else with the same problem, but i am placing it here as it is the logical thread for it.
*Actual madeupified wordage.

Edited by Uj., 30 August 2011 - 07:50 PM.


#10 Windbreaker

Windbreaker

    Advanced Member

  • Members
  • PipPipPip
  • 427 posts
  • LocationPearl City, Hawaii
  • Country: flag of United States United States


Posted 29 November 2011 - 02:17 AM

I tried running the GCS software and it crashed everytime on startup.

I disconnected my Wacom tablet and finally got it to run.

#11 Edouard

Edouard

    GCS Developer

  • Members
  • PipPipPip
  • 716 posts
  • LocationParis
  • Country: flag of France France


Posted 01 December 2011 - 09:15 AM

View PostWindbreaker, on 29 November 2011 - 02:17 AM, said:

I tried running the GCS software and it crashed everytime on startup.

I disconnected my Wacom tablet and finally got it to run.

That's interesting: what are the PID/VID of the tablet? I suppose it is a HID device too, but that should not be a problem. It may be that the GCS think it is speaking to a CopterControl board somehow - though we have proper PID/VIDs for the CC, so no reason why theyre should be a collision. Let me know, it's probably easy to fix

#12 A*Morale

A*Morale

    Core Developer

  • Members
  • PipPipPip
  • 185 posts
  • LocationRome/Italy
  • Country: flag of Italy Italy


Posted 01 December 2011 - 12:43 PM

Sorry, I missed this post as i had the very same issue with a wacom bamboo tablet.
Here is the post: http://forums.openpi...n-start-on-osx/
Alessio my Blog
Posted Image