xuhuia1a / zipeg

Automatically exported from code.google.com/p/zipeg
0 stars 0 forks source link

java.lang.StackOverflowError via Zipeg$6.handleOpenFile #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Zipeg$6.handleOpenFile(Zipeg:329)
sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl:25)
java.lang.reflect.Method.invoke(Method:597)
calls.call(calls:88)
calls.call(calls:102)
mac.handleString(mac:350)
mac.access$300(mac:19)
mac$1.invoke(mac:200)
$Proxy0.handleOpenFile(Unknown Source)
com.apple.eawt.Application$PrivateImpl$4.run(Application:502)
event.InvocationEvent.dispatch(InvocationEvent:209)
EventQueue.dispatchEvent(EventQueue:633)
IdlingEventQueue.dispatchEvent(IdlingEventQueue:184)
EventDispatchThread.pumpOneEventForFilters(EventDispatchThread:296)
EventDispatchThread.pumpEventsForFilter(EventDispatchThread:211)
EventDispatchThread.pumpEventsForFilter(EventDispatchThread:205)
Dialog$1.run(Dialog:1046)
Dialog$3.run(Dialog:1098)
java.security.AccessController.doPrivileged(Native Method)
Dialog.show(Dialog:1096)
Component.show(Component:1563)
Component.setVisible(Component:1515)
Window.setVisible(Window:842)
Dialog.setVisible(Dialog:986)
Dialogs.show(Dialogs:57)
MessageBox$OptionPane.show(MessageBox:240)
MessageBox$OptionPane.access$000(MessageBox:82)
MessageBox.show(MessageBox:49)
MessageBox.show(MessageBox:31)
MessageBox.show(MessageBox:26)
MultipartHeuristics.checkMultipart(MultipartHeuristics:99)
Zipeg.open(Zipeg:1301)
Zipeg.commandFileOpen(Zipeg:893)
Zipeg$6.handleOpenFile(Zipeg:329)

Original issue reported on code.google.com by leo.kuzn...@gmail.com on 8 Dec 2010 at 6:02

GoogleCodeExporter commented 9 years ago
when commandFileOpen shows UI and
Finder starts to call handleOpenFile again and again and again...
Simple fix:
                public boolean handleOpenFile(final String filename) {
                    IdlingEventQueue.invokeLater(new Runnable() {
                        public void run() {
                            Zipeg.commandFileOpen(filename);
                        }
                    });
                    return true;
                }

Original comment by leo.kuzn...@gmail.com on 8 Dec 2010 at 6:03