* * *

Author Topic: MacOS Lazarus instance is running but not responding  (Read 1923 times)

xaver13

  • Jr. Member
  • **
  • Posts: 63
MacOS Lazarus instance is running but not responding
« on: December 15, 2016, 11:04:01 am »
maybe I have some error in program. When I start to debug clicking green triangle it remains green and red rectangle is red. Nothing else visible. My first form is not visible.  I had to force Quit Lazarus by cmd+alt+esc. BUT: when I try to start Lazarus it writes:
MacOS Lazarus instance is running but not responding
and I had to restart mac...

Please is any better solution?
--
Jiri Cvrk

jwdietrich

  • Hero Member
  • *****
  • Posts: 931
    • formatio reticularis
Re: MacOS Lazarus instance is running but not responding
« Reply #1 on: December 15, 2016, 01:03:13 pm »
Have you created an application bundle in the project settings?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

Lazarus 1.6.4 | FPC 3.0.2 | PPC, Intel, ARM | macOS, Windows, Linux

VTwin

  • Sr. Member
  • ****
  • Posts: 342
Re: MacOS Lazarus instance is running but not responding
« Reply #2 on: December 15, 2016, 04:28:56 pm »
What version of Lazarus are you using? It may be a debugger issue. Did you codesign gdb? I use Lazarus on Mac daily with few problems.

Cheers,
VTwin
Lazarus 1.6.4, FPC 3.0.2:
OS X 10.10.5, 10.11.5 (Carbon) 
Windows 7 Pro (64 bit)
Ubuntu 14.04, 16.04 (amd64 DEB)

xaver13

  • Jr. Member
  • **
  • Posts: 63
Re: MacOS Lazarus instance is running but not responding
« Reply #3 on: December 15, 2016, 05:22:28 pm »
thanks to jwdietrich, it helps!  :)
--
Jiri Cvrk

jwdietrich

  • Hero Member
  • *****
  • Posts: 931
    • formatio reticularis
Re: MacOS Lazarus instance is running but not responding
« Reply #4 on: December 16, 2016, 12:48:33 am »
You are welcome :).
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

Lazarus 1.6.4 | FPC 3.0.2 | PPC, Intel, ARM | macOS, Windows, Linux

xaver13

  • Jr. Member
  • **
  • Posts: 63
Re: MacOS Lazarus instance is running but not responding
« Reply #5 on: December 22, 2016, 10:47:19 am »
Sorry, it was o.k. but it is not, again.

Again the same situation, I had to force end lazarus, because of not responding in status while like debugging, but nothing displayed. And then again - Lazarus instance is running but not responding.

New information: when I take it to my Windows machine, I have a notice about exception class: EReadRerror- Unknown property: "Design TimePPI".  And Assembler window is shown. Debugging can be stopped on Windows (unlike on Mac). But it helps not even I put break on first line on form activate event. The error come prior..

Any help would be highly appreciated.

Thank you very much
« Last Edit: December 22, 2016, 10:57:16 am by xaver13 »
--
Jiri Cvrk

xaver13

  • Jr. Member
  • **
  • Posts: 63
Re: MacOS Lazarus instance is running but not responding
« Reply #6 on: December 22, 2016, 11:22:50 am »
It is crazy. I restarted Mac and the error persist. But after some time .... it is working! No error. >:(
--
Jiri Cvrk

josh

  • Sr. Member
  • ****
  • Posts: 380
Re: MacOS Lazarus instance is running but not responding
« Reply #7 on: December 22, 2016, 11:57:05 am »
Hi
Are the SVN version of lazarus on MAC and PC the same.

I suspect you have different SVN revisions running; which is causing the DPI error.
The way I got rid of the error when I updated to later SVN Release was to edit the lfm file of each form of project with a text editor and remove the line DESIGN TIMEDP from the file; it is in the first section of the fie; so no scrolling or hunting should be required. Then save the file, and then open your project with the latest SVN release of lazarus.
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

xaver13

  • Jr. Member
  • **
  • Posts: 63
Re: MacOS Lazarus instance is running but not responding
« Reply #8 on: December 22, 2016, 01:16:12 pm »
yes, you are quite right, Josh, thank you very much for reply. But mystery is, that it started after some time on quite new Lazarus (1.7/3.1.1/53629M) instance on Mac. Nothing changed in Lazarus installation and suddenly it happened on Mac. I have only one Lazarus on Mac and no changes for two weeks.  And no message, nothing - it stopped working.

I moved it to PC and there on older Lazarus (1.6.2/3.0.0/53354) I got a message. There I removed those properties and it started working again.


But on Mac I changed nothing, the line is still here
DesignTimePPI = 72

and Lazarus started working there too. Suddenly. I can not be sure what was a problem, I have no message on Mac.

And by the way when I tried Lazlogger, which is working on PC,  I was not successful, maybe is the change in parameters to
--debug-log=/Users/jiricvrk/lazlog.txt
not enough..

Would it be better in such case to run app from terminal, could I get some messages there?


Now  I can work  again, but I am not sure when It will happen again. And without a PC a have no feedback to see.
 
« Last Edit: December 22, 2016, 01:36:49 pm by xaver13 »
--
Jiri Cvrk

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus