Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take care if the arguments are too big! #151

Open
crearo opened this issue Jan 30, 2017 · 1 comment
Open

Take care if the arguments are too big! #151

crearo opened this issue Jan 30, 2017 · 1 comment

Comments

@crearo
Copy link

crearo commented Jan 30, 2017

I spent about half an hour debugging a particular part of my code later to realize it was the @debuglog annotation that was causing the huge delay!
One of the arguments was a byte array (of an image, hence huge) and I suppose printing that to Logcat was the bottleneck. Shouldn't hugo smartly not print any argument that's just too huge? Or this could be a parameter (if it already isnt there!).

@rupinderjeet
Copy link

rupinderjeet commented Mar 1, 2017

same here, byte[] causes OutOfMemory exception.

From Firebase Crash Report: OOM in AbstractStringBuilder.enlargeBuffer

java.lang.AbstractStringBuilder.enlargeBuffer (AbstractStringBuilder.java:94)
java.lang.AbstractStringBuilder.append0 (AbstractStringBuilder.java:145)
java.lang.StringBuilder.append (StringBuilder.java:216)
hugo.weaving.internal.Strings.byteArrayToString (Strings.java:102)
hugo.weaving.internal.Strings.arrayToString (Strings.java:71)
hugo.weaving.internal.Strings.toString (Strings.java:23)
hugo.weaving.internal.Hugo.enterMethod (Hugo.java:63)
hugo.weaving.internal.Hugo.ajc$inlineAccessMethod$hugo_weaving_internal_Hugo$hugo_weaving_internal_Hugo$enterMethod (Hugo.java:1)
hugo.weaving.internal.Hugo.logAndExecute (Hugo.java:36)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants