iOS Question Too slow compiling on simulator.

ykucuk

Well-Known Member
Licensed User
Longtime User
Hi,
Compiling the example project on the simulator using the local Mac builder takes a long time (5-10 minutes).
My computer is a Mac M1 Pro.
How can I speed up the compile time?
 

ykucuk

Well-Known Member
Licensed User
Longtime User
In debug mode? This is indeed very slow. It runs here on a Mac Mini in about a minute.

Try to run several times. It should be faster.

Is b4i have another mode? I have only debug mode.

Could you check the log? I think compiling has an error and is stuck. IDE is not showing it.

B4X:
java.lang.RuntimeException: java.io.IOException: java.io.EOFException: Unexpected end of ZLIB input stream


    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:140)


    at anywheresoftware.b4a.BA.raiseEvent(BA.java:98)


    at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:130)


    at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:110)


    at anywheresoftware.b4j.object.JServlet.doPost(JServlet.java:80)


    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)


    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)


    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)


    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)


    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)


    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)


    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)


    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)


    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)


    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)


    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)


    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)


    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)


    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)


    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)


    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)


    at org.eclipse.jetty.server.Server.handle(Server.java:531)


    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)


    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)


    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)


    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)


    at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)


    at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)


    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)


    at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)


    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)


    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)


    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)


    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)


    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)


    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)


    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)


    at java.lang.Thread.run(Thread.java:750)


Caused by: java.io.IOException: java.io.EOFException: Unexpected end of ZLIB input stream


    at flm.b4a.archiver.ArchiverForB4A.UnZip(ArchiverForB4A.java:734)


    at b4j.example.buildservlet._handle(buildservlet.java:462)


    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)


    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


    at java.lang.reflect.Method.invoke(Method.java:498)


    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)


    ... 37 more
 

Attachments

  • Screenshot 2023-03-16 at 12.47.47 AM.png
    Screenshot 2023-03-16 at 12.47.47 AM.png
    66.8 KB · Views: 107
Upvote 0
Top